WO2020134554A1 - Data transmission method and device, and computer readable storage medium - Google Patents
Data transmission method and device, and computer readable storage medium Download PDFInfo
- Publication number
- WO2020134554A1 WO2020134554A1 PCT/CN2019/114783 CN2019114783W WO2020134554A1 WO 2020134554 A1 WO2020134554 A1 WO 2020134554A1 CN 2019114783 W CN2019114783 W CN 2019114783W WO 2020134554 A1 WO2020134554 A1 WO 2020134554A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- module
- data
- processing unit
- central processing
- data message
- Prior art date
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 107
- 238000000034 method Methods 0.000 title claims abstract description 74
- 238000003860 storage Methods 0.000 title claims abstract description 25
- QVFWZNCVPCJQOP-UHFFFAOYSA-N chloralodol Chemical compound CC(O)(C)CC(C)OC(O)C(Cl)(Cl)Cl QVFWZNCVPCJQOP-UHFFFAOYSA-N 0.000 claims abstract description 118
- 238000012545 processing Methods 0.000 claims abstract description 88
- 238000004148 unit process Methods 0.000 claims abstract description 9
- 238000004891 communication Methods 0.000 claims description 54
- 238000012360 testing method Methods 0.000 claims description 14
- 238000012790 confirmation Methods 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 description 13
- 238000012544 monitoring process Methods 0.000 description 9
- 238000004590 computer program Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 6
- 238000006243 chemical reaction Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000012937 correction Methods 0.000 description 3
- 238000005562 fading Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000009776 industrial production Methods 0.000 description 2
- 238000002955 isolation Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q9/00—Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q2209/00—Arrangements in telecontrol or telemetry systems
- H04Q2209/40—Arrangements in telecontrol or telemetry systems using a wireless architecture
Definitions
- the present invention relates to the field of network technology, and in particular, to a data transmission method, device, and computer-readable storage medium.
- Electrical automation equipment has been widely used in industrial production. There are a large number of electrical automation devices, instruments and systems in many industrial sites, manufacturing and production workshops, automated logistics workshops, and transportation vehicle repair centers. These electrified equipment are usually distributed in various workshops of the factory, with a spacing in the range of hundreds to thousands of kilometers. To ensure the safety of industrial production processes, the operating status of electrical automation equipment usually needs to be monitored.
- the electrical automation equipment in some industrial sites may be too expensive to deploy or cannot be deployed due to physical constraints; sometimes electrical automation equipment is installed
- the power socket is not reserved, and it cannot be rebuilt or the cost of rebuilding is too high due to location reasons.
- the monitoring of electrical automation equipment needs to use battery-powered wireless communication.
- the wireless communication method needs to meet the requirements of long distance, and at the same time, the power consumption is lower, and it is suitable for battery power supply.
- Wireless communication is a method that uses only electromagnetic waves and does not communicate through cables. Its biggest advantage is that it does not require cables.
- Wireless communication includes wide area wireless (wireless) communication systems, such as GSM, 3G, 4G, and GPRS; local wireless (wireless) local systems, such as WiFi; and personal wireless systems (such as Bluetooth) (Bluetooth (IEEE802.15.1)) , Ultra-wideband UWB (IEEE 802.15.3a), ZigBee (IEEE 802.15.4), etc.
- the wide-area wireless system has a long communication distance but requires communication costs; the communication equipment of the local area network also requires more investment, and the communication distance is several hundred meters; the communication distance of the wireless personal area system is tens of meters.
- the transmission distance meets the requirements, but there are equipment investment costs and later operating costs.
- the later operating costs will be significant Increase; the use of WiFi communication cannot guarantee a reliable connection; if AC power is not available, but the current required for communication is large, and the battery life is short.
- the main purpose of the present invention is to provide a data transmission method, device and computer-readable storage medium, aiming to solve the technical problem that the existing wireless communication device monitoring method is difficult to realize long-distance, low-power data transmission.
- a data transmission method provided by the present invention is applied to a gateway.
- the gateway includes: a central processing unit, an industrial Ethernet module, a LoRa module, and a field bus module; the central processing unit and the industrial The Ethernet module, the LoRa module and the field bus module are communicatively connected;
- the data transmission method includes the following steps: when receiving the first data message sent by the LoRa module, the central processing unit determines the first A first sending module corresponding to a data message, wherein the first sending module is the industrial Ethernet module or a fieldbus module; the central processing unit compares the first sending module based on the data format corresponding to the first sending module Processing a data message, and sending the processed first data message to the first sending module for the first sending module to send the processed first data message and the first sending module End node for communication connection.
- the present invention also provides a data transmission device.
- the data transmission device includes: a memory, a processor, and a data transmission program stored on the memory and executable on the processor. When the data transmission program is executed by the processor, the steps of the foregoing data transmission method are implemented.
- the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a data transmission program, the data transmission program is executed by the processor to achieve the aforementioned data transmission method step.
- the present invention also provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program When the instructions are executed by a computer, the computer is caused to perform the methods described in the above aspects.
- FIG. 1 is a schematic structural diagram of a data transmission device in an operating environment according to an embodiment of the present invention
- FIG. 2 is a schematic flowchart of a first embodiment of a data transmission method of the present invention
- FIG. 3 is a schematic structural diagram of an embodiment of a gateway of the present invention.
- FIG. 4 is a schematic diagram of the application of the gateway of the present invention.
- FIG. 5 is a schematic structural diagram of another embodiment of a gateway of the present invention.
- FIG. 6 is a schematic structural diagram of another embodiment of the gateway of the present invention.
- FIG. 7 is a schematic diagram of data conversion in the present invention.
- FIG. 1 is a schematic structural diagram of a data transmission device in an operating environment according to an embodiment of the present invention.
- the data transmission device in the embodiment of the present invention is a gateway.
- the gateway may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002.
- the communication bus 1002 is used to implement connection communication between these components.
- the user interface 1003 may include a display (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
- the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
- the memory 1005 may be a high-speed RAM memory, or may be a non-volatile memory (non-volatile memory), such as a disk memory.
- the memory 1005 may optionally be a storage device independent of the foregoing processor 1001.
- FIG. 1 does not constitute a limitation on the data transmission device, and may include more or fewer components than those illustrated, or combine certain components, or different components Layout.
- the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a data transmission program.
- the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server;
- the user interface 1003 is mainly used to connect to the client (user side) and perform data communication with the client; and
- the processor 1001 may be used to call a data transmission program stored in the memory 1005.
- the data transmission device includes: a memory 1005, a processor 1001, and a data transmission program stored on the memory 1005 and executable on the processor 1001, where the processor 1001 calls the memory 1005 to store The data transmission program and perform the operations in the various embodiments of the following data transmission method.
- FIG. 2 is a schematic flowchart of a first embodiment of the data transmission method of the present invention.
- the data transmission method is applied to a gateway.
- the gateway includes: a central processing unit, an industrial Ethernet module, a LoRa module, and a field bus module; the central processing unit and the industrial Ethernet module, respectively, The LoRa module and the field bus module are communicatively connected.
- LoRa long range
- LPWAN Low power wide-area network
- Industrial Ethernet modules include Ethernet controllers, isolation, and industrial Ethernet interfaces.
- the industrial Ethernet interface is reserved for DB9, ruggedized RJ45, aviation plugs and terminals. You can choose the appropriate method according to the actual situation on site.
- the industrial Ethernet module can realize a variety of industrial Ethernet field applications, including Ethernet/IP, ModBus-IDA, and is compatible with existing Ethernet used for data communication.
- the LoRa module includes a LoRa chip and an antenna interface.
- the LoRa module is divided into two parts. One part is the LoRa management channel, which is responsible for the LoRa node's application for network access and the address allocation of the newly accessed LoRa node; the other part is the LoRa communication channel, which obtains the LoRa address allocation.
- Nodes send and receive data through communication channels. There can be multiple LoRa communication channels, which use different frequencies to transmit data.
- LoRa module frequency band operation includes 433, 868, 915MHz, etc. Using forward error correction coding technology, redundancy is added to the transmission data, which can resist multipath fading and ensure the reliability of transmission.
- LoRa module can achieve data transmission capability farther than the existing WiFi, ZigBee and other wireless methods; nodes using LoRa module can achieve a communication distance of hundreds of meters to several kilometers, which can better integrate industrial Ethernet and handle in time A large amount of data on the industrial site; the power consumption of the LoRa module is smaller than the existing GSM, GPRS, 3G, 4G communication module, WiFi communication module and other commercial power supply modules, and the solar energy-powered terminal nodes have lower power consumption and are suitable for use.
- LoRa nodes mostly use STM low-power controllers, LoRaWAN protocol can automatically adjust the transmission power according to the communication distance, and the controller's sleep mode
- the sleep current can be as low as 10uA; compared with existing RTU equipment, the development cost is low; LoRa operates in the ISM frequency band, there is no communication cost, and the operating cost is low.
- Fieldbus modules and field monitoring equipment use the same bus type, including bus controllers, bus drivers and interfaces.
- the fieldbus module can be the controller area network CAN, RS485, or the type of fieldbus set as required.
- the gateway also includes: a power module, a USB module, and a storage module; wherein, the USB module includes a USB chip and an interface, which are used for gateway debugging.
- the storage module mainly includes a memory and a storage control.
- the central processing unit temporarily stores the acquired data, the result of the data processing or the data that cannot be processed in time in the cache into the storage; the storage control controls the storage and clearing of the storage data.
- the power module provides the power needed for the gateway to work.
- the power module includes two types of interfaces: a battery interface and an AC interface, which are used in the occasions where batteries and AC are used, respectively.
- the central processing unit can use the ARMSTM32F4 chip, the LoRa module uses the SX1278 chip, and the protocol conversion mode uses a 4-channel digital control analog switch chip CD4052B as the core mode selection circuit.
- the field bus includes RS485 and CAN.
- the LoRa module uses three sets of SX1278 chips, one of which is a management channel chip and the other two are communication channels. The center frequencies of the two communication channels are different, and they can accept data from two different sets of LoRa nodes.
- the industrial Ethernet module uses the DM9000 chip, plus an isolation transformer and interface. The specific implementation is to simplify the traditional TCP/IP without violating the protocol standard, to meet the resource constraints of embedded chips and the requirements of industrial Ethernet transmission. The characteristics are real-time, simplicity and flexibility.
- Industrial Ethernet interface module adopts ruggedized RJ45, aviation plug, DB9 or terminal interface.
- FIG. 6 is a schematic diagram of a conversion gateway implementation of industrial Ethernet Etherhet/IP and long-distance low-power LoRa and field bus RS485 and CAN using DSP.
- the characteristic part of Ethernet/IP is based on Ethernet and TCP/IP technology.
- the upper layer adopts CIP protocol, which makes the high-speed transmission of large amounts of data easier to achieve.
- the central processing unit can also use TMS320F2812, which has faster processing capability.
- Ethernet/IP physical layer and data data link layer conform to IEEE802.3 and are implemented using the CS8900 chip; its network layer and transport layer use simplified TCP/IP to ensure its real-time and reliable connection, and use the Transmission Control Protocol (TCP) to transmit For message data, I/O data is transmitted using the Connected Device Protocol (UDP); the application layer uses the common industrial protocol CIP (Common Industrial Protocol), embedded in the DSP software, and implements protocol analysis, protocol conversion, and gateway setting management.
- CIP Common Industrial Protocol
- the data transmission method includes the following steps:
- Step S110 When receiving the first data message sent by the LoRa module, the central processing unit determines the first sending module corresponding to the first data message, where the first sending module is the industrial Ethernet Network module or field bus module;
- the field device corresponding to the LoRa module when the field device corresponding to the LoRa module sends data, the field device sends a LoRa test signal through the LoRa unit, and the central processing unit receives the test signal through the LoRa module, shielding the test signal from Identifier, based on the test signal after the masked identifier, determine the baud rate of the field device to send data, and then send a confirmation message to the field device, so that the field device sends the first data message to the LoRa module, the LoRa module will The received data message is forwarded to the central processing unit.
- the central processing unit determines the first sending module corresponding to the first data message, specifically, the first sending module is the first data sent by the gateway
- the message is sent to the module of the target field device.
- the first sending module is one of the industrial Ethernet module or the field bus module.
- the first data message carries the destination address (the address of the target field device) ), the central processing unit determines the first sending module according to the destination address.
- the central processing unit may determine that the first data message is LoRa data by using the frame identifier of the first data message.
- Step S120 the central processing unit processes the first data packet based on the data format corresponding to the first sending module, and sends the processed first data packet to the first sending module, A terminal node for the first sending module to send the processed first data message to the first sending module in communication connection.
- the central processing unit when determining the first sending module, processes the first data message based on the data format corresponding to the first sending module.
- the first sending module is an industrial Ethernet module , Unpacking or grouping the first data message, and converting it into an effective frame of Industrial Ethernet.
- the first sending module is a fieldbus module, unpacking or grouping the first data message, Convert to fieldbus valid frame.
- information such as a gateway ID number and time stamp may also be added to the first data message.
- the processed first data message when the processed first data message is obtained, it is determined whether the industrial Ethernet module or the field bus module is normal. If it is abnormal, the processed first data message is saved to the storage unit, and then returned to Entrance of the working mode of the gateway; if normal, the processed first data message is sent to the first sending module.
- the central processing unit when receiving the first data message sent by the LoRa module, determines the first sending module corresponding to the first data message, where the first The sending module is the industrial Ethernet module or the field bus module, and then the central processing unit processes the first data message based on the data format corresponding to the first sending module, and converts the processed first data
- the message is sent to the first sending module for the first sending module to send the processed first data message to the terminal node communicatively connected to the first sending module, which realizes the communication connection with the LoRa module
- the data of the field device is transmitted to the terminal node that is communicatively connected with the industrial Ethernet module or the field bus module. Due to the long transmission distance of the LoRa technology, the long-distance, low-power data transmission is realized through the LoRa module. Adding redundancy to the error correction coding technology and transmitting data can resist multipath fading and ensure the reliability of transmission.
- the data transmission method further includes: Step S130, upon receiving the second datagram sent by the industrial Ethernet module or the fieldbus module At the time of writing, the central processing unit determines the second sending module corresponding to the second data message; step S140, when the second sending module is the LoRa module, the central processing unit is based on the LoRa module Processing the second data message in a corresponding data format, and sending the processed second data message to the LoRa module for the LoRa module to send the processed second data message to the Describe the terminal node of the LoRa module communication connection.
- the field device when the field device corresponding to the industrial Ethernet module or field bus module sends data, the field device sends a test signal to the industrial Ethernet module or field bus module.
- the central processing unit passes the industrial Ethernet module or The fieldbus module receives the test signal, shields the identifier of the test signal, determines the baud rate of the data sent by the field device based on the test signal after the masked identifier, and then sends a confirmation message to the field device to enable the field device Send the second data message to the industrial Ethernet module or fieldbus module.
- the central processing unit determines the second sending module corresponding to the second data message, specifically, the second sending module is the gateway The second data message is sent to the module of the target field device in this embodiment.
- the second sending module is a LoRa module.
- the second data message carries the destination address (the address of the target field device).
- the central processing The unit determines that the second sending module is a LoRa module according to the destination address. It should be noted that, when processing the second data packet, information such as the gateway ID number and time stamp may also be added to the second data packet.
- the central processing unit processes the second data message based on the data format corresponding to the LoRa module, that is, performs unpacking or grouping of the second data message, Convert to LoRa effective frames. Send the processed second data message to the LoRa module for the LoRa module to send the processed second data message to a terminal node (target field device) that is communicatively connected to the LoRa module.
- the processed second data message when the processed second data message is obtained, it is determined whether the LoRa module is normal. If it is not normal, the processed second data message is saved to the storage unit, and then returned to the gateway working mode; if normal , Then send the processed second data message to the LoRa module.
- the data transmission method further includes: when the industrial Ethernet module sends a second data message, and the second sending module is the field bus module, the central processing unit is based on Processing the second data message in the data format corresponding to the field bus module, and sending the processed second data message to the field bus module; or, sending the second data message on the field bus module, And when the second sending module is the industrial Ethernet module, the central processing unit processes the second data packet based on the data format corresponding to the industrial Ethernet module, and the processed second The data message is sent to the industrial Ethernet module.
- the terminal node implements data transmission between field devices that are communicatively connected to the industrial Ethernet module, the LoRa module, and the field bus module.
- the central processing unit determines the second sending module corresponding to the second data message;
- the central processing unit processes the second data message based on the data format corresponding to the LoRa module, and the processed second data message Sent to the LoRa module for the LoRa module to send the processed second data message to the terminal node communicatively connected to the LoRa module; realizing the site where the industrial Ethernet module or the field bus module is communicatively connected
- the data of the device is transmitted to the terminal node that is communicatively connected to the LoRa module.
- the LoRa module Due to the long transmission distance of the LoRa technology, the LoRa module realizes long-distance, low-power data transmission, and the LoRa technology uses forward error correction coding technology to transmit Redundancy is added to the data, which can resist multipath fading and ensure the reliability of transmission.
- step S110 includes: step S111, the central processing unit obtains the baud rate corresponding to the first data packet; Step S112, the central processing unit sets the communication baud rate of the first sending module based on the baud rate; step S113, the central processing unit sends the processed first data message to the first A sending module, for the first sending module to send the processed first data message based on the baud rate to a terminal node communicatively connected to the first sending module.
- the central processing unit when receiving the first data message sent by the LoRa module, the central processing unit obtains the baud rate corresponding to the first data message, specifically, the central processing unit shields the first data message The identifier of the test signal in the text, and based on the test signal after the shielded identifier, determine the baud rate of the data sent by the field device (the baud rate corresponding to the first data message).
- the central processing unit sets the communication baud rate of the first sending module based on the baud rate, and then makes the LoRa module and the first sending module have the same communication baud rate, and the central processing unit will process the first
- the data message is sent to the first sending module for the first sending module to send the processed first data message based on the baud rate to the terminal node that is communicatively connected to the first sending module.
- the step S111 includes: the central processing unit traverses a preset baud rate, and determines whether the preset traversed preset baud rate matches the first data packet, where if , The preset baud rate currently traversed is used as the baud rate; or, the central processing unit obtains the communication baud rate corresponding to the standard test frame and calculates the difference between each standard baud rate and the communication baud rate For the difference between them, the standard baud rate corresponding to the smallest difference among the differences is taken as the baud rate.
- the baud rate can be determined by the polling method, that is, the central processing unit traverses the preset baud rate to determine whether the preset traversed preset baud rate matches the first data packet, and if so, , The preset baud rate currently traversed is used as the baud rate.
- the bit rate estimation method determines the baud rate by the bit rate estimation method, specifically, by capturing the number of pulses and timing between the start bit and stop bit of the standard test frame, calculate the average time occupied by each bit, and then obtain the standard test
- the communication baud rate corresponding to the frame calculating the difference between each standard baud rate and the communication baud rate, and taking the standard baud rate corresponding to the smallest difference among the differences as the baud rate Among them, the standard baud rate includes 110, 300, 1000, 1200, 2400, 4800, 9600 and 19200 baud.
- the central processing unit obtains the first baud rate corresponding to the first data packet; then the central processing unit sets the first sending module based on the baud rate The communication baud rate; and then the central processing unit sends the processed first data message to the first sending module for the first sending module to send the processed baud rate based on the first baud rate
- the data transmission method further includes: step S150, when the transmission of the first data packet is completed , The central processing unit obtains the information of the network access node corresponding to the first sending module; step S160, the central processing unit determines whether there is a dropped node among the network access nodes corresponding to the first sending module based on the network access node information Step S170, if it does not exist, the central processing unit adjusts the working mode of the gateway to the gateway working mode; Step S180, if it exists, the central processing unit based on the dropped data frame in the gateway corresponding to Delete the dropped node from the node address list, and adjust the working mode of the gateway to the working mode of the gateway.
- the central processing unit when the transmission of the first data message is completed, the central processing unit obtains the network access node information corresponding to the first sending module, and the central processing unit determines the network access node corresponding to the first sending module based on the network access node information Whether there is a disconnected node in the network, that is, according to the information of the network access node and the information of the network access node before the first data packet is sent to determine whether there is a disconnected node, if it does not exist, the central processing unit will The working mode is adjusted to the gateway working mode; if it exists, the central processing unit deletes the dropped node in the node address list corresponding to the gateway based on the dropped data frame, and adjusts the working mode of the gateway to the gateway Operating mode.
- the central processing unit when the first data message is sent, the central processing unit obtains the network access node information corresponding to the first sending module; then the central processing unit is based on the network access The node information determines whether there is a disconnected node among the network access nodes corresponding to the first sending module; then if it does not exist, the central processing unit adjusts the working mode of the gateway to the working mode of the gateway; The central processing unit deletes the dropped node in the node address list corresponding to the gateway based on the dropped data frame, and adjusts the working mode of the gateway to the working mode of the gateway, which can ensure that the gateway enters the working mode of the gateway in time to Ensure that other field devices are transmitting data.
- the data transmission method further includes: step S190, when the terminal node corresponding to the LoRa module is detected During the data transmission request, if the working mode of the gateway is the node active mode, the LoRa module searches for the preamble of the LoRa channel corresponding to the data transmission request; step S200, the LoRa module turns on the corresponding preamble Receiving a channel, and receiving the first data message through the receiving channel; step S210, when the reception of the first data message is completed, sending the first data message to the central processing unit, and Close the receiving channel.
- the LoRa module when detecting the data transmission request of the terminal node corresponding to the LoRa module, if the working mode of the gateway is the node active mode, the LoRa module searches for the corresponding The preamble of the LoRa channel. If the working mode of the gateway is the gateway query mode, you need to write the address and polling attributes of the polling node in the query command, and send the polling command to switch to the same working mode as the node active mode, and then the LoRa module searches for The preamble of the LoRa channel corresponding to the data transmission request.
- the LoRa module searches for the data transmission request The corresponding preamble of the LoRa channel; then the LoRa module opens the receiving channel corresponding to the preamble and receives the first data message through the receiving channel; and then when the first data message reception is completed , Sending the first data message to the central processing unit, and closing the receiving channel, by opening the receiving channel corresponding to the preamble, the stable and reliable reception of the first data message can be ensured, thereby improving the pass The reliability of data transmission by the gateway.
- the data transmission method further includes: step S220, after receiving a terminal node communicatively connected to the LoRa module When sending a network access request, the LoRa module obtains the node information and configuration parameters of the terminal node; step S230, the LoRa module determines whether the terminal node is a valid node based on the node address list and the node information; step S240 If yes, the LoRa module allocates an idle address to the terminal node, designates a channel, and determines a node operating mode; in step S240, the LoRa module sends allocation information to the terminal node, where the allocation information includes an idle address , Designated channel and node operating mode; step S250, upon receiving confirmation information fed back by the terminal node based on the allocation information, the LoRa module establishes a network connection with the terminal node.
- the gateway when the gateway starts to work, it first initializes the registers of the LoRa module. Then wait for whether there is a network access request from the LoRa module in the on-site wireless monitoring device. If not, continue to wait; if there is a network access request, when receiving the network access request sent by the terminal node communicatively connected to the LoRa module, the LoRa module obtains the node information and configuration parameters of the terminal node, and the LoRa module is based on the node address The list and the node information determine whether the terminal node is a legal node. Specifically, when the node information exists in the node address list, the terminal node is a legal node, otherwise the terminal node is an illegal node.
- the LoRa module when receiving a network access request sent by a terminal node communicatively connected to the LoRa module, the LoRa module obtains the node information and configuration parameters of the terminal node; then the LoRa module Determine whether the terminal node is a legal node based on the node address list and the node information; and if it is, then the LoRa module assigns an idle address to the terminal node, designates a channel, and determines the node operating mode; then the LoRa module sends Distribute information to the terminal node, and finally, upon receiving the confirmation information fed back by the terminal node based on the distribution information, the LoRa module establishes a network connection with the terminal node to implement a communication connection with the terminal of the LoRa module
- the node's access to the network makes the gateway scalable.
- an embodiment of the present invention further provides a computer-readable storage medium that stores a data transmission program, and the data transmission program is implemented by a processor as described in any one of the above The steps of the data transmission method.
- an embodiment of the present invention also provides a computer program product.
- the computer program product includes a computer program stored on a non-transitory computer-readable storage medium.
- the computer program includes program instructions. When the program instructions are During execution, the computer is caused to execute the method in any of the above method embodiments.
- the methods in the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware, but in many cases the former is better Implementation.
- the technical solution of the present invention can be embodied in the form of a software product in essence or part that contributes to the existing technology, and the computer software product is stored in a readable storage medium (such as ROM/RAM, magnetic
- the CD-ROM and CD-ROM include instructions to enable a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods of the various embodiments of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
Disclosed is a data transmission method. The method comprises: upon receipt of a first data packet sent by an LoRa module, the central processing unit determines a first transmitting module corresponding to the first data packet; the central processing unit processes the first data packet on the basis of the data format corresponding to the first transmitting module, and sends the processed first data packet to the first transmitting module so that the first transmitting module sends the processed first data packet and a terminal node communicatively connected to the first transmitting module. Also disclosed are a data transmission device and a computer readable storage medium.
Description
交叉引用cross reference
本发明要求在2018年12月26日提交至中国专利局、申请号为201811608661.7、发明名称为“数据传输方法、装置及计算机可读存储介质”的中国专利申请的优先权,该申请的全部内容通过引用结合在本发明中。The present invention requires the priority of a Chinese patent application filed on December 26, 2018 in the Chinese Patent Office, with the application number 201811608661.7 and the invention titled "Data Transmission Method, Device, and Computer-readable Storage Medium," the entire content of the application It is incorporated in this invention by reference.
本发明涉及网络技术领域,尤其涉及一种数据传输方法、装置及计算机可读存储介质。The present invention relates to the field of network technology, and in particular, to a data transmission method, device, and computer-readable storage medium.
电气自动化设备在工业生产过程中得到了广泛应用。在很多工业现场、制造生产车间、自动化物流车间、交通运输车辆整备所都有大量电气自动化装置、仪器和***。这些电气化设备通常分布在工厂的各个车间,间距在几百到几千米范围内。为保证工业生产过程的安全,电气自动化设备运行状态通常需要监测。Electrical automation equipment has been widely used in industrial production. There are a large number of electrical automation devices, instruments and systems in many industrial sites, manufacturing and production workshops, automated logistics workshops, and transportation vehicle repair centers. These electrified equipment are usually distributed in various workshops of the factory, with a spacing in the range of hundreds to thousands of kilometers. To ensure the safety of industrial production processes, the operating status of electrical automation equipment usually needs to be monitored.
工业以太网技术的发展使其在电气自动化设备的状态监测中大量使用。电气设备状态监测***通常采用工业以太网将监测数据发送至数据服务器。但工业以太网需要部署网线,对于新建厂房和新建的电气自动化设备,通常部署了网线。但对于既有设备,通常没有部署网线,若新部署网线会受到既有设备所处位置的限制,或者无法部署网线、或者部署费用非常昂贵。The development of industrial Ethernet technology makes it widely used in condition monitoring of electrical automation equipment. Electrical equipment condition monitoring systems usually use industrial Ethernet to send monitoring data to a data server. However, industrial Ethernet requires the deployment of network cables. For newly built factories and new electrical automation equipment, network cables are usually deployed. However, for existing equipment, there is usually no network cable deployed. If a newly deployed network cable is restricted by the location of the existing equipment, or the network cable cannot be deployed, or the deployment cost is very expensive.
并且,有些工业现场的电气自动化设备,由于厂房的位置,距离控制中心的距离从几百米至几千米不等,部署网线成本过高或者由于物理条件限制无法部署;有时电气自动化设备安装时未预留电源插口,后期由于位置原因无法补建或补建费用太高。有时候该区域需要检测的电气设备较多等现实需求。此时对电气自动化设备监测需要采用电池供电的无线通信方式。无线通信方式需要满足长距离的需求,同时功耗还要低,适应电池供电。In addition, due to the location of the plant and the distance from the control center ranging from a few hundred meters to several kilometers, the electrical automation equipment in some industrial sites may be too expensive to deploy or cannot be deployed due to physical constraints; sometimes electrical automation equipment is installed The power socket is not reserved, and it cannot be rebuilt or the cost of rebuilding is too high due to location reasons. Sometimes there are many electrical devices that need to be tested in this area. At this time, the monitoring of electrical automation equipment needs to use battery-powered wireless communication. The wireless communication method needs to meet the requirements of long distance, and at the same time, the power consumption is lower, and it is suitable for battery power supply.
无线通信是仅利用电磁波而不通过线缆进行通信的方式,其最大的优势是不需要电缆。无线通信包括广域无线(wireless wide)通信***,如GSM、3G、4G、GPRS;局域无线(wireless local)***,如WiFi;个域无线(wireless personal)***如蓝牙(IEEE 802.15.1)、超宽带UWB(IEEE 802.15.3a)、 ZigBee(IEEE 802.15.4)等。这些通信技术中,广域无线***通信距离长但需要通信费用;局域网的通信设备也需要较多投入,且通信距离在几百米;无线个域***通信距离为几十米。Wireless communication is a method that uses only electromagnetic waves and does not communicate through cables. Its biggest advantage is that it does not require cables. Wireless communication includes wide area wireless (wireless) communication systems, such as GSM, 3G, 4G, and GPRS; local wireless (wireless) local systems, such as WiFi; and personal wireless systems (such as Bluetooth) (Bluetooth (IEEE802.15.1)) , Ultra-wideband UWB (IEEE 802.15.3a), ZigBee (IEEE 802.15.4), etc. Among these communication technologies, the wide-area wireless system has a long communication distance but requires communication costs; the communication equipment of the local area network also requires more investment, and the communication distance is several hundred meters; the communication distance of the wireless personal area system is tens of meters.
若采用通常使用的无线通信***,例如,采用GSM/GPRS、4G等通信模块,传输距离满足要求,但有设备投入费用和后期运行费用,当需要监测的电气设备较多时,后期运行费用会大大增加;采用WiFi通信不能保证可靠连接;如果交流电源无法得到,但通信所需电流较大,电池供电寿命短。If the commonly used wireless communication system is used, for example, GSM/GPRS, 4G and other communication modules are used, the transmission distance meets the requirements, but there are equipment investment costs and later operating costs. When there are more electrical equipment to be monitored, the later operating costs will be significant Increase; the use of WiFi communication cannot guarantee a reliable connection; if AC power is not available, but the current required for communication is large, and the battery life is short.
鉴于上述无线通信***的问题,导致无线通信的设备监测方式难以实现远距离、低功耗的监测数据的传输,进而难以实现远距离、低功耗的数据监测。In view of the above-mentioned problems of the wireless communication system, it is difficult for the device monitoring method of wireless communication to realize the transmission of long-distance and low-power consumption monitoring data, and thus it is difficult to realize the long-distance and low-power consumption data monitoring.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solution of the present invention, and does not mean that the above content is recognized as prior art.
发明内容Summary of the invention
本发明的主要目的在于提供一种数据传输方法、装置及计算机可读存储介质,旨在解决现有无线通信的设备监测方式难以实现远距离、低功耗的数据传输的技术问题。The main purpose of the present invention is to provide a data transmission method, device and computer-readable storage medium, aiming to solve the technical problem that the existing wireless communication device monitoring method is difficult to realize long-distance, low-power data transmission.
为实现上述目的,本发明提供的一种数据传输方法,应用于网关,所述网关包括:中央处理单元、工业以太网模块、LoRa模块以及现场总线模块;所述中央处理单元分别与所述工业以太网模块、所述LoRa模块以及所述现场总线模块通信连接;所述数据传输方法包括以下步骤:在接收到LoRa模块发送的第一数据报文时,所述中央处理单元确定所述第一数据报文对应的第一发送模块,其中,所述第一发送模块为所述工业以太网模块或现场总线模块;所述中央处理单元基于所述第一发送模块对应的数据格式对所述第一数据报文进行处理,并将处理后的第一数据报文发送至所述第一发送模块,以供所述第一发送模块发送处理后的第一数据报文与所述第一发送模块通信连接的终端节点。To achieve the above object, a data transmission method provided by the present invention is applied to a gateway. The gateway includes: a central processing unit, an industrial Ethernet module, a LoRa module, and a field bus module; the central processing unit and the industrial The Ethernet module, the LoRa module and the field bus module are communicatively connected; the data transmission method includes the following steps: when receiving the first data message sent by the LoRa module, the central processing unit determines the first A first sending module corresponding to a data message, wherein the first sending module is the industrial Ethernet module or a fieldbus module; the central processing unit compares the first sending module based on the data format corresponding to the first sending module Processing a data message, and sending the processed first data message to the first sending module for the first sending module to send the processed first data message and the first sending module End node for communication connection.
此外,为实现上述目的,本发明还提供一种数据传输装置,所述数据传输装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的数据传输程序,所述数据传输程序被所述处理器执行时实现前述的数据传输方法的步骤。In addition, in order to achieve the above object, the present invention also provides a data transmission device. The data transmission device includes: a memory, a processor, and a data transmission program stored on the memory and executable on the processor. When the data transmission program is executed by the processor, the steps of the foregoing data transmission method are implemented.
此外,为实现上述目的,本发明还提供一种计算机可读存储介质,所述 计算机可读存储介质上存储有数据传输程序,所述数据传输程序被处理器执行时实现前述的数据传输方法的步骤。In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a data transmission program, the data transmission program is executed by the processor to achieve the aforementioned data transmission method step.
此外,为实现上述目的,本发明还提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行以上各个方面所述的方法。In addition, to achieve the above object, the present invention also provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program When the instructions are executed by a computer, the computer is caused to perform the methods described in the above aspects.
图1为本发明实施例方案涉及的运行环境中数据传输装置的结构示意图;1 is a schematic structural diagram of a data transmission device in an operating environment according to an embodiment of the present invention;
图2为本发明数据传输方法第一实施例的流程示意图;2 is a schematic flowchart of a first embodiment of a data transmission method of the present invention;
图3为本发明网关一实施例的结构示意图;3 is a schematic structural diagram of an embodiment of a gateway of the present invention;
图4为本发明网关的应用示意图;4 is a schematic diagram of the application of the gateway of the present invention;
图5为本发明网关另一实施例的结构示意图;5 is a schematic structural diagram of another embodiment of a gateway of the present invention;
图6为本发明网关又一实施例的结构示意图;6 is a schematic structural diagram of another embodiment of the gateway of the present invention;
图7为本发明中的数据转换示意图。7 is a schematic diagram of data conversion in the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional characteristics and advantages of the present invention will be further described in conjunction with the embodiments and with reference to the drawings.
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not intended to limit the present invention.
参照图1,图1为本发明实施例方案涉及的运行环境中数据传输装置的结构示意图。Referring to FIG. 1, FIG. 1 is a schematic structural diagram of a data transmission device in an operating environment according to an embodiment of the present invention.
本发明实施例的数据传输装置为网关。如图1所示,该网关可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory), 例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。The data transmission device in the embodiment of the present invention is a gateway. As shown in FIG. 1, the gateway may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to implement connection communication between these components. The user interface 1003 may include a display (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or may be a non-volatile memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the foregoing processor 1001.
本领域技术人员可以理解,图1中示出的数据传输装置结构并不构成对数据传输装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art may understand that the structure of the data transmission device shown in FIG. 1 does not constitute a limitation on the data transmission device, and may include more or fewer components than those illustrated, or combine certain components, or different components Layout.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作***、网络通信模块、用户接口模块以及数据传输程序。As shown in FIG. 1, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a data transmission program.
在图1所示的数据传输装置中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的数据传输程序。In the data transmission device shown in FIG. 1, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect to the client (user side) and perform data communication with the client; and The processor 1001 may be used to call a data transmission program stored in the memory 1005.
在本实施例中,数据传输装置包括:存储器1005、处理器1001及存储在所述存储器1005上并可在所述处理器1001上运行的数据传输程序,其中,处理器1001调用存储器1005中存储的数据传输程序时,并执行以下数据传输方法的各个实施例中的操作。In this embodiment, the data transmission device includes: a memory 1005, a processor 1001, and a data transmission program stored on the memory 1005 and executable on the processor 1001, where the processor 1001 calls the memory 1005 to store The data transmission program and perform the operations in the various embodiments of the following data transmission method.
基于上述多功能网关的硬件结构,提出本发明数据传输方法的各个实施例。Based on the hardware structure of the above multi-function gateway, various embodiments of the data transmission method of the present invention are proposed.
本发明还提供一种数据传输方法,参照图2,图2为本发明数据传输方法第一实施例的流程示意图。The present invention also provides a data transmission method. Referring to FIG. 2, FIG. 2 is a schematic flowchart of a first embodiment of the data transmission method of the present invention.
该数据传输方法应用于网关,参照图3及图4,所述网关包括:中央处理单元、工业以太网模块、LoRa模块以及现场总线模块;所述中央处理单元分别与所述工业以太网模块、所述LoRa模块以及所述现场总线模块通信连接。The data transmission method is applied to a gateway. Referring to FIGS. 3 and 4, the gateway includes: a central processing unit, an industrial Ethernet module, a LoRa module, and a field bus module; the central processing unit and the industrial Ethernet module, respectively, The LoRa module and the field bus module are communicatively connected.
LoRa(long range)是低功耗广域网LPWAN(Low power wide-area network)通信技术中的一种,是美国Semtech公司采用和推广的一种基于扩频技术的实现远距离、低功耗、多节点组网的无线传输方案。LoRa (long range) is one of the low-power wide-area network LPWAN (Low power wide-area network) communication technologies. It is a spread-spectrum-based technology adopted and promoted by Semtech in the United States to achieve long-distance, low-power, and multiple Wireless transmission scheme for node networking.
工业以太网模块包括以太网控制器、隔离和工业以太网接口。工业以太网接口预留有DB9、加固RJ45、航空插头及端子,可根据现场实际情况选择合适方式。该工业以太网模块能够实现多种工业以太网的现场应用,包括Ethernet/IP、ModBus-IDA,同时兼容既有用于数据通信的以太网。Industrial Ethernet modules include Ethernet controllers, isolation, and industrial Ethernet interfaces. The industrial Ethernet interface is reserved for DB9, ruggedized RJ45, aviation plugs and terminals. You can choose the appropriate method according to the actual situation on site. The industrial Ethernet module can realize a variety of industrial Ethernet field applications, including Ethernet/IP, ModBus-IDA, and is compatible with existing Ethernet used for data communication.
LoRa模块包括LoRa芯片和天线接口,LoRa模块分为两部分,一部分 为LoRa管理通道,负责LoRa节点申请入网、新接入的LoRa节点的地址分配;另一部分为LoRa通信通道,获得地址分配的LoRa节点通过通信通道发送和接收数据。LoRa通信信道可以有多个,采用不同的频率传输数据。LoRa模块频段运行包括433、868、915MHz等。采用前向纠错编码技术,传输数据中加入冗余,能够抵抗多径衰落,保证传输的可靠性。The LoRa module includes a LoRa chip and an antenna interface. The LoRa module is divided into two parts. One part is the LoRa management channel, which is responsible for the LoRa node's application for network access and the address allocation of the newly accessed LoRa node; the other part is the LoRa communication channel, which obtains the LoRa address allocation. Nodes send and receive data through communication channels. There can be multiple LoRa communication channels, which use different frequencies to transmit data. LoRa module frequency band operation includes 433, 868, 915MHz, etc. Using forward error correction coding technology, redundancy is added to the transmission data, which can resist multipath fading and ensure the reliability of transmission.
LoRa模块能够实现比现有WiFi、ZigBee等无线方式距离更远的数据传输能力;采用LoRa模块的节点能够实现几百米到几千米的通信距离,能更好的结合工业以太网,及时处理工业现场的大量数据;LoRa模块的功耗与既有的GSM、GPRS、3G、4G通信模块、WiFi通信模块等市电供电的模块,采用太阳能供电的终端节点相比,耗电量小适合采用电池供电的场合(如若采用3000mAh的电池供电,可使用5-10年之久);LoRa节点多采用STM低功耗控制器,LoRaWAN协议可以根据通信距离自动调整发射功率,同时控制器的休眠模式可将睡眠电流低至10uA;与相比现有RTU设备,开发成本低;LoRa运行于ISM频段,无通信费用,运营成本低。LoRa module can achieve data transmission capability farther than the existing WiFi, ZigBee and other wireless methods; nodes using LoRa module can achieve a communication distance of hundreds of meters to several kilometers, which can better integrate industrial Ethernet and handle in time A large amount of data on the industrial site; the power consumption of the LoRa module is smaller than the existing GSM, GPRS, 3G, 4G communication module, WiFi communication module and other commercial power supply modules, and the solar energy-powered terminal nodes have lower power consumption and are suitable for use. Battery-powered occasions (if using 3000mAh battery power supply, it can be used for 5-10 years); LoRa nodes mostly use STM low-power controllers, LoRaWAN protocol can automatically adjust the transmission power according to the communication distance, and the controller's sleep mode The sleep current can be as low as 10uA; compared with existing RTU equipment, the development cost is low; LoRa operates in the ISM frequency band, there is no communication cost, and the operating cost is low.
现场总线模块与现场监测设备采用相同的总线类型,包括总线控制器、总线驱动器和接口。现场总线模块可以是控制器局域网CAN、RS485,或者根据需要设置的现场总线的类型。Fieldbus modules and field monitoring equipment use the same bus type, including bus controllers, bus drivers and interfaces. The fieldbus module can be the controller area network CAN, RS485, or the type of fieldbus set as required.
该网关还包括:电源模块、USB模块以及存储模块;其中,USB模块包括USB芯片和接口,用于网关调试。The gateway also includes: a power module, a USB module, and a storage module; wherein, the USB module includes a USB chip and an interface, which are used for gateway debugging.
存储模块主要包括存储器和存储控制,中央处理单元将获取的数据,以及数据处理的结果或缓存中无法及时处理的数据暂时存到存储器中;存储控制控制存储器数据的存入和清除。The storage module mainly includes a memory and a storage control. The central processing unit temporarily stores the acquired data, the result of the data processing or the data that cannot be processed in time in the cache into the storage; the storage control controls the storage and clearing of the storage data.
电源模块为网关提供工作所需的电源。电源模块包括两类接口:电池接口和交流电接口,分别应用于使用电池和交流电的场合。The power module provides the power needed for the gateway to work. The power module includes two types of interfaces: a battery interface and an AC interface, which are used in the occasions where batteries and AC are used, respectively.
参照图5,中央处理单元可采用ARMSTM32F4芯片,LoRa模块采用SX1278芯片,协议转换模式采用4通道数字控制模拟开关芯片CD4052B为核心的模式选择电路实现,现场总线包括RS485和CAN两类总线。Referring to FIG. 5, the central processing unit can use the ARMSTM32F4 chip, the LoRa module uses the SX1278 chip, and the protocol conversion mode uses a 4-channel digital control analog switch chip CD4052B as the core mode selection circuit. The field bus includes RS485 and CAN.
LoRa模块采用三组SX1278芯片,其中一组为管理通道芯片,另外两组为通信通道,两个通信通道的中心频率不一样,可以接受两组不同的LoRa节点的数据。工业以太网模块采用DM9000芯片,外加隔离变压器和接口,具体实现是在不违背协议标准的前提下对传统的TCP/IP加以简化,满足嵌入式芯片的资源限制和工业以太网传输的要求,其特点是实时性、简单性和灵 活性。工业以太网接口模块采用加固型RJ45、航空插头、DB9或端子接口。The LoRa module uses three sets of SX1278 chips, one of which is a management channel chip and the other two are communication channels. The center frequencies of the two communication channels are different, and they can accept data from two different sets of LoRa nodes. The industrial Ethernet module uses the DM9000 chip, plus an isolation transformer and interface. The specific implementation is to simplify the traditional TCP/IP without violating the protocol standard, to meet the resource constraints of embedded chips and the requirements of industrial Ethernet transmission. The characteristics are real-time, simplicity and flexibility. Industrial Ethernet interface module adopts ruggedized RJ45, aviation plug, DB9 or terminal interface.
参照图6,图6是采用DSP实现的工业以太网Etherhet/IP和远距离低功耗LoRa以及现场总线RS485和CAN的转换网关实施示意图。Ethernet/IP的特色部分是在以太网、TCP/IP技术的基础上,上层采用了CIP协议,使得大量数据的高速传输更加容易实现。中央处理单元还可以采用TMS320F2812,具有更加快速的处理能力。Ethernet/IP物理层和数据数据链路层符合IEEE802.3,采用CS8900芯片实现;其网络层和运输层采用简化TCP/IP以保证其实时性和可靠连接,用传送控制协议(TCP)来传送消息数据,用连接设备协议(UDP)来传送I/O数据;应用层采用通用工业协议CIP(Common Industrial Protocol),嵌入在DSP的软件中,同时实现协议分析、协议转换、网关设置管理等。Referring to FIG. 6, FIG. 6 is a schematic diagram of a conversion gateway implementation of industrial Ethernet Etherhet/IP and long-distance low-power LoRa and field bus RS485 and CAN using DSP. The characteristic part of Ethernet/IP is based on Ethernet and TCP/IP technology. The upper layer adopts CIP protocol, which makes the high-speed transmission of large amounts of data easier to achieve. The central processing unit can also use TMS320F2812, which has faster processing capability. The Ethernet/IP physical layer and data data link layer conform to IEEE802.3 and are implemented using the CS8900 chip; its network layer and transport layer use simplified TCP/IP to ensure its real-time and reliable connection, and use the Transmission Control Protocol (TCP) to transmit For message data, I/O data is transmitted using the Connected Device Protocol (UDP); the application layer uses the common industrial protocol CIP (Common Industrial Protocol), embedded in the DSP software, and implements protocol analysis, protocol conversion, and gateway setting management.
该数据传输方法包括以下步骤:The data transmission method includes the following steps:
步骤S110,在接收到LoRa模块发送的第一数据报文时,所述中央处理单元确定所述第一数据报文对应的第一发送模块,其中,所述第一发送模块为所述工业以太网模块或现场总线模块;Step S110: When receiving the first data message sent by the LoRa module, the central processing unit determines the first sending module corresponding to the first data message, where the first sending module is the industrial Ethernet Network module or field bus module;
参照图7,在本实施例中,在LoRa模块对应的现场设备发送数据时,该现场设备通过LoRa单元发送LoRa测试信号,所述中央处理单元通过LoRa模块接收该测试信号,屏蔽该测试信号的标示符,基于该屏蔽标示符后的测试信号,确定该现场设备发送数据的波特率,而后发送确认信息至该现场设备,以使现场设备发送第一数据报文至LoRa模块,LoRa模块将接收到的数据报文转发至中央处理单元。7, in this embodiment, when the field device corresponding to the LoRa module sends data, the field device sends a LoRa test signal through the LoRa unit, and the central processing unit receives the test signal through the LoRa module, shielding the test signal from Identifier, based on the test signal after the masked identifier, determine the baud rate of the field device to send data, and then send a confirmation message to the field device, so that the field device sends the first data message to the LoRa module, the LoRa module will The received data message is forwarded to the central processing unit.
在接收到LoRa模块发送的第一数据报文时,该中央处理单元确定所述第一数据报文对应的第一发送模块,具体地,该第一发送模块为该网关中将该第一数据报文发送至目标现场设备的模块,在本实施例中,第一发送模块为所述工业以太网模块或现场总线模块中的一个,第一数据报文携带有目的地址(目标现场设备的地址),该中央处理单元根据该目的地址确定第一发送模块。When receiving the first data message sent by the LoRa module, the central processing unit determines the first sending module corresponding to the first data message, specifically, the first sending module is the first data sent by the gateway The message is sent to the module of the target field device. In this embodiment, the first sending module is one of the industrial Ethernet module or the field bus module. The first data message carries the destination address (the address of the target field device) ), the central processing unit determines the first sending module according to the destination address.
在接收到LoRa模块发送的第一数据报文时,该中央处理单元可通过第一数据报文的帧标识判断出第一数据报文为LoRa数据。When receiving the first data message sent by the LoRa module, the central processing unit may determine that the first data message is LoRa data by using the frame identifier of the first data message.
步骤S120,所述中央处理单元基于所述第一发送模块对应的数据格式对所述第一数据报文进行处理,并将处理后的第一数据报文发送至所述第一发送模块,以供所述第一发送模块发送处理后的第一数据报文与所述第一发送 模块通信连接的终端节点。Step S120, the central processing unit processes the first data packet based on the data format corresponding to the first sending module, and sends the processed first data packet to the first sending module, A terminal node for the first sending module to send the processed first data message to the first sending module in communication connection.
在本实施例中,在确定第一发送模块时,中央处理单元基于所述第一发送模块对应的数据格式对所述第一数据报文进行处理,在第一发送模块为工业以太网模块时,对第一数据报文进行拆包或组包等处理,转换成工业以太网有效帧,在第一发送模块为现场总线模块时,对第一数据报文进行拆包或组包等处理,转换成现场总线有效帧。将处理后的第一数据报文发送至所述第一发送模块,以供所述第一发送模块发送处理后的第一数据报文与所述第一发送模块通信连接的终端节点(目标现场设备)。需要说明的是,在对第一数据报文进行处理时,还可以在第一数据报文中添加网关ID号、时间戳等信息。In this embodiment, when determining the first sending module, the central processing unit processes the first data message based on the data format corresponding to the first sending module. When the first sending module is an industrial Ethernet module , Unpacking or grouping the first data message, and converting it into an effective frame of Industrial Ethernet. When the first sending module is a fieldbus module, unpacking or grouping the first data message, Convert to fieldbus valid frame. Send the processed first data message to the first sending module for the first sending module to send the processed first data message to a terminal node (target site) that is communicatively connected to the first sending module equipment). It should be noted that, when processing the first data message, information such as a gateway ID number and time stamp may also be added to the first data message.
需要说明的是,在得到处理后的第一数据报文时,确定工业以太网模块或现场总线模块是否正常,如不正常,将处理后的第一数据报文保存至存储单元,然后返回至网关工作模式入口;如果正常,则将处理后的第一数据报文发送至所述第一发送模块。It should be noted that when the processed first data message is obtained, it is determined whether the industrial Ethernet module or the field bus module is normal. If it is abnormal, the processed first data message is saved to the storage unit, and then returned to Entrance of the working mode of the gateway; if normal, the processed first data message is sent to the first sending module.
本实施例提出的数据传输方法,通过在接收到LoRa模块发送的第一数据报文时,所述中央处理单元确定所述第一数据报文对应的第一发送模块,其中,所述第一发送模块为所述工业以太网模块或现场总线模块,接着所述中央处理单元基于所述第一发送模块对应的数据格式对所述第一数据报文进行处理,并将处理后的第一数据报文发送至所述第一发送模块,以供所述第一发送模块发送处理后的第一数据报文与所述第一发送模块通信连接的终端节点,实现了将与LoRa模块通信连接的现场设备的数据传输至与工业以太网模块或现场总线模块通信连接的终端节点,由于LoRa技术的传输距离较长,进而通过LoRa模块实现远距离、低功耗的数据传输,并且LoRa技术采用前向纠错编码技术,传输数据中加入冗余,能够抵抗多径衰落,保证传输的可靠性。In the data transmission method proposed in this embodiment, when receiving the first data message sent by the LoRa module, the central processing unit determines the first sending module corresponding to the first data message, where the first The sending module is the industrial Ethernet module or the field bus module, and then the central processing unit processes the first data message based on the data format corresponding to the first sending module, and converts the processed first data The message is sent to the first sending module for the first sending module to send the processed first data message to the terminal node communicatively connected to the first sending module, which realizes the communication connection with the LoRa module The data of the field device is transmitted to the terminal node that is communicatively connected with the industrial Ethernet module or the field bus module. Due to the long transmission distance of the LoRa technology, the long-distance, low-power data transmission is realized through the LoRa module. Adding redundancy to the error correction coding technology and transmitting data can resist multipath fading and ensure the reliability of transmission.
基于第一实施例,提出本发明数据传输方法的第二实施例,在本实施例中,数据传输方法还包括:步骤S130,在接收到工业以太网模块或现场总线模块发送的第二数据报文时,所述中央处理单元确定所述第二数据报文对应的第二发送模块;步骤S140,在所述第二发送模块为所述LoRa模块时,所述中央处理单元基于所述LoRa模块对应的数据格式对所述第二数据报文进行处理,并将处理后的第二数据报文发送至所述LoRa模块,以供所述LoRa 模块发送处理后的第二数据报文至与所述LoRa模块通信连接的终端节点。Based on the first embodiment, a second embodiment of the data transmission method of the present invention is proposed. In this embodiment, the data transmission method further includes: Step S130, upon receiving the second datagram sent by the industrial Ethernet module or the fieldbus module At the time of writing, the central processing unit determines the second sending module corresponding to the second data message; step S140, when the second sending module is the LoRa module, the central processing unit is based on the LoRa module Processing the second data message in a corresponding data format, and sending the processed second data message to the LoRa module for the LoRa module to send the processed second data message to the Describe the terminal node of the LoRa module communication connection.
在本实施例中,在工业以太网模块或现场总线模块对应的现场设备发送数据时,该现场设备发送测试信号至工业以太网模块或现场总线模块,所述中央处理单元通过工业以太网模块或现场总线模块接收该测试信号,屏蔽该测试信号的标示符,基于该屏蔽标示符后的测试信号,确定该现场设备发送数据的波特率,而后发送确认信息至该现场设备,以使现场设备发送第二数据报文至工业以太网模块或现场总线模块。In this embodiment, when the field device corresponding to the industrial Ethernet module or field bus module sends data, the field device sends a test signal to the industrial Ethernet module or field bus module. The central processing unit passes the industrial Ethernet module or The fieldbus module receives the test signal, shields the identifier of the test signal, determines the baud rate of the data sent by the field device based on the test signal after the masked identifier, and then sends a confirmation message to the field device to enable the field device Send the second data message to the industrial Ethernet module or fieldbus module.
在接收到工业以太网模块或现场总线模块发送的第二数据报文时,该中央处理单元确定所述第二数据报文对应的第二发送模块,具体地,该第二发送模块为该网关中将该第二数据报文发送至目标现场设备的模块,在本实施例中,第二发送模块为LoRa模块,第二数据报文携带有目的地址(目标现场设备的地址),该中央处理单元根据该目的地址确定第二发送模块为LoRa模块。需要说明的是,在对第二数据报文进行处理时,还可以在第二数据报文中添加网关ID号、时间戳等信息。When receiving the second data message sent by the industrial Ethernet module or the field bus module, the central processing unit determines the second sending module corresponding to the second data message, specifically, the second sending module is the gateway The second data message is sent to the module of the target field device in this embodiment. In this embodiment, the second sending module is a LoRa module. The second data message carries the destination address (the address of the target field device). The central processing The unit determines that the second sending module is a LoRa module according to the destination address. It should be noted that, when processing the second data packet, information such as the gateway ID number and time stamp may also be added to the second data packet.
在确定第二发送模块为所述LoRa模块时,中央处理单元基于LoRa模块对应的数据格式对所述第二数据报文进行处理,即对第二数据报文进行拆包或组包等处理,转换成LoRa有效帧。将处理后的第二数据报文发送至LoRa模块,以供LoRa模块发送处理后的第二数据报文与该LoRa模块通信连接的终端节点(目标现场设备)。When determining that the second sending module is the LoRa module, the central processing unit processes the second data message based on the data format corresponding to the LoRa module, that is, performs unpacking or grouping of the second data message, Convert to LoRa effective frames. Send the processed second data message to the LoRa module for the LoRa module to send the processed second data message to a terminal node (target field device) that is communicatively connected to the LoRa module.
需要说明的是,在得到处理后的第二数据报文时,确定LoRa模块是否正常,如不正常,将处理后的第二数据报文保存至存储单元,然后返回至网关工作模式;如果正常,则将处理后的第二数据报文发送至LoRa模块。It should be noted that when the processed second data message is obtained, it is determined whether the LoRa module is normal. If it is not normal, the processed second data message is saved to the storage unit, and then returned to the gateway working mode; if normal , Then send the processed second data message to the LoRa module.
进一步地,在一实施例中,该数据传输方法还包括:在工业以太网模块发送第二数据报文、且所述第二发送模块为所述现场总线模块时,所述中央处理单元基于所述现场总线模块对应的数据格式对所述第二数据报文进行处理,并将处理后的第二数据报文发送至所述现场总线模块;或者,在现场总线模块发送第二数据报文、且所述第二发送模块为所述工业以太网模块时,所述中央处理单元基于所述工业以太网模块对应的数据格式对所述第二数据报文进行处理,并将处理后的第二数据报文发送至所述工业以太网模块。Further, in an embodiment, the data transmission method further includes: when the industrial Ethernet module sends a second data message, and the second sending module is the field bus module, the central processing unit is based on Processing the second data message in the data format corresponding to the field bus module, and sending the processed second data message to the field bus module; or, sending the second data message on the field bus module, And when the second sending module is the industrial Ethernet module, the central processing unit processes the second data packet based on the data format corresponding to the industrial Ethernet module, and the processed second The data message is sent to the industrial Ethernet module.
通过将与工业以太网模块通信连接的现场设备的数据传输至与现场总线模块通信连接的终端节点,或者,将与现场总线模块通信连接的现场设备的数据传输至与工业以太网模块通信连接的终端节点,进而实现与工业以太网 模块、所述LoRa模块以及所述现场总线模块通信连接的现场设备,之间的数据传输。By transmitting the data of the field device communicatively connected to the industrial Ethernet module to the terminal node communicatively connected to the fieldbus module, or the data of the field device communicatively connected to the fieldbus module to the communicatively connected to the industrial Ethernet module The terminal node, in turn, implements data transmission between field devices that are communicatively connected to the industrial Ethernet module, the LoRa module, and the field bus module.
本实施例提出的数据传输方法,通过在接收到工业以太网模块或现场总线模块发送的第二数据报文时,所述中央处理单元确定所述第二数据报文对应的第二发送模块;接着在所述第二发送模块为所述LoRa模块时,所述中央处理单元基于所述LoRa模块对应的数据格式对所述第二数据报文进行处理,并将处理后的第二数据报文发送至所述LoRa模块,以供所述LoRa模块发送处理后的第二数据报文至与所述LoRa模块通信连接的终端节点;实现了将与工业以太网模块或现场总线模块通信连接的现场设备的数据传输至与LoRa模块通信连接的终端节点,由于LoRa技术的传输距离较长,进而通过LoRa模块实现远距离、低功耗的数据传输,并且LoRa技术采用前向纠错编码技术,传输数据中加入冗余,能够抵抗多径衰落,保证传输的可靠性。In the data transmission method proposed in this embodiment, when the second data message sent by the industrial Ethernet module or the field bus module is received, the central processing unit determines the second sending module corresponding to the second data message; Next, when the second sending module is the LoRa module, the central processing unit processes the second data message based on the data format corresponding to the LoRa module, and the processed second data message Sent to the LoRa module for the LoRa module to send the processed second data message to the terminal node communicatively connected to the LoRa module; realizing the site where the industrial Ethernet module or the field bus module is communicatively connected The data of the device is transmitted to the terminal node that is communicatively connected to the LoRa module. Due to the long transmission distance of the LoRa technology, the LoRa module realizes long-distance, low-power data transmission, and the LoRa technology uses forward error correction coding technology to transmit Redundancy is added to the data, which can resist multipath fading and ensure the reliability of transmission.
基于第一实施例,提出本发明数据传输方法的第三实施例,在本实施例中,步骤S110包括:步骤S111,所述中央处理单元获取所述第一数据报文对应的波特率;步骤S112,所述中央处理单元基于所述波特率设置所述第一发送模块的通信波特率;步骤S113,所述中央处理单元将处理后的第一数据报文发送至所述第一发送模块,以供所述第一发送模块基于所述波特率发送处理后的第一数据报文与所述第一发送模块通信连接的终端节点。Based on the first embodiment, a third embodiment of the data transmission method of the present invention is proposed. In this embodiment, step S110 includes: step S111, the central processing unit obtains the baud rate corresponding to the first data packet; Step S112, the central processing unit sets the communication baud rate of the first sending module based on the baud rate; step S113, the central processing unit sends the processed first data message to the first A sending module, for the first sending module to send the processed first data message based on the baud rate to a terminal node communicatively connected to the first sending module.
在本实施例中,在接收到LoRa模块发送的第一数据报文时,所述中央处理单元获取所述第一数据报文对应的波特率,具体地,中央处理单元屏蔽第一数据报文中测试信号的标示符,并基于该屏蔽标示符后的测试信号,确定该现场设备发送数据的波特率(第一数据报文对应的波特率)。In this embodiment, when receiving the first data message sent by the LoRa module, the central processing unit obtains the baud rate corresponding to the first data message, specifically, the central processing unit shields the first data message The identifier of the test signal in the text, and based on the test signal after the shielded identifier, determine the baud rate of the data sent by the field device (the baud rate corresponding to the first data message).
而后,中央处理单元基于所述波特率设置所述第一发送模块的通信波特率,继而使得LoRa模块与第一发送模块具有相同的通信波特率,中央处理单元将处理后的第一数据报文发送至所述第一发送模块,以供所述第一发送模块基于所述波特率发送处理后的第一数据报文与所述第一发送模块通信连接的终端节点。Then, the central processing unit sets the communication baud rate of the first sending module based on the baud rate, and then makes the LoRa module and the first sending module have the same communication baud rate, and the central processing unit will process the first The data message is sent to the first sending module for the first sending module to send the processed first data message based on the baud rate to the terminal node that is communicatively connected to the first sending module.
进一步地,在一实施例中,该步骤S111包括:所述中央处理单元遍历预设波特率,确定当前遍历的预设波特率与所述第一数据报文是否匹配,其中,若匹配,则将当前遍历的预设波特率作为所述波特率;或者,所述中央处理单元获取标准测试帧对应的通信波特率,计算各个标准波特率与所述通 信波特率之间的差值,将所述差值中的最小差值所对应的标准波特率作为所述波特率。Further, in an embodiment, the step S111 includes: the central processing unit traverses a preset baud rate, and determines whether the preset traversed preset baud rate matches the first data packet, where if , The preset baud rate currently traversed is used as the baud rate; or, the central processing unit obtains the communication baud rate corresponding to the standard test frame and calculates the difference between each standard baud rate and the communication baud rate For the difference between them, the standard baud rate corresponding to the smallest difference among the differences is taken as the baud rate.
在本实施例中,可通过轮询法确定该波特率,即中央处理单元遍历预设波特率,确定当前遍历的预设波特率与所述第一数据报文是否匹配,若匹配,则将当前遍历的预设波特率作为所述波特率。或者,通过位速率估算法确定该波特率,具体地,通过捕获标准测试帧的起始位和停止位间的脉冲位数和计时,计算出每一位平均占用的时间,进而得到标准测试帧对应的通信波特率,计算各个标准波特率与所述通信波特率之间的差值,将所述差值中的最小差值所对应的标准波特率作为所述波特率,其中,标准波特率包括110、300、1000、1200、2400、4800、9600和19200波特等。In this embodiment, the baud rate can be determined by the polling method, that is, the central processing unit traverses the preset baud rate to determine whether the preset traversed preset baud rate matches the first data packet, and if so, , The preset baud rate currently traversed is used as the baud rate. Or, determine the baud rate by the bit rate estimation method, specifically, by capturing the number of pulses and timing between the start bit and stop bit of the standard test frame, calculate the average time occupied by each bit, and then obtain the standard test The communication baud rate corresponding to the frame, calculating the difference between each standard baud rate and the communication baud rate, and taking the standard baud rate corresponding to the smallest difference among the differences as the baud rate Among them, the standard baud rate includes 110, 300, 1000, 1200, 2400, 4800, 9600 and 19200 baud.
本实施例提出的数据传输方法,通过所述中央处理单元获取所述第一数据报文对应的第一波特率;接着所述中央处理单元基于所述波特率设置所述第一发送模块的通信波特率;而后所述中央处理单元将处理后的第一数据报文发送至所述第一发送模块,以供所述第一发送模块基于所述第一波特率发送处理后的第一数据报文与所述第一发送模块通信连接的终端节点,通过设置第一发送模块的通信波特率,以确保处理后的第一数据报文的准确传输,提高了数据传输的可靠性。In the data transmission method proposed in this embodiment, the central processing unit obtains the first baud rate corresponding to the first data packet; then the central processing unit sets the first sending module based on the baud rate The communication baud rate; and then the central processing unit sends the processed first data message to the first sending module for the first sending module to send the processed baud rate based on the first baud rate The terminal node where the first data message is communicatively connected to the first sending module, by setting the communication baud rate of the first sending module, to ensure the accurate transmission of the processed first data message, and improve the reliability of data transmission Sex.
基于第一实施例,提出本发明数据传输方法的第四实施例,在本实施例中,在步骤S120之后,该数据传输方法还包括:步骤S150,在所述第一数据报文发送完成时,所述中央处理单元获取所述第一发送模块对应的入网节点信息;步骤S160,所述中央处理单元基于所述入网节点信息确定所述第一发送模块对应的入网节点中是否存在掉线节点;步骤S170,若不存在,则所述中央处理单元将所述网关的工作模式调整为网关工作模式;步骤S180,若存在,则所述中央处理单元基于掉线数据帧在所述网关对应的节点地址列表中删除所述掉线节点,并将所述网关的工作模式调整为网关工作模式。Based on the first embodiment, a fourth embodiment of the data transmission method of the present invention is proposed. In this embodiment, after step S120, the data transmission method further includes: step S150, when the transmission of the first data packet is completed , The central processing unit obtains the information of the network access node corresponding to the first sending module; step S160, the central processing unit determines whether there is a dropped node among the network access nodes corresponding to the first sending module based on the network access node information Step S170, if it does not exist, the central processing unit adjusts the working mode of the gateway to the gateway working mode; Step S180, if it exists, the central processing unit based on the dropped data frame in the gateway corresponding to Delete the dropped node from the node address list, and adjust the working mode of the gateway to the working mode of the gateway.
在本实施例中,在第一数据报文发送完成时,中央处理单元获取所述第一发送模块对应的入网节点信息,中央处理单元基于入网节点信息确定所述第一发送模块对应的入网节点中是否存在掉线节点,即根据该入网节点信息与第一数据报文发送之前的入网节点信息进行对比,确定是否存在掉线节点,若不存在,则所述中央处理单元将所述网关的工作模式调整为网关工作模式;若存在,则所述中央处理单元基于掉线数据帧在所述网关对应的节点地址列 表中删除所述掉线节点,并将所述网关的工作模式调整为网关工作模式。In this embodiment, when the transmission of the first data message is completed, the central processing unit obtains the network access node information corresponding to the first sending module, and the central processing unit determines the network access node corresponding to the first sending module based on the network access node information Whether there is a disconnected node in the network, that is, according to the information of the network access node and the information of the network access node before the first data packet is sent to determine whether there is a disconnected node, if it does not exist, the central processing unit will The working mode is adjusted to the gateway working mode; if it exists, the central processing unit deletes the dropped node in the node address list corresponding to the gateway based on the dropped data frame, and adjusts the working mode of the gateway to the gateway Operating mode.
本实施例提出的数据传输方法,通过在所述第一数据报文发送完成时,所述中央处理单元获取所述第一发送模块对应的入网节点信息;接着所述中央处理单元基于所述入网节点信息确定所述第一发送模块对应的入网节点中是否存在掉线节点;而后若不存在,则所述中央处理单元将所述网关的工作模式调整为网关工作模式;然后若存在,则所述中央处理单元基于掉线数据帧在所述网关对应的节点地址列表中删除所述掉线节点,并将所述网关的工作模式调整为网关工作模式,能够确保网关及时进入网关工作模式,以确保其他现场设备进行数据传输。In the data transmission method proposed in this embodiment, when the first data message is sent, the central processing unit obtains the network access node information corresponding to the first sending module; then the central processing unit is based on the network access The node information determines whether there is a disconnected node among the network access nodes corresponding to the first sending module; then if it does not exist, the central processing unit adjusts the working mode of the gateway to the working mode of the gateway; The central processing unit deletes the dropped node in the node address list corresponding to the gateway based on the dropped data frame, and adjusts the working mode of the gateway to the working mode of the gateway, which can ensure that the gateway enters the working mode of the gateway in time to Ensure that other field devices are transmitting data.
基于第一实施例,提出本发明数据传输方法的第五实施例,在本实施例中,步骤S110之前,该数据传输方法还包括:步骤S190,在检测到所述LoRa模块对应的终端节点的数据传输请求时,若所述网关的工作模式为节点主动模式,则所述LoRa模块搜索所述数据传输请求对应的LoRa信道的前导码;步骤S200,所述LoRa模块打开所述前导码对应的接收信道,并通过所述接收信道接收所述第一数据报文;步骤S210,在所述第一数据报文接收完成时,将所述第一数据报文发送至所述中央处理单元,并关闭所述接收信道。Based on the first embodiment, a fifth embodiment of the data transmission method of the present invention is proposed. In this embodiment, before step S110, the data transmission method further includes: step S190, when the terminal node corresponding to the LoRa module is detected During the data transmission request, if the working mode of the gateway is the node active mode, the LoRa module searches for the preamble of the LoRa channel corresponding to the data transmission request; step S200, the LoRa module turns on the corresponding preamble Receiving a channel, and receiving the first data message through the receiving channel; step S210, when the reception of the first data message is completed, sending the first data message to the central processing unit, and Close the receiving channel.
在本实施例中,参照图7,在检测到所述LoRa模块对应的终端节点的数据传输请求时,若所述网关的工作模式为节点主动模式,则LoRa模块搜索所述数据传输请求对应的LoRa信道的前导码。如果网关的工作模式为网关查询模式,则需要在查询指令写入轮询节点的地址、轮询属性,并发送轮询指令,转入和节点主动模式相同的工作方式,而后LoRa模块搜索所述数据传输请求对应的LoRa信道的前导码。In this embodiment, referring to FIG. 7, when detecting the data transmission request of the terminal node corresponding to the LoRa module, if the working mode of the gateway is the node active mode, the LoRa module searches for the corresponding The preamble of the LoRa channel. If the working mode of the gateway is the gateway query mode, you need to write the address and polling attributes of the polling node in the query command, and send the polling command to switch to the same working mode as the node active mode, and then the LoRa module searches for The preamble of the LoRa channel corresponding to the data transmission request.
本实施例提出的数据传输方法,通过在检测到所述LoRa模块对应的终端节点的数据传输请求时,若所述网关的工作模式为节点主动模式,则所述LoRa模块搜索所述数据传输请求对应的LoRa信道的前导码;接着所述LoRa模块打开所述前导码对应的接收信道,并通过所述接收信道接收所述第一数据报文;而后在所述第一数据报文接收完成时,将所述第一数据报文发送至所述中央处理单元,并关闭所述接收信道,通过打开所述前导码对应的接收信道,能够确保第一数据报文的稳定可靠接收,进而提高通过网关进行数据传输的可靠性。In the data transmission method proposed in this embodiment, when the data transmission request of the terminal node corresponding to the LoRa module is detected, if the working mode of the gateway is the node active mode, the LoRa module searches for the data transmission request The corresponding preamble of the LoRa channel; then the LoRa module opens the receiving channel corresponding to the preamble and receives the first data message through the receiving channel; and then when the first data message reception is completed , Sending the first data message to the central processing unit, and closing the receiving channel, by opening the receiving channel corresponding to the preamble, the stable and reliable reception of the first data message can be ensured, thereby improving the pass The reliability of data transmission by the gateway.
基于上述实施例,提出本发明数据传输方法的第六实施例,在本实施例中,步骤S110之前,该数据传输方法还包括:步骤S220,在接收到与所述LoRa模块通信连接的终端节点发送的入网请求时,所述LoRa模块获取所述终端节点的节点信息以及配置参数;步骤S230,所述LoRa模块基于节点地址列表以及所述节点信息确定所述终端节点是否为合法节点;步骤S240,若是,则所述LoRa模块对所述终端节点分配空闲地址、指定信道并确定节点工作模式;步骤S240,所述LoRa模块发送分配信息至所述终端节点,其中,所述分配信息包括空闲地址、指定信道以及节点工作模式;步骤S250,在接收到所述终端节点基于所述分配信息反馈的确认信息时,所述LoRa模块与所述终端节点建立网络连接。Based on the foregoing embodiment, a sixth embodiment of the data transmission method of the present invention is proposed. In this embodiment, before step S110, the data transmission method further includes: step S220, after receiving a terminal node communicatively connected to the LoRa module When sending a network access request, the LoRa module obtains the node information and configuration parameters of the terminal node; step S230, the LoRa module determines whether the terminal node is a valid node based on the node address list and the node information; step S240 If yes, the LoRa module allocates an idle address to the terminal node, designates a channel, and determines a node operating mode; in step S240, the LoRa module sends allocation information to the terminal node, where the allocation information includes an idle address , Designated channel and node operating mode; step S250, upon receiving confirmation information fed back by the terminal node based on the allocation information, the LoRa module establishes a network connection with the terminal node.
在本实施例中,网关开始工作时,首先初始化LoRa模块的寄存器。然后等待是否有现场的无线监测装置中LoRa模块发来的入网请求。如果没有,继续等待;如果有入网请求,则在接收到与所述LoRa模块通信连接的终端节点发送的入网请求时,该LoRa模块获取该终端节点的节点信息以及配置参数,LoRa模块基于节点地址列表以及所述节点信息确定所述终端节点是否为合法节点,具体地,节点地址列表中存在该节点信息时,该终端节点为合法节点,否则终端节点为非法节点。In this embodiment, when the gateway starts to work, it first initializes the registers of the LoRa module. Then wait for whether there is a network access request from the LoRa module in the on-site wireless monitoring device. If not, continue to wait; if there is a network access request, when receiving the network access request sent by the terminal node communicatively connected to the LoRa module, the LoRa module obtains the node information and configuration parameters of the terminal node, and the LoRa module is based on the node address The list and the node information determine whether the terminal node is a legal node. Specifically, when the node information exists in the node address list, the terminal node is a legal node, otherwise the terminal node is an illegal node.
本实施例提出的数据传输方法,通过在接收到与所述LoRa模块通信连接的终端节点发送的入网请求时,所述LoRa模块获取所述终端节点的节点信息以及配置参数;接着所述LoRa模块基于节点地址列表以及所述节点信息确定所述终端节点是否为合法节点;而后若是,则所述LoRa模块对所述终端节点分配空闲地址、指定信道并确定节点工作模式;然后所述LoRa模块发送分配信息至所述终端节点,最后在接收到所述终端节点基于所述分配信息反馈的确认信息时,所述LoRa模块与所述终端节点建立网络连接,实现与所述LoRa模块通信连接的终端节点的入网,进而使得网关具有扩展性。In the data transmission method proposed in this embodiment, when receiving a network access request sent by a terminal node communicatively connected to the LoRa module, the LoRa module obtains the node information and configuration parameters of the terminal node; then the LoRa module Determine whether the terminal node is a legal node based on the node address list and the node information; and if it is, then the LoRa module assigns an idle address to the terminal node, designates a channel, and determines the node operating mode; then the LoRa module sends Distribute information to the terminal node, and finally, upon receiving the confirmation information fed back by the terminal node based on the distribution information, the LoRa module establishes a network connection with the terminal node to implement a communication connection with the terminal of the LoRa module The node's access to the network makes the gateway scalable.
此外,本发明实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有数据传输程序,所述数据传输程序被处理器执行时实现如上述中任一项所述的数据传输方法的步骤。In addition, an embodiment of the present invention further provides a computer-readable storage medium that stores a data transmission program, and the data transmission program is implemented by a processor as described in any one of the above The steps of the data transmission method.
本发明计算机可读存储介质具体实施例与上述数据传输方法的各实施例基本相同,在此不再详细赘述。The specific embodiments of the computer-readable storage medium of the present invention are basically the same as the embodiments of the data transmission method described above, and are not described in detail here.
此外,本发明实施例还提出一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意方法实施例中的方法。In addition, an embodiment of the present invention also provides a computer program product. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are During execution, the computer is caused to execute the method in any of the above method embodiments.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者***不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者***所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者***中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system that includes a series of elements includes not only those elements, It also includes other elements that are not explicitly listed, or include elements inherent to this process, method, article, or system. Without more restrictions, the element defined by the sentence "include a..." does not exclude that there are other identical elements in the process, method, article or system that includes the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The sequence numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个可读存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods in the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware, but in many cases the former is better Implementation. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or part that contributes to the existing technology, and the computer software product is stored in a readable storage medium (such as ROM/RAM, magnetic The CD-ROM and CD-ROM include instructions to enable a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods of the various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,这些均属于本发明的保护之内。The embodiments of the present invention have been described above with reference to the drawings, but the present invention is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only schematic, not limiting, and those of ordinary skill in the art Under the enlightenment of the present invention, many forms can be made without departing from the scope of the present invention and the scope of the claims. Any equivalent structure or equivalent process transformation made by using the description and drawings of the present invention, or It is directly or indirectly used in other related technical fields, which are all covered by the protection of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by the description and drawings of the present invention, or directly or indirectly used in other related technical fields The same reason is included in the patent protection scope of the present invention.
Claims (10)
- 一种数据传输方法,其中,应用于网关,所述网关包括:中央处理单元、工业以太网模块、LoRa模块以及现场总线模块;所述中央处理单元分别与所述工业以太网模块、所述LoRa模块以及所述现场总线模块通信连接;所述数据传输方法包括以下步骤:A data transmission method, which is applied to a gateway, the gateway includes: a central processing unit, an industrial Ethernet module, a LoRa module, and a field bus module; the central processing unit and the industrial Ethernet module, the LoRa, respectively Module and the fieldbus module communication connection; the data transmission method includes the following steps:在接收到LoRa模块发送的第一数据报文时,所述中央处理单元确定所述第一数据报文对应的第一发送模块,其中,所述第一发送模块为所述工业以太网模块或现场总线模块;When receiving the first data message sent by the LoRa module, the central processing unit determines the first sending module corresponding to the first data message, where the first sending module is the industrial Ethernet module or Fieldbus module;所述中央处理单元基于所述第一发送模块对应的数据格式对所述第一数据报文进行处理,并将处理后的第一数据报文发送至所述第一发送模块,以供所述第一发送模块发送处理后的第一数据报文与所述第一发送模块通信连接的终端节点。The central processing unit processes the first data packet based on the data format corresponding to the first sending module, and sends the processed first data packet to the first sending module for the The first sending module sends the processed first data message to a terminal node communicatively connected to the first sending module.
- 如权利要求1所述的数据传输方法,其中,所述数据传输方法还包括:The data transmission method according to claim 1, wherein the data transmission method further comprises:在接收到工业以太网模块或现场总线模块发送的第二数据报文时,所述中央处理单元确定所述第二数据报文对应的第二发送模块;When receiving the second data message sent by the industrial Ethernet module or the field bus module, the central processing unit determines the second sending module corresponding to the second data message;在所述第二发送模块为所述LoRa模块时,所述中央处理单元基于所述LoRa模块对应的数据格式对所述第二数据报文进行处理,并将处理后的第二数据报文发送至所述LoRa模块,以供所述LoRa模块发送处理后的第二数据报文至与所述LoRa模块通信连接的终端节点。When the second sending module is the LoRa module, the central processing unit processes the second data packet based on the data format corresponding to the LoRa module, and sends the processed second data packet To the LoRa module, for the LoRa module to send the processed second data message to the terminal node communicatively connected to the LoRa module.
- 如权利要求2所述的数据传输方法,其中,所述中央处理单元确定所述第二数据报文的数据类型以及所述第二数据报文对应的第二发送模块的步骤之后,所述数据传输方法还包括:The data transmission method according to claim 2, wherein after the step of the central processing unit determining the data type of the second data message and the second sending module corresponding to the second data message, the data The transmission method also includes:在工业以太网模块发送第二数据报文、且所述第二发送模块为所述现场总线模块时,所述中央处理单元基于所述现场总线模块对应的数据格式对所述第二数据报文进行处理,并将处理后的第二数据报文发送至所述现场总线模块;或者,When the industrial Ethernet module sends a second data message, and the second sending module is the field bus module, the central processing unit responds to the second data message based on the data format corresponding to the field bus module Perform processing and send the processed second data message to the fieldbus module; or,在现场总线模块发送第二数据报文、且所述第二发送模块为所述工业以太网模块时,所述中央处理单元基于所述工业以太网模块对应的数据格式对所述 第二数据报文进行处理,并将处理后的第二数据报文发送至所述工业以太网模块。When the fieldbus module sends a second data message, and the second sending module is the industrial Ethernet module, the central processing unit responds to the second datagram based on the data format corresponding to the industrial Ethernet module The document is processed, and the processed second data message is sent to the industrial Ethernet module.
- 如权利要求1所述的数据传输方法,其中,所述将处理后的第一数据报文发送至所述第一发送模块,以供所述第一发送模块发送处理后的第一数据报文与所述第一发送模块通信连接的终端节点的步骤包括:The data transmission method of claim 1, wherein the sending the processed first data message to the first sending module for the first sending module to send the processed first data message The steps of the terminal node communicatively connected with the first sending module include:所述中央处理单元获取所述第一数据报文对应的波特率;The central processing unit obtains the baud rate corresponding to the first data message;所述中央处理单元基于所述波特率设置所述第一发送模块的通信波特率;The central processing unit sets the communication baud rate of the first sending module based on the baud rate;所述中央处理单元将处理后的第一数据报文发送至所述第一发送模块,以供所述第一发送模块基于所述波特率发送处理后的第一数据报文与所述第一发送模块通信连接的终端节点。The central processing unit sends the processed first data message to the first sending module, so that the first sending module sends the processed first data message and the first based on the baud rate A terminal node communicatively connected by the sending module.
- 如权利要求4所述的数据传输方法,其中,所述中央处理单元获取所述第一数据报文对应的第一波特率的步骤包括:The data transmission method according to claim 4, wherein the step of the central processing unit acquiring the first baud rate corresponding to the first data packet includes:所述中央处理单元遍历预设波特率,确定当前遍历的预设波特率与所述第一数据报文是否匹配,其中,若匹配,则将当前遍历的预设波特率作为所述波特率;或者,The central processing unit traverses the preset baud rate to determine whether the preset baud rate currently traversed matches the first data packet, wherein, if it matches, the preset baud rate currently traversed is used as the Baud rate; or,所述中央处理单元获取标准测试帧对应的通信波特率,计算各个标准波特率与所述通信波特率之间的差值,将所述差值中的最小差值所对应的标准波特率作为所述波特率。The central processing unit obtains the communication baud rate corresponding to the standard test frame, calculates the difference between each standard baud rate and the communication baud rate, and converts the standard wave corresponding to the smallest difference in the difference The baud rate is the baud rate.
- 如权利要求1所述的数据传输方法,其中,所述将处理后的第一数据报文发送至所述第一发送模块的步骤之后,所述数据传输方法还包括:The data transmission method according to claim 1, wherein after the step of sending the processed first data message to the first sending module, the data transmission method further comprises:在所述第一数据报文发送完成时,所述中央处理单元获取所述第一发送模块对应的入网节点信息;When the sending of the first data message is completed, the central processing unit obtains the network access node information corresponding to the first sending module;所述中央处理单元基于所述入网节点信息确定所述第一发送模块对应的入网节点中是否存在掉线节点;The central processing unit determines whether there is a dropped node among the network access nodes corresponding to the first sending module based on the network access node information;若不存在,则所述中央处理单元将所述网关的工作模式调整为网关工作模式;If it does not exist, the central processing unit adjusts the working mode of the gateway to the working mode of the gateway;若存在,则所述中央处理单元基于掉线数据帧在所述网关对应的节点地址列表中删除所述掉线节点,并将所述网关的工作模式调整为网关工作模式。If there is, the central processing unit deletes the dropped node in the node address list corresponding to the gateway based on the dropped data frame, and adjusts the working mode of the gateway to the working mode of the gateway.
- 如权利要求1所述的数据传输方法,其中,所述在接收到LoRa模块发送的第一数据报文时,所述中央处理单元确定所述第一数据报文对应的第一发送模块的步骤之前,所述数据传输方法还包括:The data transmission method according to claim 1, wherein, when the first data message sent by the LoRa module is received, the step of the central processing unit determining the first sending module corresponding to the first data message Previously, the data transmission method also included:在检测到所述LoRa模块对应的终端节点的数据传输请求时,若所述网关的工作模式为节点主动模式,则所述LoRa模块搜索所述数据传输请求对应的LoRa信道的前导码;When detecting the data transmission request of the terminal node corresponding to the LoRa module, if the working mode of the gateway is the node active mode, the LoRa module searches for the preamble of the LoRa channel corresponding to the data transmission request;所述LoRa模块打开所述前导码对应的接收信道,并通过所述接收信道接收所述第一数据报文;The LoRa module opens a receiving channel corresponding to the preamble, and receives the first data message through the receiving channel;在所述第一数据报文接收完成时,将所述第一数据报文发送至所述中央处理单元,并关闭所述接收信道。When the reception of the first data message is completed, the first data message is sent to the central processing unit, and the receiving channel is closed.
- 如权利要求1至7任一项所述的数据传输方法,其中,所述在接收到LoRa模块发送的第一数据报文时,所述中央处理单元确定所述第一数据报文对应的第一发送模块的步骤之前,所述数据传输方法还包括:The data transmission method according to any one of claims 1 to 7, wherein, when receiving the first data message sent by the LoRa module, the central processing unit determines the first data message corresponding to the first data message. Before the step of sending the module, the data transmission method further includes:在接收到与所述LoRa模块通信连接的终端节点发送的入网请求时,所述LoRa模块获取所述终端节点的节点信息以及配置参数;When receiving a network access request sent by a terminal node communicatively connected to the LoRa module, the LoRa module obtains node information and configuration parameters of the terminal node;所述LoRa模块基于节点地址列表以及所述节点信息确定所述终端节点是否为合法节点;The LoRa module determines whether the terminal node is a legal node based on the node address list and the node information;若是,则所述LoRa模块对所述终端节点分配空闲地址、指定信道并确定节点工作模式;If yes, the LoRa module allocates an idle address to the terminal node, designates a channel, and determines the working mode of the node;所述LoRa模块发送分配信息至所述终端节点,其中,所述分配信息包括空闲地址、指定信道以及节点工作模式;The LoRa module sends allocation information to the terminal node, where the allocation information includes an idle address, a designated channel, and a node operating mode;在接收到所述终端节点基于所述分配信息反馈的确认信息时,所述LoRa模块与所述终端节点建立网络连接。Upon receiving the confirmation information fed back by the terminal node based on the allocation information, the LoRa module establishes a network connection with the terminal node.
- 一种数据传输装置,其中,所述数据传输装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的数据传输程序,所述数据传输程序被所述处理器执行时实现如权利要求1至6中任一项所述的数据传输方法的步骤。A data transmission device, wherein the data transmission device includes: a memory, a processor, and a data transmission program stored on the memory and operable on the processor, and the data transmission program is used by the processor The steps of implementing the data transmission method according to any one of claims 1 to 6 when executed.
- 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有 数据传输程序,所述数据传输程序被处理器执行时实现如权利要求1至6中任一项所述的数据传输方法的步骤。A computer-readable storage medium, wherein a data transmission program is stored on the computer-readable storage medium, and the data transmission program is executed by a processor to implement the data transmission according to any one of claims 1 to 6. Method steps.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811608661.7 | 2018-12-26 | ||
CN201811608661.7A CN111371827B (en) | 2018-12-26 | 2018-12-26 | Data transmission method, device and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020134554A1 true WO2020134554A1 (en) | 2020-07-02 |
Family
ID=71126458
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/114783 WO2020134554A1 (en) | 2018-12-26 | 2019-10-31 | Data transmission method and device, and computer readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111371827B (en) |
WO (1) | WO2020134554A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112672305A (en) * | 2020-12-24 | 2021-04-16 | 杭州凯达电力建设有限公司 | Networking system applied to temperature measurement terminal of high-voltage transmission line |
CN113795035A (en) * | 2021-09-14 | 2021-12-14 | 电掣物联网技术(深圳)有限公司 | Wireless LoRa data processing method and device |
CN114143626A (en) * | 2020-08-12 | 2022-03-04 | 中国石油天然气股份有限公司 | Data acquisition method and system |
CN114338798A (en) * | 2021-12-27 | 2022-04-12 | 北京神经元网络技术有限公司 | Data transmission method, device, system, equipment and storage medium |
CN114928629A (en) * | 2022-06-21 | 2022-08-19 | 国网山东省电力公司营销服务中心(计量中心) | Self-adaptive communication method and system for photovoltaic electric energy metering device |
CN115276864A (en) * | 2022-06-01 | 2022-11-01 | 重庆邮电大学 | DMB terminal state information receiving system based on LoRa technology |
CN115571072A (en) * | 2022-10-24 | 2023-01-06 | 中国第一汽车股份有限公司 | Mode conversion method and device for head-up display, electronic equipment and storage medium |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112105008B (en) * | 2020-08-21 | 2023-02-17 | 云南瀚哲科技有限公司 | LoRaWAN gateway node data interaction method based on data unit |
CN113419256A (en) * | 2021-07-01 | 2021-09-21 | 中国人民解放军军事科学院国防科技创新研究院 | Spacecraft return searching and positioning system and searching and positioning method |
CN114866367B (en) * | 2022-04-13 | 2023-12-05 | 深圳市三旺通信股份有限公司 | CAN equipment communication method and device, CAN optical cat equipment and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN205829662U (en) * | 2016-06-15 | 2016-12-21 | 深圳市唯传科技有限公司 | A kind of LoRa gateway router and Internet of things system |
CN107592683A (en) * | 2017-09-28 | 2018-01-16 | 河南汇纳科技有限公司 | A kind of integrated gateway based on LoRa wireless telecommunications |
CN107634862A (en) * | 2017-10-25 | 2018-01-26 | 杭州轨物科技有限公司 | Wireless modbus systems based on Lora technologies |
CN107786967A (en) * | 2016-08-25 | 2018-03-09 | 凌华科技股份有限公司 | L oRa mobile device for directly accessing L oRa information packet and data transmission method thereof |
CN108322930A (en) * | 2018-01-15 | 2018-07-24 | 三川智慧科技股份有限公司 | A kind of paging method based on LoRa technologies |
US20180338017A1 (en) * | 2017-05-17 | 2018-11-22 | CodeShop, B.V. | System and Method for Aggregation, Archiving and Compression of Internet Of Things wireless Sensor Data |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516669A (en) * | 2012-06-21 | 2014-01-15 | 苏州工业园区新宏博通讯科技有限公司 | Adaptive multi-protocol converter |
US10333582B2 (en) * | 2017-06-02 | 2019-06-25 | Hall Labs Llc | System and devices using a preamble-based DSS communication link and spectrum-impact-smoothed channel sets implementing channel resynchronization and abbreviated acknowledgments |
CN107465608B (en) * | 2017-08-17 | 2019-03-12 | 浙江比弦物联科技有限公司 | Internet of Things Multifunctional gateway based on NB-IoT |
CN107580362A (en) * | 2017-08-25 | 2018-01-12 | 东南大学 | A kind of low-power consumption remote wireless transmission system |
CN107959930B (en) * | 2017-11-20 | 2020-11-06 | 新华三技术有限公司 | Terminal access method and device, Lora server and Lora terminal |
CN207603304U (en) * | 2017-12-22 | 2018-07-10 | 丰郅(上海)新能源科技有限公司 | Photovoltaic plant digitalization surveillance & control system |
CN108170628A (en) * | 2017-12-25 | 2018-06-15 | 东华理工大学 | A kind of water meter meter based on LORA communications |
CN108093541A (en) * | 2018-01-08 | 2018-05-29 | 上海博昂电气有限公司 | Lighting device control system |
CN108011814B (en) * | 2018-01-12 | 2023-05-12 | 河北工业大学 | Multi-protocol intelligent gateway based on narrowband Internet of things and implementation method thereof |
-
2018
- 2018-12-26 CN CN201811608661.7A patent/CN111371827B/en active Active
-
2019
- 2019-10-31 WO PCT/CN2019/114783 patent/WO2020134554A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN205829662U (en) * | 2016-06-15 | 2016-12-21 | 深圳市唯传科技有限公司 | A kind of LoRa gateway router and Internet of things system |
CN107786967A (en) * | 2016-08-25 | 2018-03-09 | 凌华科技股份有限公司 | L oRa mobile device for directly accessing L oRa information packet and data transmission method thereof |
US20180338017A1 (en) * | 2017-05-17 | 2018-11-22 | CodeShop, B.V. | System and Method for Aggregation, Archiving and Compression of Internet Of Things wireless Sensor Data |
CN107592683A (en) * | 2017-09-28 | 2018-01-16 | 河南汇纳科技有限公司 | A kind of integrated gateway based on LoRa wireless telecommunications |
CN107634862A (en) * | 2017-10-25 | 2018-01-26 | 杭州轨物科技有限公司 | Wireless modbus systems based on Lora technologies |
CN108322930A (en) * | 2018-01-15 | 2018-07-24 | 三川智慧科技股份有限公司 | A kind of paging method based on LoRa technologies |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114143626A (en) * | 2020-08-12 | 2022-03-04 | 中国石油天然气股份有限公司 | Data acquisition method and system |
CN112672305A (en) * | 2020-12-24 | 2021-04-16 | 杭州凯达电力建设有限公司 | Networking system applied to temperature measurement terminal of high-voltage transmission line |
CN112672305B (en) * | 2020-12-24 | 2023-05-02 | 杭州凯达电力建设有限公司 | Networking system applied to temperature measurement terminal of high-voltage transmission line |
CN113795035A (en) * | 2021-09-14 | 2021-12-14 | 电掣物联网技术(深圳)有限公司 | Wireless LoRa data processing method and device |
CN114338798A (en) * | 2021-12-27 | 2022-04-12 | 北京神经元网络技术有限公司 | Data transmission method, device, system, equipment and storage medium |
CN114338798B (en) * | 2021-12-27 | 2023-04-25 | 北京神经元网络技术有限公司 | Data transmission method, device, system, equipment and storage medium |
CN115276864A (en) * | 2022-06-01 | 2022-11-01 | 重庆邮电大学 | DMB terminal state information receiving system based on LoRa technology |
CN115276864B (en) * | 2022-06-01 | 2024-06-04 | 重庆邮电大学 | DMB terminal state information receiving system based on LoRa technology |
CN114928629A (en) * | 2022-06-21 | 2022-08-19 | 国网山东省电力公司营销服务中心(计量中心) | Self-adaptive communication method and system for photovoltaic electric energy metering device |
CN115571072A (en) * | 2022-10-24 | 2023-01-06 | 中国第一汽车股份有限公司 | Mode conversion method and device for head-up display, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111371827B (en) | 2023-04-18 |
CN111371827A (en) | 2020-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020134554A1 (en) | Data transmission method and device, and computer readable storage medium | |
CN105976134B (en) | Enterprise energy management information acquisition system and method based on ZigBee wireless networking technology | |
CN107925893B (en) | Wireless environment information collection system and method | |
CN105163364A (en) | Intelligent device WiFi connection system and intelligent device WiFi connection method based on intelligent gateway | |
CN106600941A (en) | Low-power-consumption wireless ad-hoc network meter reading system | |
CN111918307A (en) | Multilayer gateway data transmission system and method based on LoRa positioning | |
CN110708763B (en) | Scheduling method, device and computer storage medium | |
CN104378730B (en) | A kind of access system of M2M business in cellular radio Communication system | |
CN109429314A (en) | The awakening method and device of WUR terminal in wireless network | |
CN105959939A (en) | Authorized user safe transmission oriented power distribution method in cognitive wireless network | |
CN110177097A (en) | Data transmission method, apparatus and system | |
CN208768305U (en) | A kind of remote transport gateway based on LoRa technology | |
CN114885359A (en) | Time delay performance evaluation method, access network device and storage medium | |
CN110248329B (en) | Sensor network for urban strong convection weather prevention | |
Xiong et al. | FlyingLoRa: Towards energy efficient data collection in UAV-assisted LoRa networks | |
CN103067958A (en) | Network convergence testing method and system of wireless sensor network and mobile communication network | |
CN105516277B (en) | Monitoring method for power grid electrical equipment temperature monitoring device | |
CN114025323A (en) | Power grid equipment data interaction system and method based on LoRa communication | |
CN108307431A (en) | A kind of method of paging, network side equipment and terminal | |
CN104038360A (en) | Network management realization system and network management realization method based on novel access controller architecture | |
CN111010419A (en) | Ubiquitous electric field data acquisition system and method | |
CN111132386A (en) | Edge computing gateway based on narrowband Internet of things | |
CN204575219U (en) | A kind of transformer station's In-Line Temperature Measure System based on 6LoWPAN | |
US9877355B2 (en) | Wireless communicator connectable to different types of wireless communication networks | |
CN205725720U (en) | A kind of outdoor intelligent Wifi hot spot device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19902888 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17/11/2021) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19902888 Country of ref document: EP Kind code of ref document: A1 |