CN115086446B - Data transmission method, system, device, equipment and computer readable storage medium - Google Patents

Data transmission method, system, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN115086446B
CN115086446B CN202210977956.1A CN202210977956A CN115086446B CN 115086446 B CN115086446 B CN 115086446B CN 202210977956 A CN202210977956 A CN 202210977956A CN 115086446 B CN115086446 B CN 115086446B
Authority
CN
China
Prior art keywords
data
data transmission
transmission unit
unit dtu
anemometer tower
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
CN202210977956.1A
Other languages
Chinese (zh)
Other versions
CN115086446A (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.)
Sprixin Technology Co ltd
Original Assignee
Sprixin 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 Sprixin Technology Co ltd filed Critical Sprixin Technology Co ltd
Priority to CN202210977956.1A priority Critical patent/CN115086446B/en
Publication of CN115086446A publication Critical patent/CN115086446A/en
Application granted granted Critical
Publication of CN115086446B publication Critical patent/CN115086446B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes

Abstract

The invention relates to the field of data transmission, and provides a data transmission method, a system, a device, equipment and a computer readable storage medium, wherein the data transmission method is applied to a data transmission system, the data transmission system comprises an anemometer tower, a Data Transmission Unit (DTU) and an acquisition server, and the method comprises the following steps: controlling the anemometer tower to transmit target data stored in the anemometer tower to the data transmission unit DTU according to a first preset protocol; converting the target data into a network data packet through the data transmission unit DTU; and controlling the data transmission unit DTU to transmit the network data packet to the acquisition server according to a second preset protocol. According to the invention, through the data transmission system, the first preset protocol and the second preset protocol, the wireless transmission of the wind measurement data stored in the wind measurement tower is realized, and the transmission cost of the wind measurement data is reduced.

Description

Data transmission method, system, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a data transmission method, system, device, apparatus, and computer readable storage medium.
Background
With the rapid development of new energy industry, the collection and analysis of wind energy resource data have become an important part of wind power generation construction. As wind energy resource data acquisition equipment, the construction number of wind measuring towers is increased year by year, and wind measuring data acquired by the wind measuring towers needs to be transmitted to a data analysis terminal in time. At present, anemometry tower data is transmitted through optical fibers or radio stations, and because the construction of anemometry towers has higher requirements on the surrounding environment, some anemometry towers can be further constructed to remote areas, so that the cost of an optical fiber transmission mode or a radio station transmission mode is increased, the development of the wind power industry is hindered, and therefore, the technical problem to be solved urgently is solved by how to realize the lower anemometry data transmission with lower cost.
Disclosure of Invention
The invention provides a data transmission method, a system, a device, equipment and a computer readable storage medium, which are used for solving the technical problem that the existing anemometry data transmission mode is high in cost.
The invention provides a data transmission method, which is applied to a data transmission system, wherein the data transmission system comprises an anemometer tower, a Data Transmission Unit (DTU) and an acquisition server; the data transmission method comprises the following steps:
controlling the anemometer tower to transmit target data stored in the anemometer tower to the data transmission unit DTU according to a first preset protocol;
converting the target data into a network data packet through the data transmission unit DTU;
and controlling the data transmission unit DTU to transmit the network data packet to the acquisition server according to a second preset protocol.
According to a data transmission method provided by the invention, the data transmission system further comprises a mobile communication node; before the step of controlling the anemometer tower to transmit the target data stored in the anemometer tower to the data transmission unit DTU according to the first preset protocol, the data transmission method includes:
establishing serial port connection between the anemometer tower and the data transmission unit DTU;
establishing a socket connection between the data transmission unit DTU and the mobile communication node;
and establishing network connection between the mobile communication node and the acquisition server.
According to a data transmission method provided by the present invention, the step of establishing a socket connection between the data transmission unit DTU and the mobile communication node includes:
registering the data transmission unit DTU to a mobile communication network corresponding to the mobile communication node;
transmitting a target internet protocol address allocated by the mobile communication node and a fixed internet protocol address of the mobile communication node to the data transmission unit DTU through the mobile communication network;
and establishing the connection between the data transmission unit DTU and the socket of the mobile communication node according to the target internet protocol address and the fixed internet protocol address.
According to a data transmission method provided by the present invention, the step of controlling the anemometer tower to transmit the target data stored in the anemometer tower to the data transmission unit DTU according to a first preset protocol includes:
sending a first data frame corresponding to a first preset protocol to the anemometer tower through the serial port connection;
and under the condition that the anemoscope tower responds to the first data frame, controlling the anemoscope tower to transmit target data corresponding to the first data frame stored in the anemoscope tower to the data transmission unit DTU.
According to a data transmission method provided by the present invention, the step of sending a first data frame corresponding to a first preset protocol to the anemometer tower through the serial port connection includes:
under the condition that the first address domain is matched with the anemometer tower and the first data frame is determined to be accurately sent according to the check domain, inquiring the stored data of the anemometer tower according to the first function domain;
and determining that the anemometer tower responds to the first data frame when target data corresponding to the first data field exists in the stored data of the anemometer tower.
According to a data transmission method provided by the present invention, the step of controlling the data transmission unit DTU to transmit the network data packet to the acquisition server according to a second preset protocol includes:
sending a second data frame corresponding to a second preset protocol to the data transmission unit DTU through the network connection and the socket connection, wherein the second data frame comprises a second address field, a second functional field and a second data field;
under the condition that the second address field is matched with the DTU, inquiring the storage data of the DTU according to the second functional field;
and transmitting the network data packet to the acquisition server under the condition that the storage data of the data transmission unit DTU comprises the network data packet corresponding to the second data domain.
The invention also provides a data transmission system, which comprises an anemometer tower, a data transmission unit DTU and an acquisition server, wherein the anemometer tower is connected with the data transmission unit DTU, and the data transmission unit DTU is connected with the acquisition server; wherein:
the anemometer tower is used for transmitting the target data stored in the anemometer tower to the data transmission unit DTU;
the data transmission unit DTU is used for converting the target data into a network data packet;
the acquisition server is used for receiving the network data packet transmitted by the data transmission unit DTU.
The present invention also provides a data transmission apparatus, comprising:
the target data transmission module is used for controlling the anemometer tower to transmit the target data stored in the anemometer tower to the data transmission unit DTU according to a first preset protocol;
the data conversion module is used for converting the target data into a network data packet through the data transmission unit DTU;
and the network data packet transmission module is used for controlling the data transmission unit DTU to transmit the network data packet to the acquisition server according to a second preset protocol.
The present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the above data transmission methods when executing the program.
The invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a data transmission method as described in any of the above.
The data transmission method is applied to a data transmission system, the data transmission system comprises an anemometer tower, a data transmission unit DTU and an acquisition server, target data stored in the anemometer tower is transmitted to the data transmission unit DTU according to a first preset protocol by controlling the anemometer tower, the target data is converted into a network data packet in the data transmission unit DTU, finally the data transmission unit DTU is controlled to transmit the network data packet to the acquisition server according to a second preset protocol, and the data transmission system, the first preset protocol and the second preset protocol realize wireless transmission of the anemometer data stored in the anemometer tower and reduce transmission cost of the anemometer data.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a data transmission method provided by the present invention;
FIG. 2 is a second flowchart of the data transmission method provided by the present invention;
FIG. 3 is a schematic diagram of a data transmission system according to the present invention;
FIG. 4 is a schematic diagram of a data transmission device according to the present invention;
fig. 5 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. 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 invention.
Referring to fig. 1, the present invention provides a data transmission method, where the data transmission method is applied to a data transmission system, the data transmission system includes an anemometer tower, a data transmission unit DTU, and an acquisition server, and the data transmission method includes:
step S100, controlling the anemometer tower to transmit target data stored in the anemometer tower to the data transmission unit DTU according to a first preset protocol;
specifically, the Data transmission method provided in this embodiment is applied to a Data transmission system including a wind measuring tower, a wireless Data transmission module and a collection server, where the wireless Data transmission module includes a DTU (Data Transfer unit) in this embodiment, the wind measuring tower is used to collect wind energy resource-related Data, that is, target Data in this embodiment, and the wind measuring tower is also used to store the target Data. The data transmission system in this embodiment performs data transmission through a Modbus protocol (a serial communication protocol), where serial communication is performed between the anemometer tower and the data transmission unit DTU through a Modbus-RTU protocol or a Modbus-ACSII protocol, a first preset protocol in this embodiment is the Modbus-RTU protocol or the Modbus-ACSII protocol, except that the Modbus-RTU samples hexadecimal representation data, and the Modbus-ASCII uses ASCII codes to represent data. And according to a first preset protocol, the data transmission system controls the anemometer tower and transmits the target data stored in the anemometer tower to the DTU.
Step S200, converting the target data into a network data packet through the data transmission unit DTU;
specifically, the data transmission unit DTU in this embodiment is a wireless terminal device that is specially used to convert serial data (i.e., target data in this embodiment) into IP (Internet Protocol, network layer Protocol) data (i.e., a network data packet in this embodiment), or convert a network data packet into target data and transmit the target data through a wireless communication network. The most basic usage of the data transmission unit DTU is: a Subscriber Identity Module (SIM) card with a General Packet Radio Service (GPRS) function is put into a Data Transmission Unit (DTU), and after the DTU is powered on, the DTU is firstly registered in a GPRS network and then establishes socket connection with a data processing center through the GPRS network. The data transmission unit DTU is a client connected with the socket, and the data processing center is a server connected with the socket. The socket is connected to a part of a TCP (Transmission Control Protocol) Protocol and a UDP (User Datagram Protocol) Protocol, the data Transmission unit DTU and the data processing center use the same Protocol, and after an IP address and a port number of the data processing center are configured for the data Transmission unit DTU, the data Transmission unit DTU is connected to a device of a User through a serial port. For example, after being powered on, the data transmission unit DTU first registers to a mobile network, then sends a request packet for establishing socket connection to the mobile, the mobile sends the request to the internet, and server software of the data processing center establishes connection after receiving the request, and sends response information. The request information sent by the data transmission unit DTU is a data packet on the Internet, and the socket connection can be established to realize two-way communication.
Step S300, according to a second preset protocol, controlling the data transmission unit DTU to transmit the network data packet to the acquisition server.
Specifically, in this embodiment, the data transmission unit DTU and the acquisition server perform wireless communication via a Modbus-TCP protocol (i.e., a second preset protocol in this embodiment), and the wireless communication process is as follows: the Modbus equipment is divided into a master station and a slave station. The number of the master stations is only one, and the number of the slave stations can be multiple. When TCP communication is used, the master station is a client and actively establishes connection with the slave station; the slave station is a server and waits for the connection sent by the master station. The Data frame of the Modbus-TCP may be divided into two parts, namely, a Modbus Application Protocol (MBAP) + Protocol Data Unit (PDU), where PDU = function code + Data field, and the length of the Data field is not fixed, and is determined by a specific function. MBAP is a message header, the length is 7 bytes, and the components are as follows: transaction identification, protocol identification, length and unit identifier, wherein the transaction identification is a serial number of the message, and 1 is added after each communication to distinguish different communication data messages; the protocol mark 00 represents a Modbus-TCP protocol; the length is the data length and the unit is byte; the unit identifier may be understood as a device address. The Modbus has four operation targets: the functional code comprises a coil, a discrete input register, a holding register and an input register, wherein a functional code 01 is in a coil reading state, a functional code 02 is in a discrete input reading state, a functional code 03 is in a holding register reading state, and a functional code 04 is in an input register reading state.
According to the embodiment, the wind measuring tower is controlled, the target data stored in the wind measuring tower are transmitted to the data transmission unit DTU according to the first preset protocol, the target data are converted into the network data packet in the data transmission unit DTU, finally, the data transmission unit DTU is controlled to transmit the network data packet to the acquisition server according to the second preset protocol, wireless transmission of the wind measuring data stored in the wind measuring tower is achieved through the data transmission system, the first preset protocol and the second preset protocol, and the transmission cost of the wind measuring data is reduced.
In an embodiment, the data transmission system further includes a mobile communication node, and the data transmission method provided in the embodiment of the present application may further include:
step S10, establishing serial port connection between the anemometer tower and the data transmission unit DTU;
step S20, establishing the connection between the data transmission unit DTU and the socket of the mobile communication node;
and step S30, establishing network connection between the mobile communication node and the acquisition server.
Specifically, before data transmission is performed on target data, the data transmission system needs to establish connection between each node, and it is understood that the data transmission system further includes a mobile communication node located between the data transmission unit DTU and the acquisition server. The wind measuring tower is connected with the data transmission unit DTU through a wired serial port, the data transmission unit DTU is connected with the mobile communication node through a socket, the mobile communication node is connected with the acquisition server through a network, and the process of the connection is described by taking the socket connection as an example in the embodiment: before a socket connection is opened, a socket needs to be created, and then the IP and the port of the socket are appointed; the server side starts monitoring and waits for the access of the client side; the client is connected with the server, the server receives the client connection, and three times of handshaking are carried out in the connection process; the client and the server send and receive data, and the operating system completes the steps of data confirmation, data retransmission and the like; by closing the connection, the operating system may perform four hand swings.
In the embodiment, before the data transmission system transmits the target data, the corresponding connection between the nodes is established, and a transmission network is established for the anemometry data.
In an embodiment, the data transmission method provided in the embodiment of the present application may further include:
step S21, registering the DTU to a mobile communication network corresponding to the mobile communication node;
step S22, sending the target internet protocol address allocated by the mobile communication node and the fixed internet protocol address of the mobile communication node to the data transmission unit DTU through the mobile communication network;
and step S23, establishing the connection between the DTU and the socket of the mobile communication node according to the target IP address and the fixed IP address.
Specifically, after the data transmission unit DTU is powered on, it registers in the GPRS network (i.e., the Mobile communication network corresponding to the Mobile communication node in this embodiment) first, reads out the working parameters (including GPRS dialing parameters, serial baud rate, IP address, and the like) stored in the internal flash memory of the data transmission unit DTU, where the working parameters are configured in advance, and the data transmission unit DTU logs in a GSM (Global System for Mobile Communications) network and then performs GPRS dialing. After successful dialing, the data transmission unit DTU will obtain a randomly allocated internal IP address (i.e. the target IP address in this embodiment). That is, the data transmission unit DTU is located in the mobile communication network intranet, and the IP address of the mobile communication network intranet is usually not fixed and changes with each dialing. The data transmission unit DTU actively initiates a communication connection with the data processing center (i.e., the mobile communication node in this embodiment) and keeps the communication connection existing all the time. The DTU is positioned in the mobile communication network intranet, and the IP address is not fixed. Thus, the data transmission unit DTU can be actively connected to the data processing center only, and not to the data processing center. This requires that the data processing center have a fixed public IP address (i.e., a fixed internet protocol address in this embodiment) or a fixed domain name. The public network IP address or the fixed domain name of the data processing center is stored in the data transmission unit DTU as a parameter, so that the data transmission unit DTU can be actively connected to the data processing center once the power-on dialing is successful, and the socket connection between the data transmission unit DTU and the mobile communication node is established.
In the embodiment, through mobile communication network registration, internet protocol address allocation and transmission, a socket connection between the DTU and the mobile communication node is established, and a transmission network is established for the anemometry data.
In an embodiment, the data transmission method provided in the embodiment of the present application may further include:
step S110, sending a first data frame corresponding to a first preset protocol to the anemometer tower through the serial port connection;
and step S120, under the condition that the anemometer tower responds to the first data frame, controlling the anemometer tower to transmit target data corresponding to the first data frame stored in the anemometer tower to the data transmission unit DTU.
Specifically, the anemometer tower is connected with the data transmission unit DTU in a serial port manner, in a Modbus-RTU protocol, the data transmission unit DTU is a master, the anemometer tower is a slave, and the master sends a Modbus message to the slave, where the Modbus message is a frame of data sent by the master to the slave, and the Modbus message includes an address of the slave, an operation to be executed by the master, a check code and other contents, specifically including a slave address, a function code, data and a check code. Each slave has a unique address, the slave address occupies one byte, the range is 0-255, the effective range is 1-247, and 255 is a broadcast address (the broadcast is to send responses to all the slaves); the function code occupies one byte, and the operation objects of the Modbus include four types: the system comprises a coil, a discrete input register, a holding register and an input register, wherein a function code 01 is in a coil reading state, a function code 02 is in a discrete input reading state, a function code 03 is in a holding register, and a function code 04 is in an input register reading state; different function codes have different functions, such as inquiring data of a slave, wherein the data refers to the address of the data to be inquired, the number of bytes to be inquired and the like; errors may occur during data transmission, and whether the received data is correct is detected through the check code. And under the condition that the anemometer tower responds to the first data frame, controlling the anemometer tower to transmit target data corresponding to the first data frame stored in the anemometer tower to the data transmission unit DTU.
According to the embodiment, the target data are transmitted through the first preset protocol and the first data frame, so that the transmission of the anemometry data stored in the anemometry tower is realized, and the transmission cost of the anemometry data is reduced.
In an embodiment, the data transmission method provided in the embodiment of the present application may further include:
step S130, under the condition that the first address domain is matched with the anemometer tower and the first data frame is determined to be accurately sent according to the check domain, inquiring the stored data of the anemometer tower according to the first functional domain;
step S140, determining that the anemometer tower responds to the first data frame when the target data corresponding to the first data field exists in the stored data of the anemometer tower.
Specifically, in the Modbus-RTU protocol, the data transmission unit DTU is a master, the anemometer tower is a slave, and the data transmission unit DTU sends a frame of data including an address of the slave (i.e. the first address field in this embodiment), a function code (i.e. the first function field in this embodiment), data (i.e. the first data field in this embodiment) and a check code (i.e. the check field in this embodiment) to the anemometer tower, where the first address field is a unique address owned by each slave, the first address field occupies one byte, and ranges from 0 to 255, the valid range is 1 to 247, and 255 is a broadcast address (broadcast is sending a response to all slaves); the first functional domain occupies one byte, the operation objects of the Modbus comprise four types, namely a coil, a discrete input register, a holding register and an input register, the first functional domain 01 is in a coil reading state, the first functional domain 02 is in a discrete input reading state, the first functional domain 03 is in a holding register, and the first functional domain 04 is in a read-input register and the like; different first function domains have different functions, such as inquiring slave data, and the first data domain refers to the address of the slave data to be inquired, the number of bytes to be inquired and the like; errors may occur during data transmission, and whether the received data is correct is detected through the check field. Therefore, when the first address domain is the address of the anemometer tower and the first data frame is determined to be accurately sent according to the check domain, the stored data of the anemometer tower is inquired through the first functional domain, and when the target data corresponding to the inquired first data domain exists in the stored data of the anemometer tower, the anemometer tower is determined to respond to the first data frame, otherwise, the anemometer tower is determined not to respond to the first data frame.
According to the embodiment, whether the anemometry tower responds to the first data frame or not is determined through the first data frame comprising the first address domain, the first function domain, the first data domain and the verification domain, and the safe and accurate transmission of the anemometry data is guaranteed while the anemometry data transmission network is built.
Referring to fig. 2, in an embodiment, the data transmission method provided in the embodiment of the present application may further include:
step S310, sending a second data frame corresponding to a second preset protocol to the data transmission unit DTU through the network connection and the socket connection, where the second data frame includes a second address field, a second functional field, and a second data field;
step S320, querying, according to the second functional domain, stored data of the data transmission unit DTU when the second address domain matches the data transmission unit DTU;
step S330, transmitting the network data packet to the collection server when the storage data of the data transmission unit DTU includes the network data packet corresponding to the second data field.
Specifically, similar to the Modbus-RTU protocol, the Modbus-TCP protocol also transmits a message (i.e., a second data frame), and the difference is that in the Modbus-TCP protocol, the data transmission unit DTU is a server, the acquisition server is a client, the client is connected to the socket through a network connection and a socket, the client sends a second data frame including a second address field, a second functional field, and a second data field to the server, and when the second address field is an address of the data transmission unit DTU, the client queries the stored data of the data transmission unit DTU according to the second functional field, and when the stored data of the data transmission unit DTU includes a network data packet corresponding to the second data field, the network data packet is transmitted to the acquisition server in a wireless transmission manner, thereby completing automatic transmission of the wind measurement data in the data transmission system, and reducing data transmission cost.
In the embodiment, whether the data transmission unit DTU responds to the second data frame is determined through the second data frame comprising the second address field, the second functional field and the second data field, and the safe and accurate transmission of the anemometry data is ensured while the anemometry data transmission network is established.
Referring to fig. 3, the present invention further provides a data transmission system, where the data transmission system includes a wind measuring tower, a data transmission unit DTU and an acquisition server, the wind measuring tower is connected to the data transmission unit DTU, and the data transmission unit DTU is connected to the acquisition server; wherein:
the anemometer tower is used for transmitting the target data stored in the anemometer tower to the data transmission unit DTU;
the data transmission unit DTU is used for converting the target data into a network data packet;
the acquisition server is used for receiving the network data packet transmitted by the data transmission unit DTU.
Specifically, as shown in fig. 3, the wind measuring tower is used for collecting wind energy resource related data and storing the wind energy resource related data, that is, target data stored in the wind measuring tower, the wind measuring tower is connected with the data transmission unit DTU through a wired serial port, and the wind measuring tower transmits the stored target data to the data transmission unit DTU through the wired serial port; the data transmission unit DTU is a wireless terminal device which is specially used for converting target data into a network data packet or converting the network data packet into the target data and transmitting the target data through a wireless communication network; the data transmission unit DTU is connected with the acquisition server through a wireless network, and the acquisition server is used for receiving network data packets transmitted by the data transmission unit DTU through the wireless network connection.
The data transmission device provided by the present invention is described below, and the data transmission device described below and the data transmission method described above may be referred to correspondingly.
Referring to fig. 4, the present invention further provides a data transmission apparatus, including:
the target data transmission module 401 is configured to control the anemometer tower to transmit target data stored in the anemometer tower to the data transmission unit DTU according to a first preset protocol;
a data conversion module 402, configured to convert the target data into a network data packet through the data transmission unit DTU;
a network data packet transmission module 403, configured to control the data transmission unit DTU to transmit the network data packet to an acquisition server according to a second preset protocol.
Optionally, the data transmission system further comprises a mobile communication node; the data transmission device further comprises:
the serial port connection module is used for establishing serial port connection between the anemometer tower and the data transmission unit DTU;
the socket connection module is used for establishing socket connection between the data transmission unit DTU and the mobile communication node;
and the network connection module is used for establishing the network connection between the mobile communication node and the acquisition server.
Optionally, the socket connection module includes:
a mobile communication network registering unit, configured to register the data transmission unit DTU to a mobile communication network corresponding to the mobile communication node;
an internet protocol address transmitting unit configured to transmit a target internet protocol address allocated by the mobile communication node and a fixed internet protocol address of the mobile communication node to the data transmission unit DTU through the mobile communication network;
and the socket connection unit is used for establishing the socket connection between the DTU and the mobile communication node according to the target IP address and the fixed IP address.
Optionally, the target data transmission module includes:
the first data frame sending unit is used for sending a first data frame corresponding to a first preset protocol to the anemometer tower through the serial port connection;
and the target data transmission unit is used for controlling the anemometer tower to transmit the target data corresponding to the first data frame stored in the anemometer tower to the data transmission unit DTU under the condition that the anemometer tower responds to the first data frame.
Optionally, the first data frame includes a first address field, a first functional field, a first data field, and a check field, and the data transmission apparatus further includes:
the first storage data query module is used for querying the storage data of the anemometer tower according to the first functional domain under the condition that the first address domain is matched with the anemometer tower and the first data frame is determined to be accurately sent according to the check domain;
and the first data frame response module is used for determining that the anemometer tower responds to the first data frame when target data corresponding to the first data field exists in the stored data of the anemometer tower.
Optionally, the network data packet transmission module includes:
a second data frame sending unit, configured to send a second data frame corresponding to a second preset protocol to the data transmission unit DTU through the network connection and the socket connection, where the second data frame includes a second address field, a second functional field, and a second data field;
a second stored data query unit, configured to query, according to the second functional domain, stored data of the data transmission unit DTU when the second address domain matches the data transmission unit DTU;
and the network data packet transmission unit is used for transmitting the network data packet to the acquisition server under the condition that the storage data of the data transmission unit DTU comprises the network data packet corresponding to the second data domain.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor) 510, a communication Interface (Communications Interface) 520, a memory (memory) 530, and a communication bus 540, wherein the processor 510, the communication Interface 520, and the memory 530 communicate with each other via the communication bus 540. Processor 510 may call logic instructions in memory 530 to perform a data transfer method.
Furthermore, the logic instructions in the memory 530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
In yet another aspect, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to execute the data transmission method provided by the above embodiments.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A data transmission method is characterized in that the data transmission method is applied to a data transmission system, and the data transmission system comprises a wind measuring tower, a data transmission unit DTU, a mobile communication node and an acquisition server; the data transmission method comprises the following steps:
establishing a socket connection between the data transmission unit DTU and the mobile communication node;
establishing network connection between the mobile communication node and the acquisition server;
controlling the anemometer tower to transmit target data stored in the anemometer tower to the data transmission unit DTU according to a first preset protocol;
converting the target data into a network data packet through the data transmission unit DTU;
sending a second data frame corresponding to a second preset protocol to the data transmission unit DTU through the network connection and the socket connection, wherein the second data frame comprises a second address field, a second functional field and a second data field;
under the condition that the second address field is matched with the data transmission unit DTU, inquiring the storage data of the data transmission unit DTU according to the second functional field;
and transmitting the network data packet to the acquisition server under the condition that the storage data of the data transmission unit DTU comprises the network data packet corresponding to the second data domain.
2. The data transmission method according to claim 1, wherein before the step of controlling the wind tower to transmit the target data stored in the wind tower to the data transmission unit DTU according to the first preset protocol, the data transmission method comprises:
and establishing serial port connection between the anemometer tower and the data transmission unit DTU.
3. The data transmission method according to claim 2, wherein the step of establishing a socket connection between the data transmission unit DTU and the mobile communication node comprises:
registering the data transmission unit DTU to a mobile communication network corresponding to the mobile communication node;
transmitting a target internet protocol address allocated by the mobile communication node and a fixed internet protocol address of the mobile communication node to the data transmission unit DTU through the mobile communication network;
and establishing the connection between the data transmission unit DTU and the socket of the mobile communication node according to the target internet protocol address and the fixed internet protocol address.
4. The data transmission method according to claim 2, wherein the step of controlling the anemometer tower to transmit the target data stored in the anemometer tower to the data transmission unit DTU according to a first preset protocol comprises:
sending a first data frame corresponding to a first preset protocol to the anemometer tower through the serial port connection;
and under the condition that the anemometer tower responds to the first data frame, controlling the anemometer tower to transmit the target data corresponding to the first data frame stored in the anemometer tower to the data transmission unit DTU.
5. The data transmission method according to claim 4, wherein the first data frame includes a first address field, a first functional field, a first data field, and a check field, and after the step of sending the first data frame corresponding to the first preset protocol to the anemometer tower through the serial connection, the method includes:
under the condition that the first address domain is matched with the anemometer tower and the first data frame is determined to be accurately sent according to the check domain, inquiring the stored data of the anemometer tower according to the first function domain;
and determining that the anemometer tower responds to the first data frame when target data corresponding to the first data field exists in the stored data of the anemometer tower.
6. A data transmission apparatus, comprising:
the socket connection module is used for establishing the socket connection between the data transmission unit DTU and the mobile communication node;
the network connection module is used for establishing network connection between the mobile communication node and the acquisition server;
the target data transmission module is used for controlling the anemometer tower to transmit the target data stored in the anemometer tower to the data transmission unit DTU according to a first preset protocol;
the data conversion module is used for converting the target data into a network data packet through the data transmission unit DTU;
a second data frame sending module, configured to send a second data frame corresponding to a second preset protocol to the data transmission unit DTU through the network connection and the socket connection, where the second data frame includes a second address field, a second functional field, and a second data field;
the storage data query module is used for querying the storage data of the data transmission unit DTU according to the second functional domain under the condition that the second address domain is matched with the data transmission unit DTU;
and the network data packet transmission module is used for transmitting the network data packet to the acquisition server under the condition that the storage data of the data transmission unit DTU comprises the network data packet corresponding to the second data domain.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the data transmission method according to any one of claims 1 to 5 when executing the program.
8. A non-transitory computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the data transmission method according to any one of claims 1 to 5.
CN202210977956.1A 2022-08-16 2022-08-16 Data transmission method, system, device, equipment and computer readable storage medium Active CN115086446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210977956.1A CN115086446B (en) 2022-08-16 2022-08-16 Data transmission method, system, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210977956.1A CN115086446B (en) 2022-08-16 2022-08-16 Data transmission method, system, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN115086446A CN115086446A (en) 2022-09-20
CN115086446B true CN115086446B (en) 2022-12-02

Family

ID=83244431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210977956.1A Active CN115086446B (en) 2022-08-16 2022-08-16 Data transmission method, system, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115086446B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164936A (en) * 2011-12-13 2013-06-19 江苏道达海上风电工程科技有限公司 Data transmission system for offshore anemometer tower, and method thereof
CN103247158A (en) * 2013-04-19 2013-08-14 国家电网公司 Wifi transmitting device used for measuring signals of wind tower in real time
WO2019227891A1 (en) * 2018-05-31 2019-12-05 杭州海康威视数字技术股份有限公司 Method and apparatus for implementing communication between nodes, and electronic device
CN210380926U (en) * 2019-08-09 2020-04-21 四川汇源光通信有限公司 Ubiquitous electric power thing networking intelligent gateway equipment
CN210833654U (en) * 2019-11-06 2020-06-23 龙源(北京)风电工程技术有限公司 Wind resource measuring equipment and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7738871B2 (en) * 2004-11-05 2010-06-15 Interdigital Technology Corporation Wireless communication method and system for implementing media independent handover between technologically diversified access networks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164936A (en) * 2011-12-13 2013-06-19 江苏道达海上风电工程科技有限公司 Data transmission system for offshore anemometer tower, and method thereof
CN103247158A (en) * 2013-04-19 2013-08-14 国家电网公司 Wifi transmitting device used for measuring signals of wind tower in real time
WO2019227891A1 (en) * 2018-05-31 2019-12-05 杭州海康威视数字技术股份有限公司 Method and apparatus for implementing communication between nodes, and electronic device
CN210380926U (en) * 2019-08-09 2020-04-21 四川汇源光通信有限公司 Ubiquitous electric power thing networking intelligent gateway equipment
CN210833654U (en) * 2019-11-06 2020-06-23 龙源(北京)风电工程技术有限公司 Wind resource measuring equipment and system

Also Published As

Publication number Publication date
CN115086446A (en) 2022-09-20

Similar Documents

Publication Publication Date Title
CN1819593B (en) Information processor and data transmission system and method
US9130804B2 (en) Method and system for transmission of data packets from an IP-based network via a first network node to a second network node
US8446843B2 (en) Rapid local address assignment for wireless communication networks
CN109981668A (en) Common apparatus Internet of Things communication means based on the extensive agreement of MQTT
RU2006104624A (en) SYSTEM AND METHOD FOR USING IP ADDRESS AS AN IDENTIFIER OF A WIRELESS MODULE
CN102209302A (en) System and method for realizing information push of mobile terminal
CN108712485A (en) A kind of resource subscription method and apparatus of internet of things equipment
CN109819498A (en) A kind of smart machine, the automatic distribution method and system of smart machine
CN103973421A (en) File transmitting method and device
CN111263338A (en) Network distribution method of Bluetooth Mesh network and related network distribution equipment and system
CN107623752B (en) Network management method and device based on link layer
CN109819527A (en) A kind of data transmission method, device, equipment and the storage medium of cloud printing
CN103716189A (en) Configuration management method for local area network terminal gateway equipment
CN111884938B (en) Router information acquisition method and device
CN115086446B (en) Data transmission method, system, device, equipment and computer readable storage medium
KR100744214B1 (en) Wireless network communication control apparatus and network system
US11592316B2 (en) Method for reading meters for fluids
CN114996195A (en) Method, system, device and medium for acquiring carbon footprint data
JP2019531011A (en) Method for controlling the load of a data concentration gateway for a wireless communication network
JP2001320754A (en) Mobile communication system with automatic registration function of radio base station installed position, and automatic registration method for radio base station installed position
CN202841300U (en) Apparatus for monitoring controlled object through using mobile phone message to transmit dynamic IP address
CN208076997U (en) A kind of equipment high in the clouds monitoring management system
CN107277182B (en) Data transmission method and device
JP6234848B2 (en) Wireless communication system, wireless communication device, and wireless device
CN218679405U (en) Edge data acquisition system

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