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

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

Info

Publication number
CN114095585A
CN114095585A CN202210070360.3A CN202210070360A CN114095585A CN 114095585 A CN114095585 A CN 114095585A CN 202210070360 A CN202210070360 A CN 202210070360A CN 114095585 A CN114095585 A CN 114095585A
Authority
CN
China
Prior art keywords
data
conversion information
target
data object
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210070360.3A
Other languages
Chinese (zh)
Other versions
CN114095585B (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.)
Wuhan Zhongke Tongda High New Technology Co Ltd
Original Assignee
Wuhan Zhongke Tongda High New 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 Wuhan Zhongke Tongda High New Technology Co Ltd filed Critical Wuhan Zhongke Tongda High New Technology Co Ltd
Priority to CN202210070360.3A priority Critical patent/CN114095585B/en
Publication of CN114095585A publication Critical patent/CN114095585A/en
Application granted granted Critical
Publication of CN114095585B publication Critical patent/CN114095585B/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/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Telephonic Communication Services (AREA)

Abstract

An embodiment of the application provides a data transmission method, a data transmission device, a storage medium and an electronic device, and the method comprises the following steps: when a data transmission signal is detected, a data object group is generated according to initial data carried by the data transmission signal, the data object group comprises a monitoring data object and a monitored data object, the monitoring data object carries state information of the monitored data object, the monitored data object carries data protocol conversion information and data type conversion information, then target data is generated according to the state information, the data type conversion information and the data protocol conversion information, and finally the target data is transmitted to a target data receiving end. Because the initial data is abstracted into the data object group, the converted target data can be automatically generated only according to the information carried by the data object group in the data transmission process, the data protocol type of the initial data does not need to be distinguished and the data is matched, the condition of data matching error is avoided, and the technical problem of low current data transmission efficiency is effectively solved.

Description

Data transmission method, device, storage medium and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transmission method and apparatus, a storage medium, and an electronic device.
Background
Sip (Session Initiation Protocol) and Websocket (i.e., two-way communication) protocols are communication protocols commonly used in the field of communication technology, where, in order to ensure reliability of data transmission, Protocol conversion is usually required for data under two protocols when a negotiation end uses an Sip Protocol for data transmission and an application end uses a Websocket Protocol for data transmission.
In the current data transmission process, it is usually necessary to distinguish and buffer request data and response data under two protocols while performing protocol conversion on data, match the buffered request data and response data, and transmit the matched data to a receiving end, if a network is stuck and delayed, a data protocol conversion failure condition is likely to occur, and the data with the conversion failure is retained in a buffer area, which causes a data matching error, thereby resulting in low data transmission efficiency.
Disclosure of Invention
The application provides a data transmission method, a data transmission device, a storage medium and an electronic device, which can solve the technical problem of low current data transmission efficiency.
In order to solve the technical problem, the present application provides the following technical solutions:
the application provides a data transmission method, which comprises the following steps:
when a data transmission signal is detected, generating a data object group according to initial data carried by the data transmission signal; the data object group comprises a monitoring data object and a corresponding monitored data object, the monitoring data object carries state information of the monitored data object, and the monitored data object carries data protocol conversion information and data type conversion information;
generating target data according to the state information, the data type conversion information and the data protocol conversion information;
and determining a target data receiving end and transmitting the target data to the target data receiving end.
Wherein, when detecting a data transmission signal, the step of generating a data object group according to initial data carried by the data transmission signal includes:
when a data transmission signal is detected, performing data extraction on the data transmission signal to obtain request data, and taking the request data as the initial data;
analyzing data protocol conversion information and data type conversion information in the request data;
generating a monitored data object according to the data protocol conversion information and the data type conversion information, and generating a monitoring data object according to the state information of the monitored data object;
and using the monitoring data object and the monitored data object as the data object group.
Wherein, when detecting the data transmission signal, the step of generating the data object group according to the initial data carried by the data transmission signal further comprises:
when a data transmission signal is detected, performing data extraction on the data transmission signal to obtain response data, and taking the response data as the initial data;
analyzing data protocol conversion information and data type conversion information in the response data;
generating a monitored data object according to the data protocol conversion information and the data type conversion information, and generating a monitoring data object according to the state information of the monitored data object;
and using the monitoring data object and the monitored data object as the data object group.
Wherein the state information includes valid period information; the step of generating target data according to the state information, the data type conversion information, and the data protocol conversion information includes:
when the state information meets a preset condition, generating first target data according to the data type conversion information and the data protocol conversion information;
and taking the first target data as the target data.
Wherein, when the state information meets a preset condition, the step of generating first target data according to the data type conversion information and the data protocol conversion information comprises:
acquiring a cycle to be read of the data object group; the period to be read is the waiting time from the self generation of the data object group to the reading of the processing module;
when the effective period represented by the effective period information is greater than or equal to the period to be read, determining that the state information meets the preset condition;
generating the first target data according to a target data type identifier in the data type conversion information and a target protocol identifier in the data protocol conversion information; the data type of the first target data is a target data type, and the data format of the first target data is a target protocol data format.
Wherein the step of generating target data according to the state information, the data type conversion information, and the data protocol conversion information further comprises:
when the state information does not meet the preset condition, generating second target data according to the data type conversion information and the data protocol conversion information;
and taking the second target data as the target data.
Wherein, when the status information does not satisfy the preset condition, the step of generating second target data according to the data type conversion information and the data protocol conversion information includes:
acquiring a cycle to be read of the data object group; the period to be read is the waiting time from the self generation of the data object group to the reading of the processing module;
when the effective period represented by the effective period information is smaller than the period to be read, determining that the state information does not meet the preset condition;
generating the second target data according to the initial data type identifier in the data type conversion information and the initial protocol identifier in the data protocol conversion information; the data type of the second target data is an initial data type, and the data format of the second target data is an initial protocol data format.
An embodiment of the present application further provides a data transmission device, including:
the data object group generating module is used for generating a data object group according to initial data carried by the data transmission signal when the data transmission signal is detected; the data object group comprises a monitoring data object and a corresponding monitored data object, the monitoring data object carries state information of the monitored data object, and the monitored data object carries data protocol conversion information and data type conversion information;
the target data generation module is used for generating target data according to the state information, the data type conversion information and the data protocol conversion information;
and the transmission module is used for determining a target data receiving end and transmitting the target data to the target data receiving end.
The embodiment of the present application further provides a computer-readable storage medium, where a plurality of instructions are stored in the computer-readable storage medium, and the instructions are adapted to be loaded by a processor to execute the steps in the data transmission method.
The embodiment of the application further provides an electronic device, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the data transmission method.
The embodiment of the application provides a data transmission method, a data transmission device, a storage medium and electronic equipment, when a data transmission signal is detected, a data object group is generated according to initial data carried by the data transmission signal, wherein the data object group comprises a monitoring data object and a corresponding monitored data object, the monitoring data object carries state information of the monitored data object, the monitored data object carries data protocol conversion information and data type conversion information, then target data is generated according to the state information, the data type conversion information and the data protocol conversion information, and finally a target data receiving end is determined and the target data is transmitted to the target data receiving end. Because the initial data is abstracted into the data object group, the target data after the data protocol and the data type are converted can be automatically generated only according to the information carried by the data object group in the data transmission process without distinguishing the data protocol type of the initial data and carrying out data matching, the condition of data matching error is avoided, the data transmission efficiency is improved, and the technical problem of low current data transmission efficiency is effectively solved.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a generation flow of a data object group according to an embodiment of the present application.
Fig. 3 is a schematic diagram of another generation flow of a data object group according to an embodiment of the present application.
Fig. 4 is a schematic processing flow diagram of a data object group according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a data transmission device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a data transmission method, a data transmission device, a storage medium and electronic equipment.
As shown in fig. 1, fig. 1 is a schematic flow chart of a data transmission method provided in the embodiment of the present application, and a specific flow may be as follows:
s101, when a data transmission signal is detected, generating a data object group according to initial data carried by the data transmission signal, wherein the data object group comprises a monitoring data object and a corresponding monitored data object, the monitoring data object carries state information of the monitored data object, and the monitored data object carries data protocol conversion information and data type conversion information.
The initial data comprises request data or response data sent/received by a system, and the monitored data object only carries data protocol conversion information and data type conversion information related to the initial data and does not have the protocol characteristics of the initial data; the state information of the monitored data object carried by the monitoring data object is used for monitoring whether the monitored data object is effective or not in real time.
Specifically, the data protocol conversion information is used to characterize an initial protocol type of the initial data and a target protocol type (i.e., a protocol type to which it is expected to convert), and the data type conversion information is used to characterize a data type of the initial data and a target data type (i.e., a data type to which it is expected to convert).
In one embodiment, when a data transmission signal is detected, data extraction is performed on the data transmission signal to obtain request data, the request data is used as initial data, data protocol conversion information and data type conversion information in the request data are analyzed, a monitored data object is generated according to the data protocol conversion information and the data type conversion information, a monitoring data object is generated according to state information of the monitored data object, and the monitoring data object and the monitored data object are used as a data object group.
Specifically, as shown in fig. 2, first, the request data management module 2001 executes step S201: receiving and analyzing the request data, and then executing step S202: sending the parsed request data to the request data verification module 2002, so that the request data verification module 2002 executes step S203: receiving the request data, and verifying the validity of the request data, if the request data is valid, the request data verifying module 2002 executes step S204: the request data is sent to the request data object group generation module 2003 to execute step S205 by the request data object group generation module 2003: a request data object group corresponding to the request data is generated.
The requested data object group generating module 2003 generates a corresponding data object group for the requested data based on the data protocol mapping table. Specifically, the data protocol mapping table is used to store mapping relationships between IP addresses and protocol types, for example, the IP address of the sending end of a sip request data is 219.156.123.58, and since the protocol type of the request data is sip protocol, the IP address 219.156.123.58 is marked as an address for receiving sip protocol data.
Specifically, after acquiring the request data, the request data object group generating module 2003 acquires a target IP address requested by the request data, determines a target protocol type of the target IP address based on the data protocol mapping relationship table, generates a monitored data object carrying initial protocol type (protocol type of the request data) information and target protocol type (protocol type to be converted), and generates a monitored data object having an index relationship with the monitored data object according to status information of the monitored data object. For example, the request data object group generating module 2003 receives an sip request data, where a target IP address requested by the sip request data is 176.111.173.218, and determines, based on the data protocol mapping relationship table, that a target protocol type of the target IP address 176.111.173.218 is a websocket protocol, so as to generate a monitored data object having an initial protocol type of a sip protocol identifier and a target protocol type of a websocket protocol identifier, and generate a monitored data object having an index relationship with the monitored data object according to status information of the monitored data object.
In another embodiment, when a data transmission signal is detected, data extraction is performed on the data transmission signal to obtain response data, the response data is used as initial data, data protocol conversion information and data type conversion information in the response data are analyzed, a monitored data object is generated according to the data protocol conversion information and the data type conversion information, a monitoring data object is generated according to state information of the monitored data object, and the monitoring data object and the monitored data object are used as a data object group.
Specifically, as shown in fig. 3, first, the response data management module 3001 executes step S301: receiving and analyzing the response data, and then executing step S302: the parsed response data is sent to the response data verification module 3002 to perform step S303 by the response data verification module 3002: receiving the response data, and verifying the validity of the response data, if the response data is valid, the response data verification module 3002 executes step S304: the response data is sent to the response data object group generation module 3003 to execute step S305 by the response data object group generation module 3003: a response data object group corresponding to the response data is generated.
Specifically, the response data object group generating module 3003 generates a corresponding data object group for the response data based on the data protocol mapping table as well. The response data object group generating module 3003, after acquiring the response data, acquires the target IP address to which the response data corresponds, determines the target protocol type of the target IP address based on the data protocol mapping relationship table, then generates the monitored data object carrying the initial protocol type information and the target protocol type information, and generates the monitored data object having an index relationship with the monitored data object according to the status information of the monitored data object.
For example, the response data object group generating module 3003 receives sip response data, where a target IP address responded by the sip response data is 180.76.57.58, determines, based on the data protocol mapping relationship table, that the target protocol type of the target IP address 180.76.57.58 is a websocket protocol, so as to generate the monitored data object having the initial protocol type of the sip protocol identifier and the target protocol type of the websocket protocol identifier, and generates the monitored data object having an index relationship with the monitored data object according to the status information of the monitored data object.
Therefore, in the embodiment, the processing processes of the request data and the response data are separated, so that the phenomenon that the system is overloaded under the condition that a large amount of data to be processed exists is avoided, and the processing performance of the system is effectively improved.
Further, the state information of the object includes effective period information of the object, the effective period information representing an effective period of the object. Because each protocol data has different effective periods, if the protocol data exceeds the effective period, the protocol data will fail, and in order to ensure the effectiveness of data transmission, the effective period of the monitored data object needs to be monitored in real time to determine whether the monitored data object is effective, and optionally, the monitored data object obtains the state information of the monitored data object through the index ID of the monitored data object.
And S102, generating target data according to the state information, the data type conversion information and the data protocol conversion information.
The data type conversion information and the data protocol conversion information carried by the monitored data object represent the protocol type and the data type of the initial data and the protocol type and the data type of the target data, so that whether the current monitored data object is effective or not can be judged according to the state information of the monitored data object, and corresponding feedback data is generated under the condition that the current monitored data object is effective or invalid.
In this embodiment, as shown in fig. 4, first, the data object group caching module 4001 in the processing module (not shown in the figure) executes step S401: summarizing and caching each data object group, and then executing the step S402 by the scheduling thread module 4002: reading the data object group information cached in the data object group caching module 4001 every interval preset time length to determine the data protocol conversion mode and the data type conversion mode corresponding to the data object group, and then executing step S403: sending the data protocol conversion mode and the data type conversion mode corresponding to each data object group to the data routing module 4003, so as to execute step S404 by the data reason module 4003: and generating target data according to the data protocol conversion mode and the data type conversion mode, and sending the target data to the target data sending module 4004.
Specifically, in one embodiment, the generation process of the target data may include: when the state information meets the preset condition, generating first target data according to the data type conversion information and the data protocol conversion information, and using the first target data as target data, optionally, the generating process of the first target data includes: firstly, a period to be read of a data object group is obtained, when an effective period (namely, state information) represented by the effective period information is greater than or equal to the period to be read, which indicates that the state of the monitored data object is effective when being read, the state information is determined to meet a preset condition, then first target data are generated according to a target data type identifier in data type conversion information and a target protocol identifier in data protocol conversion information, wherein the period to be read is a waiting time from the generation of the data object group to the reading of a processed module (namely, a time length for the data object group to stay in a data object group cache module), the data type of the first target data is a target data type, and the data format of the first target data is a target protocol data format.
For example, the data object group a includes the monitored data object a1 and the detected data object a2, the target data type identifier and the target protocol identifier carried by the monitored data object a1 are the response data identifier and the websocket protocol identifier, respectively, the period to be read of the data object group a is 50ms, and the effective period of the monitored data object a1 is 100ms, so that it is determined that the state information of the monitored data object a1 satisfies the preset condition, and the first target data having the response type and the websocket protocol data format is immediately generated.
In another embodiment, the generation process of the target data may include: when the state information does not satisfy the preset condition, generating second target data according to the data type conversion information and the data protocol conversion information, and using the second target data as target data, optionally, the generating process of the second target data includes: and acquiring a period to be read of the data object group, and when the effective period represented by the effective period information is smaller than the period to be read, indicating that the monitored data object is invalid when being read, determining that the state information does not meet the preset condition, and then generating second target data according to the initial data type identifier in the data type conversion information and the initial protocol identifier in the data protocol conversion information, wherein the data type of the second target data is the initial data type, and the data format of the second target data is the initial protocol data format.
For example, the data object group B includes a monitored data object B1 and a detected data object B2, the initial data type identifier and the initial protocol identifier carried by the monitored data object B1 are a request data identifier and a sip protocol identifier, respectively, the period to be read of the data object group B is 100ms, and the effective period of the monitored data object B1 is 50ms, so that it is determined that the state information of the monitored data object B1 does not satisfy the preset condition, and second target data having the request type and the sip protocol data format is immediately generated.
And S103, determining a target data receiving end and transmitting the target data to the target data receiving end.
The target data receiving end is configured to receive target data, and after the target data is generated, a corresponding receiving end needs to be determined according to a type of the target data (i.e., the first target data or the second target data). Specifically, if the first target data indicates that the conversion is successful (i.e. the protocol type and the data type expected by the initial data are converted), the target IP address requested/responded by the initial data is used as a target data receiving end, and the first target data is sent to the target data receiving end; if the second target data indicates that the conversion fails (i.e. the protocol type and the data type expected by the initial data are not converted), the IP address of the sending end of the initial data is used as the target data receiving end, and the second target data is sent to the target data receiving end.
For example, the first target data is response data with a websocket protocol data format, and the target IP address requested by the corresponding initial data is 180.76.57.58, so the response data with the websocket protocol data format is sent to the receiving end with the IP address of 180.76.57.58; alternatively, the second target data is request data having sip protocol data format, and the target IP address requested by the corresponding initial data is 219.156.123.58, so the request data having sip protocol data format is sent to the receiving end having IP address 219.156.123.58.
Therefore, by performing the cooperative processing on the monitored data object and the monitored data object, even if the data conversion fails (i.e., the data is illegal or the above failure condition), the subsequent data transmission process is not affected, and the data transmission efficiency is effectively improved.
According to the data transmission method provided by the application, when a data transmission signal is detected, a data object group is generated according to initial data carried by the data transmission signal, wherein the data object group comprises a monitored data object and a corresponding monitored data object, the monitored data object carries state information of the monitored data object, the monitored data object carries data protocol conversion information and data type conversion information, then target data is generated according to the state information, the data type conversion information and the data protocol conversion information, and finally a target data receiving end is determined and the target data is transmitted to the target data receiving end. Because the initial data is abstracted into the data object group, the target data after the data protocol and the data type are converted can be automatically generated only according to the information carried by the data object group in the data transmission process without distinguishing the data protocol type of the initial data and carrying out data matching, the condition of data matching error is avoided, the data transmission efficiency is improved, and the technical problem of low current data transmission efficiency is effectively solved.
According to the method described in the above embodiments, the present embodiment will be further described from the perspective of a data transmission device, which may be specifically implemented as an independent entity or integrated in an electronic device.
Referring to fig. 5, fig. 5 specifically describes a data transmission device provided in an embodiment of the present application, where the data transmission device includes: a data object group generating module 10, a target data generating module 20 and a transmitting module 30, wherein:
(1) data object group generation module 10
The data object group generating module 10 is configured to generate a data object group according to initial data carried in the data transmission signal when the data transmission signal is detected, where the data object group includes a monitored data object and a corresponding monitored data object, the monitored data object carries status information of the monitored data object, and the monitored data object carries data protocol conversion information and data type conversion information.
The data object group generating module 10 may specifically be configured to:
when the data transmission signal is detected, performing data extraction on the data transmission signal to obtain request data, and taking the request data as initial data;
analyzing data protocol conversion information and data type conversion information in the request data;
generating a monitored data object according to the data protocol conversion information and the data type conversion information, and generating a monitoring data object according to the state information of the monitored data object;
the monitored data object and the monitored data object are used as a data object group.
Further, the data object group generating module 10 may be further configured to:
when the data transmission signal is detected, performing data extraction on the data transmission signal to obtain response data, and taking the response data as initial data;
analyzing data protocol conversion information and data type conversion information in the response data;
generating a monitored data object according to the data protocol conversion information and the data type conversion information, and generating a monitoring data object according to the state information of the monitored data object;
the monitored data object and the monitored data object are used as a data object group.
(2) Object data generation module 20
And a target data generating module 20, configured to generate target data according to the state information, the data type conversion information, and the data protocol conversion information.
The state information includes valid period information, and the target data generation module 20 may specifically be configured to:
when the state information meets the preset condition, generating first target data according to the data type conversion information and the data protocol conversion information;
the first target data is taken as target data.
Specifically, the target data generation module 20 may be further configured to:
acquiring a cycle to be read of a data object group; the period to be read is the waiting time from the self generation of the data object group to the reading of the processing module;
when the effective period represented by the effective period information is greater than or equal to the period to be read, determining that the state information meets the preset condition;
generating first target data according to a target data type identifier in the data type conversion information and a target protocol identifier in the data protocol conversion information; the data type of the first target data is a target data type, and the data format of the first target data is a target protocol data format.
Further, the target data generation module 20 may be further configured to:
when the state information does not meet the preset condition, generating second target data according to the data type conversion information and the data protocol conversion information;
the second target data is taken as target data.
Specifically, the target data generation module 20 may be further configured to:
acquiring a cycle to be read of a data object group; the period to be read is the waiting time from the self generation of the data object group to the reading of the processing module;
when the effective period represented by the effective period information is smaller than the period to be read, determining that the state information does not meet the preset condition;
generating second target data according to the initial data type identification in the data type conversion information and the initial protocol identification in the data protocol conversion information; the data type of the second target data is an initial data type, and the data format of the second target data is an initial protocol data format.
(3) Transmission module 30
And the transmission module 30 is configured to determine a target data receiving end and transmit the target data to the target data receiving end.
As can be seen from the above, in the data transmission device provided in the present application, when a data transmission signal is detected, a data object group is generated by the data object group generating module 10 according to initial data carried by the data transmission signal, where the data object group includes a monitored data object and a corresponding monitored data object, the monitored data object carries status information of the monitored data object, the monitored data object carries data protocol conversion information and data type conversion information, then target data is generated by the target data generating module 20 according to the status information, the data type conversion information and the data protocol conversion information, and finally a target data receiving end is determined by the transmission module 30 and the target data is transmitted to the target data receiving end. Because the initial data is abstracted into the data object group, the target data after the data protocol and the data type are converted can be automatically generated only according to the information carried by the data object group in the data transmission process without distinguishing the data protocol type of the initial data and carrying out data matching, the condition of data matching error is avoided, the data transmission efficiency is improved, and the technical problem of low current data transmission efficiency is effectively solved.
Correspondingly, the embodiment of the invention also provides a data transmission system, which comprises any one of the data transmission devices provided by the embodiment of the invention, and the data transmission device can be integrated in electronic equipment.
When a data transmission signal is detected, a data object group is generated according to initial data carried by the data transmission signal, wherein the data object group comprises a monitored data object and a corresponding monitored data object, the monitored data object carries state information of the monitored data object, the monitored data object carries data protocol conversion information and data type conversion information, then target data is generated according to the state information, the data type conversion information and the data protocol conversion information, and finally a target data receiving end is determined and the target data is transmitted to the target data receiving end.
Since the data transmission system may include any data transmission device provided in the embodiment of the present invention, the beneficial effects that can be achieved by any data transmission device provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
In addition, the embodiment of the application also provides electronic equipment. As shown in fig. 6, the electronic device 600 includes a processor 601, a memory 602. The processor 601 is electrically connected to the memory 602.
The processor 601 is a control center of the electronic device 600, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or loading an application program stored in the memory 602 and calling the data stored in the memory 602, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 601 in the electronic device 600 loads instructions corresponding to processes of one or more application programs into the memory 602 according to the following steps, and the processor 601 runs the application programs stored in the memory 602, thereby implementing various functions:
when a data transmission signal is detected, generating a data object group according to initial data carried by the data transmission signal; the data object group comprises monitoring data objects and corresponding monitored data objects, the monitoring data objects carry state information of the monitored data objects, and the monitored data objects carry data protocol conversion information and data type conversion information;
generating target data according to the state information, the data type conversion information and the data protocol conversion information;
and determining a target data receiving end and transmitting the target data to the target data receiving end.
Fig. 7 is a specific block diagram of an electronic device according to an embodiment of the present invention, where the electronic device may be used to implement the data transmission method provided in the foregoing embodiment.
The RF circuit 710 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. The RF circuitry 710 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, and so forth. The RF circuit 710 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 720 may be used to store software programs and modules, and the processor 780 may execute various functional applications and data processing, i.e., implement the function of storing 5G capability information, by operating the software programs and modules stored in the memory 720. The memory 720 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 720 may further include memory located remotely from processor 780, which may be connected to electronic device 700 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 730 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 730 may include a touch-sensitive surface 731 as well as other input devices 732. Touch-sensitive surface 731, also referred to as a touch display screen or touch pad, can collect touch operations by a user on or near touch-sensitive surface 731 (e.g., operations by a user on or near touch-sensitive surface 731 using a finger, stylus, or any other suitable object or attachment) and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 731 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 780, and can receive and execute commands from the processor 780. In addition, the touch-sensitive surface 731 can be implemented in a variety of types, including resistive, capacitive, infrared, and surface acoustic wave. The input unit 730 may also include other input devices 732 in addition to the touch-sensitive surface 731. In particular, other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 740 may be used to display information input by or provided to the user and various graphical user interfaces of the electronic device 700, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 740 may include a Display panel 741, and optionally, the Display panel 741 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 731 can overlay display panel 741, such that when touch-sensitive surface 731 detects a touch event thereon or nearby, processor 780 can determine the type of touch event, and processor 780 can then provide a corresponding visual output on display panel 741 based on the type of touch event. Although in FIG. 7 the touch-sensitive surface 731 and the display panel 741 are implemented as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface 731 and the display panel 741 may be integrated to implement input and output functions.
The electronic device 700 may also include at least one sensor 750, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 741 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 741 and/or a backlight when the electronic device 700 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device 700, detailed descriptions thereof are omitted.
The audio circuit 760, speaker 761, and microphone 762 may provide an audio interface between a user and the electronic device 700. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, and the electrical signal is converted into a sound signal by the speaker 761 and output; on the other hand, the microphone 762 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 760, processes the audio data by the audio data output processor 780, and transmits the processed audio data to, for example, another terminal via the RF circuit 710, or outputs the audio data to the memory 720 for further processing. The audio circuitry 760 may also include an earbud jack to provide communication of a peripheral headset with the electronic device 700.
The electronic device 700, via the transport module 770 (e.g., a Wi-Fi module), may assist a user in sending and receiving e-mail, browsing web pages, accessing streaming media, etc., which provides wireless broadband internet access to the user. Although fig. 7 shows the transmission module 770, it is understood that it does not belong to the essential constitution of the electronic device 700 and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 780 is a control center of the electronic device 700, connects various parts of the entire cellular phone using various interfaces and lines, and performs various functions of the electronic device 700 and processes data by operating or executing software programs and/or modules stored in the memory 720 and calling data stored in the memory 720. Optionally, processor 780 may include one or more processing cores; in some embodiments, processor 780 may integrate an application processor that handles primarily the operating system, user interface, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 780.
The electronic device 700 also includes a power supply 790 (e.g., a battery) that provides power to various components, and in some embodiments may be logically coupled to the processor 780 via a power management system that may perform functions such as managing charging, discharging, and power consumption. The power supply 790 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device 700 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the electronic device is a touch screen display, the electronic device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
when a data transmission signal is detected, generating a data object group according to initial data carried by the data transmission signal; the data object group comprises monitoring data objects and corresponding monitored data objects, the monitoring data objects carry state information of the monitored data objects, and the monitored data objects carry data protocol conversion information and data type conversion information;
generating target data according to the state information, the data type conversion information and the data protocol conversion information;
and determining a target data receiving end and transmitting the target data to the target data receiving end.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the data transmission methods provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any data transmission method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any data transmission method provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In summary, although the present application has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present application, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, so that the scope of the present application shall be determined by the scope of the appended claims.

Claims (10)

1. A method of data transmission, comprising:
when a data transmission signal is detected, generating a data object group according to initial data carried by the data transmission signal; the data object group comprises a monitoring data object and a corresponding monitored data object, the monitoring data object carries state information of the monitored data object, and the monitored data object carries data protocol conversion information and data type conversion information;
generating target data according to the state information, the data type conversion information and the data protocol conversion information;
and determining a target data receiving end and transmitting the target data to the target data receiving end.
2. The data transmission method according to claim 1, wherein the step of generating the data object group according to the initial data carried by the data transmission signal when the data transmission signal is detected comprises:
when a data transmission signal is detected, performing data extraction on the data transmission signal to obtain request data, and taking the request data as the initial data;
analyzing data protocol conversion information and data type conversion information in the request data;
generating a monitored data object according to the data protocol conversion information and the data type conversion information, and generating a monitoring data object according to the state information of the monitored data object;
and using the monitoring data object and the monitored data object as the data object group.
3. The data transmission method according to claim 1, wherein the step of generating the data object group according to the initial data carried by the data transmission signal when the data transmission signal is detected further comprises:
when a data transmission signal is detected, performing data extraction on the data transmission signal to obtain response data, and taking the response data as the initial data;
analyzing data protocol conversion information and data type conversion information in the response data;
generating a monitored data object according to the data protocol conversion information and the data type conversion information, and generating a monitoring data object according to the state information of the monitored data object;
and using the monitoring data object and the monitored data object as the data object group.
4. The data transmission method according to claim 2 or 3, wherein the status information includes validity period information; the step of generating target data according to the state information, the data type conversion information, and the data protocol conversion information includes:
when the state information meets a preset condition, generating first target data according to the data type conversion information and the data protocol conversion information;
and taking the first target data as the target data.
5. The data transmission method according to claim 4, wherein the step of generating the first target data according to the data type conversion information and the data protocol conversion information when the status information satisfies a preset condition includes:
acquiring a cycle to be read of the data object group; the period to be read is the waiting time from the self generation of the data object group to the reading of the processing module;
when the effective period represented by the effective period information is greater than or equal to the period to be read, determining that the state information meets the preset condition;
generating the first target data according to a target data type identifier in the data type conversion information and a target protocol identifier in the data protocol conversion information; the data type of the first target data is a target data type, and the data format of the first target data is a target protocol data format.
6. The data transmission method according to claim 4, wherein the step of generating target data according to the state information, the data type conversion information, and the data protocol conversion information further comprises:
when the state information does not meet the preset condition, generating second target data according to the data type conversion information and the data protocol conversion information;
and taking the second target data as the target data.
7. The data transmission method according to claim 6, wherein the step of generating second target data according to the data type conversion information and the data protocol conversion information when the status information does not satisfy the preset condition comprises:
acquiring a cycle to be read of the data object group; the period to be read is the waiting time from the self generation of the data object group to the reading of the processing module;
when the effective period represented by the effective period information is smaller than the period to be read, determining that the state information does not meet the preset condition;
generating the second target data according to the initial data type identifier in the data type conversion information and the initial protocol identifier in the data protocol conversion information; the data type of the second target data is an initial data type, and the data format of the second target data is an initial protocol data format.
8. A data transmission apparatus, comprising:
the data object group generating module is used for generating a data object group according to initial data carried by the data transmission signal when the data transmission signal is detected; the data object group comprises a monitoring data object and a corresponding monitored data object, the monitoring data object carries state information of the monitored data object, and the monitored data object carries data protocol conversion information and data type conversion information;
the target data generation module is used for generating target data according to the state information, the data type conversion information and the data protocol conversion information;
and the transmission module is used for determining a target data receiving end and transmitting the target data to the target data receiving end.
9. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the steps of the data transmission method of any one of claims 1 to 7.
10. An electronic device comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the data transmission method of any one of claims 1 to 7.
CN202210070360.3A 2022-01-21 2022-01-21 Data transmission method, device, storage medium and electronic equipment Active CN114095585B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210070360.3A CN114095585B (en) 2022-01-21 2022-01-21 Data transmission method, device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210070360.3A CN114095585B (en) 2022-01-21 2022-01-21 Data transmission method, device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114095585A true CN114095585A (en) 2022-02-25
CN114095585B CN114095585B (en) 2022-05-20

Family

ID=80309037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210070360.3A Active CN114095585B (en) 2022-01-21 2022-01-21 Data transmission method, device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114095585B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1159033A (en) * 1995-12-19 1997-09-10 国际商业机器公司 Object oriented mail server framework mechanism
CN1728703A (en) * 2005-06-29 2006-02-01 上海大学 Method for converting protocol between Modbus and DeviceNet
CN101420386A (en) * 2008-12-09 2009-04-29 南京西倍特科技有限公司 Multi-field integrated metering network interconnecting routing method
CN102331487A (en) * 2011-07-26 2012-01-25 江苏容力科技有限公司 Device and method for automatically processing water quality monitoring data
CN108427647A (en) * 2017-02-15 2018-08-21 三星电子株式会社 Read the method and mixing memory module of data
CN108965148A (en) * 2018-06-27 2018-12-07 新华三信息安全技术有限公司 A kind of processor and message processing method
CN109635019A (en) * 2018-10-23 2019-04-16 平安科技(深圳)有限公司 Request processing method, device, equipment and storage medium
US10574794B1 (en) * 2019-07-12 2020-02-25 Coupang Corp. Systems and methods for interfacing networks regardless of communication scheme
CN111800521A (en) * 2020-09-08 2020-10-20 武汉中科通达高新技术股份有限公司 Front-end equipment control method and device
CN111988373A (en) * 2020-07-31 2020-11-24 广州市百果园信息技术有限公司 Data processing method and device
CN112367297A (en) * 2020-10-16 2021-02-12 武汉中科通达高新技术股份有限公司 Service control method and device
CN112511557A (en) * 2020-12-17 2021-03-16 南京理工大学 Protocol conversion method for application gateway of relay protection device on 10kV line
CN112671638A (en) * 2021-01-13 2021-04-16 北京方正数码有限公司 Gateway structure for multi-protocol conversion
CN113938531A (en) * 2021-09-23 2022-01-14 北京车和家信息技术有限公司 Data transmission method, device, equipment and medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1159033A (en) * 1995-12-19 1997-09-10 国际商业机器公司 Object oriented mail server framework mechanism
CN1728703A (en) * 2005-06-29 2006-02-01 上海大学 Method for converting protocol between Modbus and DeviceNet
CN101420386A (en) * 2008-12-09 2009-04-29 南京西倍特科技有限公司 Multi-field integrated metering network interconnecting routing method
CN102331487A (en) * 2011-07-26 2012-01-25 江苏容力科技有限公司 Device and method for automatically processing water quality monitoring data
CN108427647A (en) * 2017-02-15 2018-08-21 三星电子株式会社 Read the method and mixing memory module of data
CN108965148A (en) * 2018-06-27 2018-12-07 新华三信息安全技术有限公司 A kind of processor and message processing method
CN109635019A (en) * 2018-10-23 2019-04-16 平安科技(深圳)有限公司 Request processing method, device, equipment and storage medium
US10574794B1 (en) * 2019-07-12 2020-02-25 Coupang Corp. Systems and methods for interfacing networks regardless of communication scheme
CN111988373A (en) * 2020-07-31 2020-11-24 广州市百果园信息技术有限公司 Data processing method and device
CN111800521A (en) * 2020-09-08 2020-10-20 武汉中科通达高新技术股份有限公司 Front-end equipment control method and device
CN112367297A (en) * 2020-10-16 2021-02-12 武汉中科通达高新技术股份有限公司 Service control method and device
CN112511557A (en) * 2020-12-17 2021-03-16 南京理工大学 Protocol conversion method for application gateway of relay protection device on 10kV line
CN112671638A (en) * 2021-01-13 2021-04-16 北京方正数码有限公司 Gateway structure for multi-protocol conversion
CN113938531A (en) * 2021-09-23 2022-01-14 北京车和家信息技术有限公司 Data transmission method, device, equipment and medium

Also Published As

Publication number Publication date
CN114095585B (en) 2022-05-20

Similar Documents

Publication Publication Date Title
WO2015090248A1 (en) Server overload protection method and device
CN111078523B (en) Log acquisition method and device, storage medium and electronic equipment
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
WO2023236972A1 (en) Communication environment security warning method and apparatus, terminal device, and storage medium
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN112749074B (en) Test case recommending method and device
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN111464328A (en) Cloud monitoring process control method and device capable of configuring monitoring items
WO2017166093A1 (en) Front-end system
CN115118636B (en) Method and device for determining network jitter state, electronic equipment and storage medium
CN111615101B (en) IMS registration method, device, storage medium and electronic terminal
CN114095585B (en) Data transmission method, device, storage medium and electronic equipment
CN114518718A (en) Device control method, device, storage medium and electronic device
CN112667868B (en) Data detection method and device
CN113613310A (en) WIFI connection method and device, storage medium and mobile terminal
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN107315623B (en) Method and device for reporting statistical data
CN109995441B (en) Communication information processing method, device and storage medium
CN111405649B (en) Information transmission method and device and mobile terminal
CN112235874B (en) Method, system, storage medium and mobile terminal for reducing front-end wireless transmission time
CN116684467B (en) Data acquisition method, electronic device and storage medium
CN112531835B (en) Mobile terminal charging method and device, storage medium and mobile terminal
CN109286647B (en) Method and device for acquiring multimedia data
CN110046063B (en) Device and method for restoring factory settings of mobile terminal and storage medium

Legal Events

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