WO2022021274A1 - High-speed data transmission method and system - Google Patents
High-speed data transmission method and system Download PDFInfo
- Publication number
- WO2022021274A1 WO2022021274A1 PCT/CN2020/106081 CN2020106081W WO2022021274A1 WO 2022021274 A1 WO2022021274 A1 WO 2022021274A1 CN 2020106081 W CN2020106081 W CN 2020106081W WO 2022021274 A1 WO2022021274 A1 WO 2022021274A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- module
- target
- speed transmission
- transmitted
- Prior art date
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 399
- 238000000034 method Methods 0.000 title claims abstract description 63
- 238000004891 communication Methods 0.000 claims description 129
- 238000012790 confirmation Methods 0.000 claims description 38
- 238000004590 computer program Methods 0.000 claims description 4
- 230000003044 adaptive effect Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/15—Setup of multiple wireless link connections
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0274—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present invention relates to the technical field of data transmission, and in particular, to a high-speed data transmission method and system.
- the purpose of the present invention is to provide a high-speed data transmission method and system to realize high-speed data transmission of node modules.
- the present invention provides a high-speed data transmission method, which includes:
- the data to be transmitted is the data transmitted between the target node module and the wireless control terminal
- the target node module is connected to the target high-speed transmission module, and the data to be transmitted is transmitted through the target high-speed transmission module.
- the present invention includes multiple high-speed transmission modules and multiple node modules,
- the determining the target high-speed transmission module corresponding to the target node module includes:
- the target node module is a node module, randomly select a high-speed transmission module from a plurality of the high-speed transmission modules as the target high-speed transmission module;
- N high-speed transmission modules are randomly selected from the plurality of high-speed transmission modules as the target high-speed transmission modules, where N is an integer greater than or equal to 2.
- the target node module is connected to the target high-speed transmission module, including:
- the wireless control terminal sends a second connection opening instruction to the target node module through the first connection;
- the target node module When the target node module receives the second connection opening instruction, the target node module selects the communication channel corresponding to the second connection and opens the second connection, and passes the selected communication channel through the first connection. A connection is sent to the wireless control terminal, and the target high-speed transmission module and the target node module are connected through the communication channel.
- the target node module includes N node modules
- the target high-speed transmission module includes N high-speed transmission modules, where N is an integer greater than or equal to 2,
- the target node module is connected to the target high-speed transmission module, and further includes:
- the wireless control terminal re-sends the second connection opening command to the node module through the first connection, and the node module re-selects The communication channel corresponding to the second connection;
- the communication channel selected by the node module is used as the target communication channel, and the node module communicates with the corresponding high-speed transmission channel through the target communication channel. Module connection.
- the data to be transmitted is the data sent by the wireless control terminal to the target node module
- the transmitting the data to be transmitted through the target high-speed transmission module includes:
- the target high-speed transmission module sends the to-be-transmitted data to the target node module
- the target node module When the target node module receives the data to be transmitted, the target node module returns confirmation information to the target high-speed transmission module.
- the data to be transmitted includes multiple data packets, and the target high-speed transmission module sends one data packet to the target node module each time,
- the transmitting the data to be transmitted through the target high-speed transmission module further includes:
- the target high-speed transmission module stops sending data packets to the target node module
- the target high-speed transmission module continues to send the data packets to the target node module until the multiple data packets of the to-be-transmitted data are sent.
- the data to be transmitted is the data sent by the target node module to the wireless control terminal
- the transmitting the data to be transmitted through the target high-speed transmission module includes:
- the target high-speed transmission module requests the data to be transmitted from the target node module
- the target node module returns the to-be-transmitted data to the target high-speed transmission module.
- the target node module returns the data to be transmitted to the target high-speed transmission module, including:
- the target node module If the target node module has the data to be transmitted, the target node module returns confirmation information and the data to be transmitted to the target high-speed transmission module;
- the target node module If the target node module does not have the data to be transmitted, the target node module returns confirmation information and null data to the target high-speed transmission module.
- the data to be transmitted includes multiple data packets, and the target high-speed transmission module requests one data packet from the target node module each time,
- the transmitting the data to be transmitted through the target high-speed transmission module further includes:
- the target high-speed transmission module stops requesting data packets from the target node module
- the target high-speed transmission module continues to request the data packets from the target node module until the multiple data packets of the to-be-transmitted data are requested.
- the data to be transmitted is transmitted through the target high-speed transmission module, further comprising:
- the wireless control terminal When the number of times that no confirmation information is returned or the number of times that no data to be transmitted is returned is greater than a preset threshold, the wireless control terminal re-sends a second connection opening instruction to the target node module through the first connection.
- the target node module when the target node module receives the second connection opening instruction, the target node module starts the corresponding timer
- the transmitting the data to be transmitted through the target high-speed transmission module further includes:
- the timer corresponding to the target node module is cleared.
- the timer corresponding to the target node module sets a preset time
- the method also includes:
- the target node module closes the second connection.
- the present invention also provides a high-speed data transmission system, the system includes:
- a data determination module configured to determine a target node module, data to be transmitted, and a target high-speed transmission module corresponding to the target node module, wherein the data to be transmitted is the data transmitted between the target node module and the wireless control terminal;
- a connection transmission module is used to connect the target node module with the target high-speed transmission module, and transmit the to-be-transmitted data through the target high-speed transmission module.
- the system includes multiple high-speed transmission modules and multiple node modules,
- the data determination module determines the target high-speed transmission module corresponding to the target node module, it includes:
- the target node module is a node module, randomly select a high-speed transmission module from a plurality of the high-speed transmission modules as the target high-speed transmission module;
- the target node module is N node modules, randomly select N high-speed transmission modules from a plurality of the high-speed transmission modules as the target high-speed transmission module, wherein N is an integer greater than or equal to 2.
- connection transmission module realizes the connection between the target node module and the target high-speed transmission module, it includes:
- the wireless control terminal sends a second connection opening instruction to the target node module through the first connection;
- the target node module When the target node module receives the second connection opening instruction, the target node module selects the communication channel corresponding to the second connection and opens the second connection, and the target node module selects the communication channel to be selected.
- the channel is sent to the wireless control terminal through the first connection, and the target high-speed transmission module and the target node module are connected through the communication channel.
- the target node module includes N node modules
- the target high-speed transmission module includes N high-speed transmission modules, where N is an integer greater than or equal to 2,
- connection transmission module realizes the connection between the target node module and the target high-speed transmission module, it further includes:
- the wireless control terminal re-sends the second connection opening command to the node module through the first connection, and the node module re-selects The communication channel corresponding to the second connection;
- the communication channel selected by the node module is used as the target communication channel, and the node module communicates with the corresponding high-speed transmission channel through the target communication channel. Module connection.
- the data to be transmitted is the data sent by the wireless control terminal to the target node module
- connection transmission module when the connection transmission module realizes that the target high-speed transmission module transmits the to-be-transmitted data, it includes:
- the target high-speed transmission module sends the to-be-transmitted data to the target node module
- the target node module When the target node module receives the data to be transmitted, the target node module returns confirmation information to the target high-speed transmission module.
- the data to be transmitted includes multiple data packets, and the target high-speed transmission module sends one data packet to the target node module each time,
- connection transmission module when the connection transmission module realizes that the target high-speed transmission module transmits the to-be-transmitted data, it further includes:
- the target high-speed transmission module stops sending data packets to the target node module
- the target high-speed transmission module continues to send the data packets to the target node module until the multiple data packets of the to-be-transmitted data are sent.
- the data to be transmitted is the data sent by the target node module to the wireless control terminal
- connection transmission module when the connection transmission module realizes that the target high-speed transmission module transmits the to-be-transmitted data, it includes:
- the target high-speed transmission module requests the data to be transmitted from the target node module
- the target node module returns the to-be-transmitted data to the target high-speed transmission module.
- the connection transmission module includes:
- the target node module If the target node module has the data to be transmitted, the target node module returns confirmation information and the data to be transmitted to the target high-speed transmission module;
- the target node module If the target node module does not have the data to be transmitted, the target node module returns confirmation information and null data to the target high-speed transmission module.
- the data to be transmitted includes multiple data packets, and the target high-speed transmission module requests one data packet from the target node module each time,
- the connection transmission module when the target high-speed transmission module transmits the data to be transmitted, the connection transmission module further includes:
- the target high-speed transmission module stops requesting data packets from the target node module
- the target high-speed transmission module continues to request the data packets from the target node module until the multiple data packets of the to-be-transmitted data are requested.
- connection transmission module when the connection transmission module realizes that the target high-speed transmission module transmits the data to be transmitted, it also includes:
- the wireless control terminal When the number of times that no confirmation information is returned or the number of times that no data to be transmitted is returned is greater than a preset threshold, the wireless control terminal re-sends a second connection opening instruction to the target node module through the first connection.
- the target node module when the target node module receives the second connection opening instruction, the target node module starts the corresponding timer
- connection transmission module transmits the data to be transmitted by the target high-speed transmission module, it also includes:
- the timer corresponding to the target node module is cleared.
- the timer corresponding to the target node module sets a preset time
- connection transmission module is also used for:
- the target node module closes the second connection.
- the present invention also provides an electronic device including a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to realize the method described.
- the present invention also provides a computer-readable storage medium on which a computer program is stored, characterized in that the computer program is executed by a processor to implement the method.
- a communication connection with low power consumption, low latency, and high reliability is maintained through the first connection.
- a single base station module can be connected to multiple node modules at the same time, and the real-time transmission can be maintained.
- the second connection is opened for high-speed data transmission, and multiple node modules can simultaneously transmit high-speed data at the same time.
- FIG. 1 is a schematic flowchart of a high-speed data transmission method according to an exemplary embodiment of the present invention
- FIG. 2 is a schematic diagram of a gateway device according to an exemplary embodiment of the present invention.
- FIG. 3 is a schematic flowchart of a node module sending high-speed data to a high-speed transmission module according to an exemplary embodiment of the present invention
- FIG. 4 is a schematic flowchart of a node module receiving high-speed data from a high-speed transmission module according to an exemplary embodiment of the present invention
- FIG. 5 is a schematic flowchart of the high-speed data transmission method according to Embodiments 1-3 of the present invention.
- FIG. 6 is a schematic flowchart of the high-speed data transmission method according to Embodiments 4-6 of the present invention.
- a high-speed data transmission method includes:
- the target node module is connected to the target high-speed transmission module, and the data to be transmitted is transmitted through the target high-speed transmission module.
- the method realizes the transmission of high-speed data (a large amount of data in a short period of time) through a gateway device.
- the gateway device includes a base station module and at least one high-speed transmission module, and also includes a wireless control terminal, which can carry a control software program to control the base station module and the high-speed transmission module,
- the high-speed transmission module is connected with the wireless control terminal, and the data sent and received by the high-speed transmission module pass through the wireless control terminal to realize data transmission between the wireless control terminal and multiple node modules.
- the data to be transmitted may be data sent by the wireless control terminal to the target node module, or may be data sent by the target node module to the wireless control terminal.
- it includes multiple high-speed transmission modules and multiple node modules, wherein determining the target high-speed transmission module corresponding to the target node module includes:
- the target node module is a node module, randomly select a high-speed transmission module from multiple high-speed transmission modules as the target high-speed transmission module;
- N high-speed transmission modules are randomly selected from the plurality of high-speed transmission modules as the target high-speed transmission modules, where N is an integer greater than or equal to 2.
- one high-speed transmission module can correspond to serving multiple node modules. Since the transmission between the high-speed transmission module and multiple node modules is initiated by the high-speed transmission module, there will be no high-speed data transmission conflict between multiple node modules. It can also include multiple high-speed transmission modules, through which the transmission capacity can be increased, and the simultaneous transmission of data between multiple node modules and the wireless control terminal can be realized. For example, the wireless control terminal can control the selection of the high-speed transmission module corresponding to each node module to ensure that concurrent high-speed communication between multiple node modules will not cause conflicts.
- the wireless control terminal needs to send data to a node module A, for example, the wireless control terminal randomly selects a high-speed transmission module GA among 10 high-speed transmission modules.
- the node module A is a target node module
- the high-speed transmission module GA is a corresponding target high-speed transmission module
- the high-speed transmission module GA and the node module A are in communication connection.
- the wireless control terminal needs to send data to three node modules A, B, and C at the same time.
- the wireless control terminal randomly selects three high-speed transmission modules GA, GB, and GC among 20 high-speed transmission modules.
- Node modules A, B, and C are target node modules, and high-speed transmission modules GA, GB, and GC are corresponding target high-speed transmission modules.
- the high-speed transmission module GA is used for communication connection with the node module A
- the high-speed transmission module GB is used for communication connection with the node module B
- the high-speed transmission module GC is used for communication connection with the node module C.
- the target node module is connected to the target high-speed transmission module, including:
- the wireless control terminal sends a second connection opening instruction to the target node module through the first connection;
- the target node module When the target node module receives the second connection opening instruction, the target node module selects the communication channel corresponding to the second connection and opens the second connection, and the target node module sends the selected communication channel corresponding to the second connection to the wireless communication channel through the first connection.
- the target high-speed transmission module is connected with the target node module through a communication channel.
- the two-way communication connection between the base station module and each node module is realized through the first connection.
- the first connection can be understood as a low-power, low-latency, high-reliability communication connection, which realizes the wireless control terminal and each node.
- the module transmits a small amount of data in a short period of time (low-speed communication).
- the first connection is a low-cost connection mode, a single base station module can maintain connection with multiple node modules at the same time, and can maintain real-time data transmission.
- the first connection between the base station module and each node module can be implemented by adaptive frequency hopping technology and time division multiple access technology.
- the first connection can operate in an unlicensed frequency band, such as 2.4GHz, which can effectively ensure the reliability of transmission.
- the two-way communication connection is realized between each high-speed transmission module and each node module through a second connection
- the second connection can be understood as a high-speed communication connection, which realizes the transmission of a large amount of data between the wireless control terminal and each node module in a short time (high-speed communication). communication).
- the second connection is closed by default.
- the second connection is a passive connection.
- the opening of the second connection can be controlled through the wireless control terminal, and the node module cannot actively send data through the second connection.
- the node module when the node module needs to send high-speed data through the second connection, it needs to request data from the node module through the high-speed transmission module corresponding to the node module, and the node module returns the data to the high-speed transmission module.
- the node module when the node module needs to receive high-speed data through the second connection, it needs to send data to the node module through the high-speed transmission module corresponding to the node module. After the node module receives the data, it returns an acknowledgment message (ACK ).
- ACK acknowledgment message
- the data transmission of the second connection is initiated by the high-speed transmission module, and the node module cannot initiate it actively, which can effectively solve the problem of network collision.
- the second connection may, for example, operate at 2.4 GHz, which may have 10 to 40 high-speed communication channels (wireless channels) available.
- Communication channels may be provided, for example, by adaptive frequency hopping techniques and time division multiple access techniques.
- Each node module uses a communication channel respectively, and receives and sends high-speed data through the communication channel allocated by the node module, so that multiple node modules can transmit high-speed data (a large amount of data) at the same time at the same time, and there will be no wireless conflict. , causing the transmission to fail.
- the target node module needs to first send a data read instruction to the wireless control terminal through the first connection, and wait for the wireless control terminal to receive the data of the target node module. After reading the instruction, the wireless control terminal sends the second connection opening instruction to the target node module through the first connection.
- the target node module includes N node modules
- the target high-speed transmission module includes N high-speed transmission modules, where N is an integer greater than or equal to 2, wherein the target node module and the target high-speed transmission Module connections, which also include:
- the wireless control terminal re-sends the second connection opening instruction to the node module through the first connection, and the node module re-selects the communication corresponding to the second connection channel;
- the communication channel selected by the node module is used as the target communication channel, and the node module is connected to the corresponding high-speed transmission module through the target communication channel.
- the frequency band in which the second connection operates has multiple communication channels.
- the wireless control terminal can control multiple node modules and multiple For the connection between high-speed transmission modules, in the process of realizing the connection, the wireless control terminal needs to confirm whether the communication channel selected by each node module is the same as that selected by other node modules, so as to avoid communication channel conflict and data transmission failure. .
- the high-speed transmission module GA is used for communication connection with the node module A
- the high-speed transmission module GB is used for communication connection with the node module B
- the high-speed transmission module GC is used for communication connection with the node module C.
- the data to be transmitted is the data sent by the wireless control terminal to the target node module, wherein the transmission of the data to be transmitted through the target high-speed transmission module includes:
- the target high-speed transmission module sends the data to be transmitted to the target node module
- the target node module When the target node module receives the data to be transmitted, the target node module returns confirmation information to the target high-speed transmission module.
- the data to be transmitted includes a plurality of data packets
- the target high-speed transmission module sends one data packet to the target node module at a time, wherein the data to be transmitted is transmitted through the target high-speed transmission module, and further includes:
- the target high-speed transmission module stops sending data packets to the target node module
- the target high-speed transmission module continues to send the data packets to the target node module until the multiple data packets of the to-be-transmitted data are sent.
- the high-speed transmission module sends data to the node module through the communication channel allocated by the node module.
- the node module receives the transmitted data, it needs to return an acknowledgment message (ACK) to the high-speed transmission module to inform the high-speed transmission module that the data has been received.
- ACK acknowledgment message
- the high-speed transmission module will continue to send the next packet of data until all data packets are sent.
- the wireless control terminal is connected to the high-speed transmission module, and after the target node module returns confirmation information to the target high-speed transmission module, the confirmation information is transmitted to the wireless control terminal. After receiving the acknowledgment information, the wireless control terminal needs to determine whether there are any remaining data packets. If so, it will continue to send data packets through the high-speed transmission module. If not, it will control the high-speed transmission module to stop sending data packets.
- the data to be transmitted is transmitted through the target high-speed transmission module, further comprising:
- the wireless control terminal When the number of times that the target node module does not return confirmation information to the target high-speed transmission module is greater than the preset threshold, the wireless control terminal re-sends the second connection opening instruction to the target node module through the first connection.
- the second connection may fail to connect, resulting in data transmission failure.
- the wireless control terminal does not receive the confirmation information returned by the target node module for four times, the wireless control terminal needs to re-initiate the second connection opening command.
- the present invention can set the preset threshold according to the number of node modules and high-speed transmission modules. .
- the data to be transmitted is the data sent by the target node module to the wireless control terminal, wherein the transmission of the data to be transmitted through the target high-speed transmission module includes:
- the target high-speed transmission module requests data to be transmitted from the target node module
- the target node module returns the data to be transmitted to the target high-speed transmission module.
- the target node module returns data to be transmitted to the target high-speed transmission module, including:
- the target node module If the target node module has data to be transmitted, the target node module returns confirmation information and the data to be transmitted to the target high-speed transmission module;
- the target node module If the target node module has no data to be transmitted, the target node module returns confirmation information and empty data to the target high-speed transmission module.
- the target node module returns empty data to the target high-speed transmission module
- the wireless control terminal receives the empty data, it can determine that the transmission of the data to be transmitted is completed, and the wireless control terminal does not need to request the node module through the target high-speed transmission module. data.
- the data to be transmitted includes multiple data packets, and the target high-speed transmission module requests one data packet from the target node module each time,
- the data to be transmitted is transmitted through the target high-speed transmission module, and also includes:
- the target high-speed transmission module stops requesting data packets from the target node module
- the target high-speed transmission module continues to request the data packets from the target node module until the multiple data packets of the to-be-transmitted data are requested.
- the high-speed transmission module requests data from the node module through the communication channel allocated by the node module, and the node module returns data to the high-speed transmission module. After the high-speed transmission module receives the data returned by the node module, it will continue to request the next packet of data from the node module until the node module has no data packets to return. Since the high-speed transmission module requests data each time, when returning data, the node module needs to return confirmation information to the high-speed transmission module together to inform the high-speed transmission module to receive the request information.
- the data to be transmitted is transmitted through the target high-speed transmission module, further comprising:
- the wireless control terminal When the number of times that the target node module does not return data to be transmitted to the target high-speed transmission module is greater than the preset threshold, the wireless control terminal re-sends the second connection opening instruction to the target node module through the first connection.
- the second connection may fail to connect, resulting in data transmission failure. For example, if the wireless control terminal does not receive the data to be transmitted returned by the target node module for 4 consecutive times, it is determined that the data transmission fails, and the wireless control terminal needs to re-initiate the second connection opening command. Set the preset threshold for the number of failures.
- the target node module when the target node module receives the second connection opening instruction, the target node module starts a corresponding timer, wherein the data to be transmitted is transmitted through the target high-speed transmission module, further comprising:
- the timer corresponding to the target node module is cleared.
- the timer corresponding to the target node module sets a preset time, wherein the method further includes:
- the target node module closes the second connection.
- the node module can simultaneously start a timer after the second connection is opened, and clear the timer after the data to be transmitted is transmitted. When the timer expires, it may be considered that there is no data to be transmitted, and the node module closes the second connection.
- the method described in the present invention generally maintains a low power consumption, low delay and high reliability communication connection through the first connection, a single base station module can be connected with multiple node modules at the same time, and the real-time transmission can be maintained .
- the node module needs to transmit high-speed data
- the second connection is opened for high-speed data transmission, and multiple node modules can simultaneously transmit high-speed data at the same time.
- a high-speed data transmission system includes:
- the data determination module is used to determine the target high-speed transmission module corresponding to the target node module, the data to be transmitted and the target node module, wherein the data to be transmitted is the data transmitted between the target node module and the wireless control terminal;
- connection transmission module is used for connecting the target node module with the target high-speed transmission module, and the data to be transmitted is transmitted through the target high-speed transmission module.
- the system includes multiple high-speed transmission modules and multiple node modules,
- the data determination module determines the target high-speed transmission module corresponding to the target node module, it includes:
- the target node module is a node module, randomly select a high-speed transmission module from a plurality of high-speed transmission modules as the target high-speed transmission module;
- N high-speed transmission modules are randomly selected from the plurality of high-speed transmission modules as the target high-speed transmission modules, where N is an integer greater than or equal to 2.
- connection transmission module realizes the connection between the target node module and the target high-speed transmission module, it includes:
- the wireless control terminal sends a second connection opening instruction to the target node module through the first connection;
- the target node module When the target node module receives the second connection opening instruction, the target node module selects the communication channel corresponding to the second connection and opens the second connection, and sends the communication channel corresponding to the selected second connection to the wireless control terminal through the first connection , the target high-speed transmission module is connected with the target node module through a communication channel.
- the target node module includes N node modules
- the target high-speed transmission module includes N high-speed transmission modules, where N is an integer greater than or equal to 2, and the connection transmission module is used to implement the target node.
- the module When the module is connected to the target high-speed transmission module, it also includes:
- the wireless control terminal re-sends the second connection opening instruction to the node module through the first connection, and the node module re-selects the communication corresponding to the second connection channel;
- the communication channel selected by the node module is used as the target communication channel, and the node module is connected to the corresponding high-speed transmission module through the target communication channel.
- the data to be transmitted is the data sent by the wireless control terminal to the target node module, wherein, when the connection transmission module realizes that the target high-speed transmission module transmits the to-be-transmitted data, it includes:
- the target high-speed transmission module sends the data to be transmitted to the target node module
- the target node module When the target node module receives the data to be transmitted, the target node module returns confirmation information to the target high-speed transmission module.
- the data to be transmitted includes multiple data packets
- the target high-speed transmission module sends one data packet to the target node module at a time, wherein, when the connection transmission module realizes that the target high-speed transmission module transmits the to-be-transmitted data ,Also includes:
- the target high-speed transmission module stops sending data packets to the target node module
- the target high-speed transmission module continues to send the data packets to the target node module until the multiple data packets of the to-be-transmitted data are sent.
- the data to be transmitted is transmitted through the target high-speed transmission module, further comprising:
- the wireless control terminal When the number of times that the target node module does not return confirmation information to the target high-speed transmission module is greater than the preset threshold, the wireless control terminal re-sends the second connection opening instruction to the target node module through the first connection.
- the data to be transmitted is the data sent by the target node module to the wireless control terminal, wherein, when the connection transmission module realizes the transmission of the data to be transmitted by the target high-speed transmission module, the method includes:
- the target high-speed transmission module requests data to be transmitted from the target node module
- the target node module returns the data to be transmitted to the target high-speed transmission module.
- the connection transmission module includes:
- the target node module If the target node module has data to be transmitted, the target node module returns confirmation information and the data to be transmitted to the target high-speed transmission module;
- the target node module If the target node module has no data to be transmitted, the target node module returns confirmation information and empty data to the target high-speed transmission module.
- the data to be transmitted includes a plurality of data packets
- the target high-speed transmission module requests one data packet from the target node module at a time, wherein the connection transmission module, when the target high-speed transmission module transmits the data to be transmitted, Also includes:
- the target high-speed transmission module stops requesting data packets from the target node module
- the target high-speed transmission module continues to request the data packets from the target node module until the multiple data packets of the to-be-transmitted data are requested.
- connection transmission module when the connection transmission module transmits the data to be transmitted by the target high-speed transmission module, it also includes:
- the wireless control terminal When the number of times that the target node module does not return data to be transmitted to the target high-speed transmission module is greater than the preset threshold, the wireless control terminal re-sends the second connection opening instruction to the target node module through the first connection.
- the target node module when the target node module receives the second connection opening instruction, the target node module starts the corresponding timer
- connection transmission module realizes the target high-speed transmission module to transmit the data to be transmitted, it also includes:
- the timer corresponding to the target node module is cleared.
- the timer corresponding to the target node module sets the preset time, wherein the connection transmission module is further used for:
- the target node module closes the second connection.
- FIG. 5 is used for Embodiments 1-3
- FIG. 6 is used for Embodiments 4-6.
- a high-speed transmission module GA is configured in the gateway device, and the wireless control terminal has a large amount of data to be sent to a target node module (node module A).
- the method includes:
- Step1 the wireless control terminal sends a second connection opening instruction to the node module A through the first connection;
- Step2 when the node module A receives the second connection opening instruction, the node module A selects the wireless communication channel available for the last adaptive frequency hopping and starts the second connection and a timer;
- Step3 the selected communication channel is reported to the wireless control terminal through the first connection, and the wireless control terminal records the communication channel selected by the node module A;
- Step4 the wireless control terminal sends data to the node module A through the high-speed transmission module GA, and the node module A returns the confirmation information to the wireless control terminal through the high-speed transmission module GA after receiving the data;
- Step5 the wireless control terminal determines whether the node module A returns confirmation information and the number of times that the confirmation information is not returned;
- the wireless control terminal After the wireless control terminal receives the confirmation information returned by the node module A, it determines whether there is any remaining data to send; if so, the wireless control terminal continues to send data to the node module A through the high-speed transmission module GA; if not, the wireless control terminal stops Send data, the timer is cleared;
- the wireless control terminal When the wireless control terminal does not receive the acknowledgment information returned by the node module A, it further confirms the number of times that no acknowledgment information is returned.
- the gateway device is configured with multiple high-speed transmission modules, and the wireless control terminal has a large amount of data to be sent to a target node module (node module A).
- the difference between the method and Embodiment 1 is that the wireless control terminal first randomly selects a high-speed transmission module GA from a plurality of high-speed transmission modules as a target high-speed transmission module. Then perform Step1-Step5 in Embodiment 1.
- the gateway device is configured with multiple high-speed transmission modules, and the wireless control terminal has a large amount of data that needs to be sent to multiple node modules (node modules A, B, C).
- the difference from Embodiment 1 is that the wireless control terminal randomly selects three high-speed transmission modules GA, GB, and GC from a plurality of high-speed transmission modules.
- the transmission module GB is used for communication connection with the node module B
- the high-speed transmission module GC is used for communication connection with the node module C.
- the wireless control terminal when performing Step 2 in Embodiment 1, the wireless control terminal also needs to determine whether the communication channel selected by node module A is the same as the communication channel used by node module B or node module C. If it is the same, the wireless control terminal will return to the Step1. The process of node module B and node module C is the same as that of node module A, which is not repeated here.
- a high-speed transmission module GA is configured in the gateway device, and the wireless control terminal needs to receive a large amount of data from the node module A.
- the method includes:
- Step1 the node module A sends a data reading instruction to the wireless control terminal through the first connection;
- Step 2 After receiving the data reading instruction from the node module A, the wireless control terminal sends the second connection opening instruction to the node module A through the first connection;
- Step3 when the node module A receives the second connection opening instruction, the node module A selects the wireless communication channel available for the last adaptive frequency hopping and starts the second connection and a timer;
- Step4 the selected communication channel is reported to the wireless control terminal through the first connection, and the wireless control terminal records the communication channel selected by the node module A;
- Step5 the wireless control terminal requests data from the node module A through the high-speed transmission module GA, and the node module A returns the data to the wireless control terminal through the high-speed transmission module GA after receiving the request;
- Step6 the wireless control terminal determines whether the node module A returns data and the number of times that no data is returned;
- the wireless control terminal After the wireless control terminal receives the data returned by the node module A, it determines whether it is empty data; if not, the wireless control terminal continues to request data from the node module A through the high-speed transmission module GA; if so, the wireless control terminal stops requesting data, timing clear the device;
- the wireless control end When the wireless control end does not receive the data returned by the node module A, it further confirms the number of times that no data is returned. When the wireless control end does not receive the data returned by the node module A for 4 consecutive times, the wireless control end returns to Step 2.
- the gateway device is configured with multiple high-speed transmission modules, and the wireless control terminal needs to receive a large amount of data from the node module A.
- the difference between the method and Embodiment 4 is that the wireless control terminal first randomly selects a high-speed transmission module GA from a plurality of high-speed transmission modules as the target high-speed transmission module. Then perform Step1-Step6 in Embodiment 4.
- the gateway device is configured with multiple high-speed transmission modules, and the wireless control terminal needs to receive a large amount of data from multiple node modules (node modules A, B, and C).
- the difference between the method and Embodiment 4 is that the line control terminal randomly selects three high-speed transmission modules GA, GB, and GC from a plurality of high-speed transmission modules, wherein the high-speed transmission module GA is used to communicate with the node module A.
- the high-speed transmission module GB is used for communication connection with the node module B
- the high-speed transmission module GC is used for communication connection with the node module C.
- the wireless control terminal when performing Step 3 in Embodiment 4, the wireless control terminal also needs to determine whether the communication channel selected by node module A is the same as the communication channel used by node module B or node module C. If it is the same, the wireless control terminal will return to the Step2. The process of node module B and node module C is the same as that of node module A, which is not repeated here.
- the present disclosure also relates to an electronic device, including a server, a terminal, and the like.
- the electronic device includes: at least one processor; a memory communicatively connected to the at least one processor; and a communication component communicatively connected to the storage medium, the communication component receiving and transmitting data under the control of the processor; wherein the memory stores Instructions executable by at least one processor to implement the methods in the above-described embodiments.
- the memory as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs and modules.
- the processor executes various functional applications and data processing of the device by running the non-volatile software programs, instructions and modules stored in the memory, that is, implementing the method.
- the memory may include a stored program area and a stored data area, wherein the stored program area can store an operating system, an application program required by at least one function; the stored data area can store an option list and the like. Additionally, the memory may include high speed random access memory, and may also include nonvolatile memory, such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some embodiments, the memory may optionally include memory located remotely from the processor, such remote memory being connectable to an external device via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
- One or more modules are stored in memory, and when executed by one or more processors, perform the method in any of the above method embodiments.
- the above product can execute the methods provided by the embodiments of the present application, and have functional modules and beneficial effects corresponding to the execution methods.
- functional modules and beneficial effects corresponding to the execution methods For technical details not described in detail in the present embodiments, reference may be made to the methods provided by the embodiments of the present application.
- the present disclosure also relates to a computer-readable storage medium for storing a computer-readable program, the computer-readable program being used for a computer to execute some or all of the above method embodiments.
- the aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Disclosed is a high-speed data transmission method. The method comprises: determining a target node module and data to be transmitted, wherein said data is data to be transmitted between the target node module and a wireless control end; determining a target high-speed transmission module corresponding to the target node module; and connecting the target node module to the target high-speed transmission module, and transmitting said data by means of the target high-speed transmission module. Further disclosed is a high-speed data transmission system. By means of the high-speed data transmission method and system of the present invention, high-speed data transmission by a node module can be realized.
Description
本发明涉及数据传输技术领域,具体而言,涉及一种高速数据传输方法及系统。The present invention relates to the technical field of data transmission, and in particular, to a high-speed data transmission method and system.
相关技术中,在实现节点模块的数据传输时,在短时间内一般只能传输少量数据,为低速通信。然而在很多应用场景中,需要在短时间内传输大量数据,现有的通信和数据传输方式无法实现节点模块的高速数据传输。In the related art, when realizing the data transmission of the node module, generally only a small amount of data can be transmitted in a short time, which is low-speed communication. However, in many application scenarios, a large amount of data needs to be transmitted in a short time, and the existing communication and data transmission methods cannot realize high-speed data transmission of node modules.
发明内容SUMMARY OF THE INVENTION
为解决上述问题,本发明的目的在于提供一种高速数据传输方法及系统,实现节点模块的高速数据传输。In order to solve the above problems, the purpose of the present invention is to provide a high-speed data transmission method and system to realize high-speed data transmission of node modules.
本发明提供了一种高速数据传输方法,所述方法包括:The present invention provides a high-speed data transmission method, which includes:
确定目标节点模块及待传输数据,其中,所述待传输数据为所述目标节点模块与无线控制端之间传输的数据;determining the target node module and the data to be transmitted, wherein the data to be transmitted is the data transmitted between the target node module and the wireless control terminal;
确定所述目标节点模块对应的目标高速传输模块;determining the target high-speed transmission module corresponding to the target node module;
所述目标节点模块与所述目标高速传输模块连接,通过所述目标高速传输模块传输所述待传输数据。The target node module is connected to the target high-speed transmission module, and the data to be transmitted is transmitted through the target high-speed transmission module.
作为本发明进一步的改进,包括多个高速传输模块和多个节点模块,As a further improvement of the present invention, it includes multiple high-speed transmission modules and multiple node modules,
其中,所述确定所述目标节点模块对应的目标高速传输模块,包括:Wherein, the determining the target high-speed transmission module corresponding to the target node module includes:
若所述目标节点模块为一个节点模块,从多个所述高速传输模块中随机选取一个高速传输模块作为所述目标高速传输模块;If the target node module is a node module, randomly select a high-speed transmission module from a plurality of the high-speed transmission modules as the target high-speed transmission module;
若所述目标节点模块为N个节点模块,从多个所述高速传输模块中随机选取N个高速传输模块作为所述目标高速传输模块,其中,N为大于或等于2的整数。If the target node modules are N node modules, N high-speed transmission modules are randomly selected from the plurality of high-speed transmission modules as the target high-speed transmission modules, where N is an integer greater than or equal to 2.
作为本发明进一步的改进,所述目标节点模块与所述目标高速传输模块连接,包括:As a further improvement of the present invention, the target node module is connected to the target high-speed transmission module, including:
所述无线控制端通过第一连接向所述目标节点模块发送第二连接开启指令;The wireless control terminal sends a second connection opening instruction to the target node module through the first connection;
待所述目标节点模块收到所述第二连接开启指令时,所述目标节点模块选取所述第二连接对应的通信信道并开启所述第二连接,并将选取的通信信道通过所述第一连接发送给所述无线控制端,所述目标高速传输模块与所述目标节点模块通过所述通信信道连接。When the target node module receives the second connection opening instruction, the target node module selects the communication channel corresponding to the second connection and opens the second connection, and passes the selected communication channel through the first connection. A connection is sent to the wireless control terminal, and the target high-speed transmission module and the target node module are connected through the communication channel.
作为本发明进一步的改进,所述目标节点模块包括N个节点模块,所述目标高速传输模块包括N个高速传输模块,其中,N为大于或等于2的整数,As a further improvement of the present invention, the target node module includes N node modules, and the target high-speed transmission module includes N high-speed transmission modules, where N is an integer greater than or equal to 2,
其中,所述目标节点模块与所述目标高速传输模块连接,还包括:Wherein, the target node module is connected to the target high-speed transmission module, and further includes:
对所述N个节点模块中的每个节点模块,确定其选取的通信信道与所述N个节点模块中其他节点模块选取的通信信道是否相同;For each node module in the N node modules, determine whether the selected communication channel is the same as the communication channel selected by other node modules in the N node modules;
若选取的通信信道与所述N个节点模块中其他节点模块选取的通信信道相同,所述无线控制端重新通过所述第一连接向该节点模块发送第二连接开启指令,该节点模块重新选取第二连接对应的通信信道;If the selected communication channel is the same as the communication channel selected by other node modules in the N node modules, the wireless control terminal re-sends the second connection opening command to the node module through the first connection, and the node module re-selects The communication channel corresponding to the second connection;
若选取的通信信道与所述N个节点模块中其他节点模块选取的通信信道不相同,将该节点模块选取的通信信道作为目标通信信道,该节点模块通过所述目标通信信道与对应的高速传输模块连接。If the selected communication channel is different from the communication channel selected by other node modules in the N node modules, the communication channel selected by the node module is used as the target communication channel, and the node module communicates with the corresponding high-speed transmission channel through the target communication channel. Module connection.
作为本发明进一步的改进,所述待传输数据为所述无线控制端向所述目标节点模块发送的数据,As a further improvement of the present invention, the data to be transmitted is the data sent by the wireless control terminal to the target node module,
其中,所述通过所述目标高速传输模块传输所述待传输数据,包括:Wherein, the transmitting the data to be transmitted through the target high-speed transmission module includes:
所述目标高速传输模块向所述目标节点模块发送所述待传输数据;The target high-speed transmission module sends the to-be-transmitted data to the target node module;
待所述目标节点模块接收到所述待传输数据时,所述目标节点模块向所述目标高速传输模块返回确认信息。When the target node module receives the data to be transmitted, the target node module returns confirmation information to the target high-speed transmission module.
作为本发明进一步的改进,所述待传输数据包括多个数据包,所述目标高速传输模块每次向所述目标节点模块发送一个数据包,As a further improvement of the present invention, the data to be transmitted includes multiple data packets, and the target high-speed transmission module sends one data packet to the target node module each time,
其中,所述通过所述目标高速传输模块传输所述待传输数据,还包括:Wherein, the transmitting the data to be transmitted through the target high-speed transmission module further includes:
确定所述待传输数据的多个数据包是否发送完毕;determining whether the multiple data packets of the data to be transmitted have been sent;
若所述待传输数据的多个数据包发送完毕,所述目标高速传输模块停止 向所述目标节点模块发送数据包;If the multiple data packets of the data to be transmitted are sent, the target high-speed transmission module stops sending data packets to the target node module;
若所述待传输数据的多个数据包没有发送完毕,所述目标高速传输模块继续向所述目标节点模块发送数据包,直至所述待传输数据的多个数据包发送完毕。If the multiple data packets of the data to be transmitted have not been sent, the target high-speed transmission module continues to send the data packets to the target node module until the multiple data packets of the to-be-transmitted data are sent.
作为本发明进一步的改进,所述待传输数据为所述目标节点模块向所述无线控制端发送的数据,As a further improvement of the present invention, the data to be transmitted is the data sent by the target node module to the wireless control terminal,
其中,所述通过所述目标高速传输模块传输所述待传输数据,包括:Wherein, the transmitting the data to be transmitted through the target high-speed transmission module includes:
所述目标高速传输模块向所述目标节点模块请求所述待传输数据;The target high-speed transmission module requests the data to be transmitted from the target node module;
所述目标节点模块向所述目标高速传输模块返回所述待传输数据。The target node module returns the to-be-transmitted data to the target high-speed transmission module.
作为本发明进一步的改进,所述目标节点模块向所述目标高速传输模块返回所述待传输数据,包括:As a further improvement of the present invention, the target node module returns the data to be transmitted to the target high-speed transmission module, including:
确定所述目标节点模块是否有所述待传输数据;determining whether the target node module has the data to be transmitted;
若所述目标节点模块有所述待传输数据,所述目标节点模块向所述目标高速传输模块返回确认信息和所述待传输数据;If the target node module has the data to be transmitted, the target node module returns confirmation information and the data to be transmitted to the target high-speed transmission module;
若所述目标节点模块没有所述待传输数据,所述目标节点模块向所述目标高速传输模块返回确认信息和空数据。If the target node module does not have the data to be transmitted, the target node module returns confirmation information and null data to the target high-speed transmission module.
作为本发明进一步的改进,所述待传输数据包括多个数据包,所述目标高速传输模块每次向所述目标节点模块请求一个数据包,As a further improvement of the present invention, the data to be transmitted includes multiple data packets, and the target high-speed transmission module requests one data packet from the target node module each time,
其中,所述通过所述目标高速传输模块传输所述待传输数据,还包括:Wherein, the transmitting the data to be transmitted through the target high-speed transmission module further includes:
确定所述待传输数据的多个数据包是否请求完毕;determining whether multiple data packets of the data to be transmitted have been requested;
若所述待传输数据的多个数据包请求完毕,所述目标高速传输模块停止向所述目标节点模块请求数据包;If the request for multiple data packets of the data to be transmitted is completed, the target high-speed transmission module stops requesting data packets from the target node module;
若所述待传输数据的多个数据包没有请求完毕,所述目标高速传输模块继续向所述目标节点模块请求数据包,直至所述待传输数据的多个数据包请求完毕。If the request for the multiple data packets of the data to be transmitted is not completed, the target high-speed transmission module continues to request the data packets from the target node module until the multiple data packets of the to-be-transmitted data are requested.
作为本发明进一步的改进,通过所述目标高速传输模块传输所述待传输数据,还包括:As a further improvement of the present invention, the data to be transmitted is transmitted through the target high-speed transmission module, further comprising:
确定所述目标节点模块没有向所述目标高速传输模块返回确认信息的次 数或所述目标节点模块没有向所述目标高速传输模块返回所述待传输数据的次数是否大于预设阈值;Determine whether the number of times the target node module does not return confirmation information to the target high-speed transmission module or the number of times the target node module does not return the data to be transmitted to the target high-speed transmission module is greater than a preset threshold;
在没有返回确认信息的次数或没有返回待传输数据的次数大于预设阈值时,所述无线控制端重新通过所述第一连接向所述目标节点模块发送第二连接开启指令。When the number of times that no confirmation information is returned or the number of times that no data to be transmitted is returned is greater than a preset threshold, the wireless control terminal re-sends a second connection opening instruction to the target node module through the first connection.
作为本发明进一步的改进,在所述目标节点模块收到所述第二连接开启指令时,所述目标节点模块开启对应的定时器,As a further improvement of the present invention, when the target node module receives the second connection opening instruction, the target node module starts the corresponding timer,
其中,所述通过所述目标高速传输模块传输所述待传输数据,还包括:Wherein, the transmitting the data to be transmitted through the target high-speed transmission module further includes:
待所述待传输数据传输完毕,所述目标节点模块对应的定时器清零。After the transmission of the data to be transmitted is completed, the timer corresponding to the target node module is cleared.
作为本发明进一步的改进,所述目标节点模块对应的定时器设置预设时间,As a further improvement of the present invention, the timer corresponding to the target node module sets a preset time,
其中,所述方法还包括:Wherein, the method also includes:
确定所述目标节点模块对应的定时器的时间是否大于预设时间;determining whether the time of the timer corresponding to the target node module is greater than a preset time;
在所述目标节点模块对应的定时器的时间大于预设时间时,所述目标节点模块关闭所述第二连接。When the time of the timer corresponding to the target node module is greater than a preset time, the target node module closes the second connection.
本发明还提供了一种高速数据传输系统,所述系统包括:The present invention also provides a high-speed data transmission system, the system includes:
数据确定模块,用于确定目标节点模块、待传输数据以及所述目标节点模块对应的目标高速传输模块,其中,所述待传输数据为所述目标节点模块与无线控制端之间传输的数据;a data determination module, configured to determine a target node module, data to be transmitted, and a target high-speed transmission module corresponding to the target node module, wherein the data to be transmitted is the data transmitted between the target node module and the wireless control terminal;
连接传输模块,用于所述目标节点模块与所述目标高速传输模块连接,通过所述目标高速传输模块传输所述待传输数据。A connection transmission module is used to connect the target node module with the target high-speed transmission module, and transmit the to-be-transmitted data through the target high-speed transmission module.
作为本发明进一步的改进,所述系统包括多个高速传输模块和多个节点模块,As a further improvement of the present invention, the system includes multiple high-speed transmission modules and multiple node modules,
所述数据确定模块在确定所述目标节点模块对应的目标高速传输模块时,包括:When the data determination module determines the target high-speed transmission module corresponding to the target node module, it includes:
若所述目标节点模块为一个节点模块,从多个所述高速传输模块中随机选取一个高速传输模块作为所述目标高速传输模块;If the target node module is a node module, randomly select a high-speed transmission module from a plurality of the high-speed transmission modules as the target high-speed transmission module;
若所述目标节点模块为N个节点模块,从多个所述高速传输模块中随机 选取N个高速传输模块作为所述目标高速传输模块,其中,N为大于或等于2的整数。If the target node module is N node modules, randomly select N high-speed transmission modules from a plurality of the high-speed transmission modules as the target high-speed transmission module, wherein N is an integer greater than or equal to 2.
作为本发明进一步的改进,所述连接传输模块在实现所述目标节点模块与所述目标高速传输模块连接时,包括:As a further improvement of the present invention, when the connection transmission module realizes the connection between the target node module and the target high-speed transmission module, it includes:
所述无线控制端通过第一连接向所述目标节点模块发送第二连接开启指令;The wireless control terminal sends a second connection opening instruction to the target node module through the first connection;
待所述目标节点模块收到所述第二连接开启指令时,所述目标节点模块选取所述第二连接对应的通信信道并开启所述第二连接,所述目标节点模块选取将选取的通信信道通过所述第一连接发送给所述无线控制端,所述目标高速传输模块与所述目标节点模块通过所述通信信道连接。When the target node module receives the second connection opening instruction, the target node module selects the communication channel corresponding to the second connection and opens the second connection, and the target node module selects the communication channel to be selected. The channel is sent to the wireless control terminal through the first connection, and the target high-speed transmission module and the target node module are connected through the communication channel.
作为本发明进一步的改进,所述目标节点模块包括N个节点模块,所述目标高速传输模块包括N个高速传输模块,其中,N为大于或等于2的整数,As a further improvement of the present invention, the target node module includes N node modules, and the target high-speed transmission module includes N high-speed transmission modules, where N is an integer greater than or equal to 2,
其中,所述连接传输模块在实现所述目标节点模块与所述目标高速传输模块连接时,还包括:Wherein, when the connection transmission module realizes the connection between the target node module and the target high-speed transmission module, it further includes:
对所述N个节点模块中的每个节点模块,确定其选取的通信信道与所述N个节点模块中其他节点模块选取的通信信道是否相同;For each node module in the N node modules, determine whether the selected communication channel is the same as the communication channel selected by other node modules in the N node modules;
若选取的通信信道与所述N个节点模块中其他节点模块选取的通信信道相同,所述无线控制端重新通过所述第一连接向该节点模块发送第二连接开启指令,该节点模块重新选取第二连接对应的通信信道;If the selected communication channel is the same as the communication channel selected by other node modules in the N node modules, the wireless control terminal re-sends the second connection opening command to the node module through the first connection, and the node module re-selects The communication channel corresponding to the second connection;
若选取的通信信道与所述N个节点模块中其他节点模块选取的通信信道不相同,将该节点模块选取的通信信道作为目标通信信道,该节点模块通过所述目标通信信道与对应的高速传输模块连接。If the selected communication channel is different from the communication channel selected by other node modules in the N node modules, the communication channel selected by the node module is used as the target communication channel, and the node module communicates with the corresponding high-speed transmission channel through the target communication channel. Module connection.
作为本发明进一步的改进,所述待传输数据为所述无线控制端向所述目标节点模块发送的数据,As a further improvement of the present invention, the data to be transmitted is the data sent by the wireless control terminal to the target node module,
其中,所述连接传输模块在实现所述目标高速传输模块传输所述待传输数据时,包括:Wherein, when the connection transmission module realizes that the target high-speed transmission module transmits the to-be-transmitted data, it includes:
所述目标高速传输模块向所述目标节点模块发送所述待传输数据;The target high-speed transmission module sends the to-be-transmitted data to the target node module;
待所述目标节点模块接收到所述待传输数据时,所述目标节点模块向所 述目标高速传输模块返回确认信息。When the target node module receives the data to be transmitted, the target node module returns confirmation information to the target high-speed transmission module.
作为本发明进一步的改进,所述待传输数据包括多个数据包,所述目标高速传输模块每次向所述目标节点模块发送一个数据包,As a further improvement of the present invention, the data to be transmitted includes multiple data packets, and the target high-speed transmission module sends one data packet to the target node module each time,
其中,所述连接传输模块在实现所述目标高速传输模块传输所述待传输数据时,还包括:Wherein, when the connection transmission module realizes that the target high-speed transmission module transmits the to-be-transmitted data, it further includes:
确定所述待传输数据的多个数据包是否发送完毕;determining whether the multiple data packets of the data to be transmitted have been sent;
若所述待传输数据的多个数据包发送完毕,所述目标高速传输模块停止向所述目标节点模块发送数据包;If the multiple data packets of the data to be transmitted are sent, the target high-speed transmission module stops sending data packets to the target node module;
若所述待传输数据的多个数据包没有发送完毕,所述目标高速传输模块继续向所述目标节点模块发送数据包,直至所述待传输数据的多个数据包发送完毕。If the multiple data packets of the data to be transmitted have not been sent, the target high-speed transmission module continues to send the data packets to the target node module until the multiple data packets of the to-be-transmitted data are sent.
作为本发明进一步的改进,所述待传输数据为所述目标节点模块向所述无线控制端发送的数据,As a further improvement of the present invention, the data to be transmitted is the data sent by the target node module to the wireless control terminal,
其中,所述连接传输模块在实现所述目标高速传输模块传输所述待传输数据时,包括:Wherein, when the connection transmission module realizes that the target high-speed transmission module transmits the to-be-transmitted data, it includes:
所述目标高速传输模块向所述目标节点模块请求所述待传输数据;The target high-speed transmission module requests the data to be transmitted from the target node module;
所述目标节点模块向所述目标高速传输模块返回所述待传输数据。The target node module returns the to-be-transmitted data to the target high-speed transmission module.
作为本发明进一步的改进,所述连接传输模块在所述目标节点模块向所述目标高速传输模块返回所述待传输数据时,包括:As a further improvement of the present invention, when the target node module returns the data to be transmitted to the target high-speed transmission module, the connection transmission module includes:
确定所述目标节点模块是否有所述待传输数据;determining whether the target node module has the data to be transmitted;
若所述目标节点模块有所述待传输数据,所述目标节点模块向所述目标高速传输模块返回确认信息和所述待传输数据;If the target node module has the data to be transmitted, the target node module returns confirmation information and the data to be transmitted to the target high-speed transmission module;
若所述目标节点模块没有所述待传输数据,所述目标节点模块向所述目标高速传输模块返回确认信息和空数据。If the target node module does not have the data to be transmitted, the target node module returns confirmation information and null data to the target high-speed transmission module.
作为本发明进一步的改进,所述待传输数据包括多个数据包,所述目标高速传输模块每次向所述目标节点模块请求一个数据包,As a further improvement of the present invention, the data to be transmitted includes multiple data packets, and the target high-speed transmission module requests one data packet from the target node module each time,
其中,所述连接传输模块在所述目标高速传输模块传输所述待传输数据时,还包括:Wherein, when the target high-speed transmission module transmits the data to be transmitted, the connection transmission module further includes:
确定所述待传输数据的多个数据包是否请求完毕;determining whether multiple data packets of the data to be transmitted have been requested;
若所述待传输数据的多个数据包请求完毕,所述目标高速传输模块停止向所述目标节点模块请求数据包;If the request for multiple data packets of the data to be transmitted is completed, the target high-speed transmission module stops requesting data packets from the target node module;
若所述待传输数据的多个数据包没有请求完毕,所述目标高速传输模块继续向所述目标节点模块请求数据包,直至所述待传输数据的多个数据包请求完毕。If the request for the multiple data packets of the data to be transmitted is not completed, the target high-speed transmission module continues to request the data packets from the target node module until the multiple data packets of the to-be-transmitted data are requested.
作为本发明进一步的改进,所述连接传输模块在实现所述目标高速传输模块传输所述待传输数据,还包括:As a further improvement of the present invention, when the connection transmission module realizes that the target high-speed transmission module transmits the data to be transmitted, it also includes:
确定所述目标节点模块没有向所述目标高速传输模块返回确认信息的次数或所述目标节点模块没有向所述目标高速传输模块返回所述待传输数据的次数是否大于预设阈值;Determine whether the number of times the target node module does not return confirmation information to the target high-speed transmission module or the number of times the target node module does not return the data to be transmitted to the target high-speed transmission module is greater than a preset threshold;
在没有返回确认信息的次数或没有返回待传输数据的次数大于预设阈值时,所述无线控制端重新通过所述第一连接向所述目标节点模块发送第二连接开启指令。When the number of times that no confirmation information is returned or the number of times that no data to be transmitted is returned is greater than a preset threshold, the wireless control terminal re-sends a second connection opening instruction to the target node module through the first connection.
作为本发明进一步的改进,在所述目标节点模块收到所述第二连接开启指令时,所述目标节点模块开启对应的定时器,As a further improvement of the present invention, when the target node module receives the second connection opening instruction, the target node module starts the corresponding timer,
所述连接传输模块在实现所述目标高速传输模块传输所述待传输数据,还包括:When the connection transmission module transmits the data to be transmitted by the target high-speed transmission module, it also includes:
待所述待传输数据传输完毕,所述目标节点模块对应的定时器清零。After the transmission of the data to be transmitted is completed, the timer corresponding to the target node module is cleared.
作为本发明进一步的改进,所述目标节点模块对应的定时器设置预设时间,As a further improvement of the present invention, the timer corresponding to the target node module sets a preset time,
其中,所述连接传输模块还用于:Wherein, the connection transmission module is also used for:
确定所述目标节点模块对应的定时器的时间是否大于预设时间;determining whether the time of the timer corresponding to the target node module is greater than a preset time;
在所述目标节点模块对应的定时器的时间大于预设时间时,所述目标节点模块关闭所述第二连接。When the time of the timer corresponding to the target node module is greater than a preset time, the target node module closes the second connection.
本发明还提供了一种电子设备,包括存储器和处理器,其特征在于,所述存储器用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令被处理器执行以实现所述的方法。The present invention also provides an electronic device including a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to realize the method described.
本发明还提供了一种计算机可读存储介质,其上存储有计算机程序,其 特征在于,所述计算机程序被处理器执行以实现所述的方法。The present invention also provides a computer-readable storage medium on which a computer program is stored, characterized in that the computer program is executed by a processor to implement the method.
本发明的有益效果为:The beneficial effects of the present invention are:
在一般情况下通过第一连接维持低功耗、低时延、高可靠的通信连接,单个基站模块可以和多个节点模块同时保持连接,并且可以保持传输的实时性。在节点模块和无线控制端之间需要传输高速数据时,才开启第二连接进行高速数据传输,并能实现多个节点模块在同一时刻同时传输高速数据。In general, a communication connection with low power consumption, low latency, and high reliability is maintained through the first connection. A single base station module can be connected to multiple node modules at the same time, and the real-time transmission can be maintained. When high-speed data needs to be transmitted between the node module and the wireless control terminal, the second connection is opened for high-speed data transmission, and multiple node modules can simultaneously transmit high-speed data at the same time.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that are required in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1为本发明一示例性实施例所述的一种高速数据传输方法的流程示意图;FIG. 1 is a schematic flowchart of a high-speed data transmission method according to an exemplary embodiment of the present invention;
图2为本发明一示例性实施例所述的一种网关装置的示意图;FIG. 2 is a schematic diagram of a gateway device according to an exemplary embodiment of the present invention;
图3为本发明一示例性实施例所述的节点模块向高速传输模块发送高速数据的流程示意图;3 is a schematic flowchart of a node module sending high-speed data to a high-speed transmission module according to an exemplary embodiment of the present invention;
图4为本发明一示例性实施例所述的节点模块从高速传输模块接收高速数据的流程示意图;4 is a schematic flowchart of a node module receiving high-speed data from a high-speed transmission module according to an exemplary embodiment of the present invention;
图5为本发明实施例1-3所述的高速数据传输方法的流程示意图;5 is a schematic flowchart of the high-speed data transmission method according to Embodiments 1-3 of the present invention;
图6为本发明实施例4-6所述的高速数据传输方法的流程示意图。FIG. 6 is a schematic flowchart of the high-speed data transmission method according to Embodiments 4-6 of the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
需要说明,若本发明实施例中有涉及方向性指示(诸如上、下、左、右、前、后……),则该方向性指示仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该 方向性指示也相应地随之改变。It should be noted that if there are directional indications (such as up, down, left, right, front, back, etc.) involved in the embodiments of the present invention, the directional indications are only used to explain a certain posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly.
另外,在本发明的描述中,所用术语仅用于说明目的,并非旨在限制本发明的范围。术语“包括”和/或“包含”用于指定所述元件、步骤、操作和/或组件的存在,但并不排除存在或添加一个或多个其他元件、步骤、操作和/或组件的情况。术语“第一”、“第二”等可能用于描述各种元件,不代表顺序,且不对这些元件起限定作用。此外,在本发明的描述中,除非另有说明,“多个”的含义是两个及两个以上。这些术语仅用于区分一个元素和另一个元素。结合以下附图,这些和/或其他方面变得显而易见,并且,本领域普通技术人员更容易理解关于本发明所述实施例的说明。附图仅出于说明的目的用来描绘本发明所述实施例。本领域技术人员将很容易地从以下说明中认识到,在不背离本发明所述原理的情况下,可以采用本发明所示结构和方法的替代实施例。Also, in the description of the present invention, the terminology used is for the purpose of illustration only, and is not intended to limit the scope of the present invention. The terms "comprising" and/or "comprising" are used to designate the presence of stated elements, steps, operations and/or components, but do not preclude the presence or addition of one or more other elements, steps, operations and/or components . The terms "first," "second," and the like, may be used to describe various elements, do not represent an order, and do not limit the elements. In addition, in the description of the present invention, unless otherwise specified, "plurality" means two or more. These terms are only used to distinguish one element from another. These and/or other aspects will become apparent, and the description of the described embodiments of the present invention, will be more readily understood by those of ordinary skill in the art in conjunction with the following drawings. The drawings are used to depict the described embodiments of the invention for purposes of illustration only. Those skilled in the art will readily recognize from the following description that alternative embodiments of the structures and methods of the present invention may be employed without departing from the principles described herein.
本发明实施例所述的一种高速数据传输方法,如图1所示,所述方法包括:A high-speed data transmission method according to an embodiment of the present invention, as shown in FIG. 1 , the method includes:
S1,确定目标节点模块及待传输数据;S1, determine the target node module and the data to be transmitted;
S2,确定目标节点模块对应的目标高速传输模块;S2, determine the target high-speed transmission module corresponding to the target node module;
S3,目标节点模块与目标高速传输模块连接,通过目标高速传输模块传输待传输数据。S3, the target node module is connected to the target high-speed transmission module, and the data to be transmitted is transmitted through the target high-speed transmission module.
其中,所述方法通过一种网关装置来实现高速数据(短时间内大量数据)的传输。如图2所示,所述网关装置包括一个基站模块和至少一个高速传输模块,还包括一个无线控制端,该无线控制端可以载有控制的软件程序,对基站模块和高速传输模块进行控制,高速传输模块和无线控制端连接,高速传输模块发送和接收的数据均通过无线控制端,实现无线控制端与多个节点模块间的数据传输。其中,待传输数据可以为无线控制端向目标节点模块发送的数据,可以为目标节点模块向无线控制端发送的数据。Wherein, the method realizes the transmission of high-speed data (a large amount of data in a short period of time) through a gateway device. As shown in Figure 2, the gateway device includes a base station module and at least one high-speed transmission module, and also includes a wireless control terminal, which can carry a control software program to control the base station module and the high-speed transmission module, The high-speed transmission module is connected with the wireless control terminal, and the data sent and received by the high-speed transmission module pass through the wireless control terminal to realize data transmission between the wireless control terminal and multiple node modules. The data to be transmitted may be data sent by the wireless control terminal to the target node module, or may be data sent by the target node module to the wireless control terminal.
在一种可选的实施方式中,包括多个高速传输模块和多个节点模块,其中,确定目标节点模块对应的目标高速传输模块,包括:In an optional embodiment, it includes multiple high-speed transmission modules and multiple node modules, wherein determining the target high-speed transmission module corresponding to the target node module includes:
若目标节点模块为一个节点模块,从多个高速传输模块中随机选取一个 高速传输模块作为目标高速传输模块;If the target node module is a node module, randomly select a high-speed transmission module from multiple high-speed transmission modules as the target high-speed transmission module;
若目标节点模块为N个节点模块,从多个高速传输模块中随机选取N个高速传输模块作为目标高速传输模块,其中,N为大于或等于2的整数。If the target node modules are N node modules, N high-speed transmission modules are randomly selected from the plurality of high-speed transmission modules as the target high-speed transmission modules, where N is an integer greater than or equal to 2.
其中,一个高速传输模块可以对应服务多个节点模块,由于高速传输模块与多个节点模块之间的传输都是由高速传输模块发起,多个节点模块之间不会出现高速数据传输冲突。还可以包含多个高速传输模块,通过多个高速传输模块可以提高传输的容量,可以实现多个节点模块与无线控制端之间数据的同时传输。例如,可以通过无线控制端来控制选取各节点模块对应的高速传输模块,确保多个节点模块间进行并发高速通信不会产生冲突。Among them, one high-speed transmission module can correspond to serving multiple node modules. Since the transmission between the high-speed transmission module and multiple node modules is initiated by the high-speed transmission module, there will be no high-speed data transmission conflict between multiple node modules. It can also include multiple high-speed transmission modules, through which the transmission capacity can be increased, and the simultaneous transmission of data between multiple node modules and the wireless control terminal can be realized. For example, the wireless control terminal can control the selection of the high-speed transmission module corresponding to each node module to ensure that concurrent high-speed communication between multiple node modules will not cause conflicts.
举例说明,例如,无线控制端需要向一个节点模块A发送数据,例如通过无线控制端随机选取10个高速传输模块中的高速传输模块GA。节点模块A为目标节点模块,高速传输模块GA为对应的目标高速传输模块,高速传输模块GA和节点模块A进行通信连接。例如,无线控制端需要同时向三个节点模块A、B、C发送数据,例如通过无线控制端随机选取20个高速传输模块中的三个高速传输模块GA、GB、GC。节点模块A、B、C为目标节点模块,高速传输模块GA、GB、GC为对应的目标高速传输模块。其中,高速传输模块GA用于和节点模块A进行通信连接,高速传输模块GB和节点模块B进行通信连接,高速传输模块GC用于和节点模块C进行通信连接。For example, for example, the wireless control terminal needs to send data to a node module A, for example, the wireless control terminal randomly selects a high-speed transmission module GA among 10 high-speed transmission modules. The node module A is a target node module, the high-speed transmission module GA is a corresponding target high-speed transmission module, and the high-speed transmission module GA and the node module A are in communication connection. For example, the wireless control terminal needs to send data to three node modules A, B, and C at the same time. For example, the wireless control terminal randomly selects three high-speed transmission modules GA, GB, and GC among 20 high-speed transmission modules. Node modules A, B, and C are target node modules, and high-speed transmission modules GA, GB, and GC are corresponding target high-speed transmission modules. The high-speed transmission module GA is used for communication connection with the node module A, the high-speed transmission module GB is used for communication connection with the node module B, and the high-speed transmission module GC is used for communication connection with the node module C.
在一种可选的实施方式中,目标节点模块与目标高速传输模块连接,包括:In an optional implementation manner, the target node module is connected to the target high-speed transmission module, including:
无线控制端通过第一连接向目标节点模块发送第二连接开启指令;The wireless control terminal sends a second connection opening instruction to the target node module through the first connection;
待目标节点模块收到第二连接开启指令时,目标节点模块选取第二连接对应的通信信道并开启第二连接,目标节点模块将选取的第二连接对应的通信信道通过第一连接发送给无线控制端,目标高速传输模块与目标节点模块通过通信信道连接。When the target node module receives the second connection opening instruction, the target node module selects the communication channel corresponding to the second connection and opens the second connection, and the target node module sends the selected communication channel corresponding to the second connection to the wireless communication channel through the first connection. At the control end, the target high-speed transmission module is connected with the target node module through a communication channel.
其中,基站模块与各节点模块之间是通过第一连接来实现双向通信连接,第一连接可以理解为一种低功耗、低时延、高可靠的通信连接,实现无线控制端与各节点模块短时间内少量数据的传输(低速通信)。第一连接是一种开 销低的连接方式,单个基站模块可以同时和多个节点模块保持连接,并可以保持数据传输的实时性。例如,可以通过自适应跳频技术和时分多址技术实现基站模块与各节点模块之间的第一连接。第一连接可运行在非授权频段,例如2.4GHz,可以有效保证传输的可靠性。Among them, the two-way communication connection between the base station module and each node module is realized through the first connection. The first connection can be understood as a low-power, low-latency, high-reliability communication connection, which realizes the wireless control terminal and each node. The module transmits a small amount of data in a short period of time (low-speed communication). The first connection is a low-cost connection mode, a single base station module can maintain connection with multiple node modules at the same time, and can maintain real-time data transmission. For example, the first connection between the base station module and each node module can be implemented by adaptive frequency hopping technology and time division multiple access technology. The first connection can operate in an unlicensed frequency band, such as 2.4GHz, which can effectively ensure the reliability of transmission.
其中,各高速传输模块与各节点模块之间通过第二连接实现双向通信连接,第二连接可以理解为一种高速通信连接,实现无线控制端与各节点模块短时间内大量数据的传输(高速通信)。第二连接默认处于关闭状态,对于节点模块来说,第二连接是一种被动连接,例如可以通过无线控制端控制第二连接的开启,节点模块无法主动通过第二连接外发数据。Among them, the two-way communication connection is realized between each high-speed transmission module and each node module through a second connection, and the second connection can be understood as a high-speed communication connection, which realizes the transmission of a large amount of data between the wireless control terminal and each node module in a short time (high-speed communication). communication). The second connection is closed by default. For the node module, the second connection is a passive connection. For example, the opening of the second connection can be controlled through the wireless control terminal, and the node module cannot actively send data through the second connection.
如图3所示,当节点模块需要通过第二连接发送高速数据时,需要通过节点模块对应的高速传输模块向节点模块请求数据,节点模块将数据返回给高速传输模块。As shown in FIG. 3 , when the node module needs to send high-speed data through the second connection, it needs to request data from the node module through the high-speed transmission module corresponding to the node module, and the node module returns the data to the high-speed transmission module.
如图4所示,当节点模块需要通过第二连接接收高速数据时,需要通过节点模块对应的高速传输模块向节点模块发送数据,待节点模块收到数据后向高速传输模块返回确认信息(ACK)。As shown in Figure 4, when the node module needs to receive high-speed data through the second connection, it needs to send data to the node module through the high-speed transmission module corresponding to the node module. After the node module receives the data, it returns an acknowledgment message (ACK ).
第二连接的数据传输通过高速传输模块发起,节点模块无法主动发起,可以有效解决网络碰撞的问题。第二连接例如可运行在2.4GHz,该频段可以有10到40个高速通信信道(无线信道)可用。通信信道例如可以通过自适应跳频技术和时分多址技术来提供。各节点模块分别使用一个通信信道,通过节点模块分配到的通信信道来进行高速数据的接收和发送,可以使多个节点模块在同一时刻同时传输高速数据(大量数据),且不会发生无线冲突,造成传输失败。The data transmission of the second connection is initiated by the high-speed transmission module, and the node module cannot initiate it actively, which can effectively solve the problem of network collision. The second connection may, for example, operate at 2.4 GHz, which may have 10 to 40 high-speed communication channels (wireless channels) available. Communication channels may be provided, for example, by adaptive frequency hopping techniques and time division multiple access techniques. Each node module uses a communication channel respectively, and receives and sends high-speed data through the communication channel allocated by the node module, so that multiple node modules can transmit high-speed data (a large amount of data) at the same time at the same time, and there will be no wireless conflict. , causing the transmission to fail.
可以理解的是,当待传输数据是目标节点模块发送至无线控制端时,目标节点模块需要先通过第一连接向无线控制端发送数据读取指令,待无线控制端收到目标节点模块的数据读取指令后,无线控制端再通过第一连接向目标节点模块发送第二连接开启指令。It can be understood that when the data to be transmitted is sent by the target node module to the wireless control terminal, the target node module needs to first send a data read instruction to the wireless control terminal through the first connection, and wait for the wireless control terminal to receive the data of the target node module. After reading the instruction, the wireless control terminal sends the second connection opening instruction to the target node module through the first connection.
在一种可选的实施方式中,目标节点模块包括N个节点模块,目标高速传输模块包括N个高速传输模块,其中,N为大于或等于2的整数,其中, 目标节点模块与目标高速传输模块连接,还包括:In an optional implementation manner, the target node module includes N node modules, and the target high-speed transmission module includes N high-speed transmission modules, where N is an integer greater than or equal to 2, wherein the target node module and the target high-speed transmission Module connections, which also include:
对N个节点模块中的每个节点模块,确定其选取的通信信道与N个节点模块中其他节点模块选取的通信信道是否相同;For each node module in the N node modules, determine whether the selected communication channel is the same as the communication channel selected by other node modules in the N node modules;
若选取的通信信道与N个节点模块中其他节点模块选取的通信信道相同,无线控制端重新通过第一连接向该节点模块发送第二连接开启指令,该节点模块重新选取第二连接对应的通信信道;If the selected communication channel is the same as the communication channel selected by other node modules in the N node modules, the wireless control terminal re-sends the second connection opening instruction to the node module through the first connection, and the node module re-selects the communication corresponding to the second connection channel;
若选取的通信信道与N个节点模块中其他节点模块选取的通信信道不相同,将该节点模块选取的通信信道作为目标通信信道,该节点模块通过目标通信信道与对应的高速传输模块连接。If the selected communication channel is different from the communication channel selected by other node modules in the N node modules, the communication channel selected by the node module is used as the target communication channel, and the node module is connected to the corresponding high-speed transmission module through the target communication channel.
如前述所述,第二连接运行的频段具有多个通信信道,在实现多个节点模块和多个高速传输模块之间的连接时,例如可以通过无线控制端来控制多个节点模块与多个高速传输模块之间的连接,在实现连接的过程中,需无线控制端需确认各节点模块是选取的通信信道与其他节点模块选取的通信信道是否相同,以免造成通信信道冲突,导致数据传输失败。As mentioned above, the frequency band in which the second connection operates has multiple communication channels. When implementing the connection between multiple node modules and multiple high-speed transmission modules, for example, the wireless control terminal can control multiple node modules and multiple For the connection between high-speed transmission modules, in the process of realizing the connection, the wireless control terminal needs to confirm whether the communication channel selected by each node module is the same as that selected by other node modules, so as to avoid communication channel conflict and data transmission failure. .
举例说明,高速传输模块GA用于和节点模块A进行通信连接,高速传输模块GB和节点模块B进行通信连接,高速传输模块GC用于和节点模块C进行通信连接。当无线控制端确定节点模块A选取的通信信道与节点模块B选取的通信信道或节点模块C选取的通信信道相同时,无线控制端需要重新向节点模块A发送第二连接开启指令,节点模块A在收到第二连接开启指令后,重新选取通信信道。For example, the high-speed transmission module GA is used for communication connection with the node module A, the high-speed transmission module GB is used for communication connection with the node module B, and the high-speed transmission module GC is used for communication connection with the node module C. When the wireless control terminal determines that the communication channel selected by the node module A is the same as the communication channel selected by the node module B or the communication channel selected by the node module C, the wireless control terminal needs to re-send the second connection opening command to the node module A. After receiving the second connection opening instruction, the communication channel is reselected.
在一种可选的实施方式中,待传输数据为无线控制端向目标节点模块发送的数据,其中,通过目标高速传输模块传输待传输数据,包括:In an optional implementation manner, the data to be transmitted is the data sent by the wireless control terminal to the target node module, wherein the transmission of the data to be transmitted through the target high-speed transmission module includes:
目标高速传输模块向目标节点模块发送待传输数据;The target high-speed transmission module sends the data to be transmitted to the target node module;
待目标节点模块接收到待传输数据时,目标节点模块向目标高速传输模块返回确认信息。When the target node module receives the data to be transmitted, the target node module returns confirmation information to the target high-speed transmission module.
在一种可选的实施方式中,待传输数据包括多个数据包,目标高速传输模块每次向目标节点模块发送一个数据包,其中,通过目标高速传输模块传输待传输数据,还包括:In an optional implementation manner, the data to be transmitted includes a plurality of data packets, and the target high-speed transmission module sends one data packet to the target node module at a time, wherein the data to be transmitted is transmitted through the target high-speed transmission module, and further includes:
确定待传输数据的多个数据包是否发送完毕;Determine whether multiple data packets of data to be transmitted have been sent;
若待传输数据的多个数据包发送完毕,目标高速传输模块停止向目标节点模块发送数据包;If the transmission of multiple data packets of the data to be transmitted is completed, the target high-speed transmission module stops sending data packets to the target node module;
若待传输数据的多个数据包没有发送完毕,目标高速传输模块继续向目标节点模块发送数据包,直至待传输数据的多个数据包发送完毕。If the multiple data packets of the data to be transmitted have not been sent, the target high-speed transmission module continues to send the data packets to the target node module until the multiple data packets of the to-be-transmitted data are sent.
如前述所述,高速传输模块通过节点模块分配到的通信信道向节点模块发送数据,在节点模块接收到传输的数据时,需要向高速传输模块返回确认信息(ACK),告知高速传输模块已经收到发送的数据,该高速传输模块在收到节点模块返回的ACK后,会继续发送下一包数据,直至全部数据包发送完毕。可以理解的是,无线控制端与高速传输模块之间连接,目标节点模块向目标高速传输模块返回确认信息后,该确认信息被传输至无线控制端。无线控制端在收到确认信息后,需要判断是否还有剩余数据包,若有,则通过高速传输模块继续发送数据包,若无,则控制高速传输模块停止发送数据包。As mentioned above, the high-speed transmission module sends data to the node module through the communication channel allocated by the node module. When the node module receives the transmitted data, it needs to return an acknowledgment message (ACK) to the high-speed transmission module to inform the high-speed transmission module that the data has been received. To the sent data, after receiving the ACK returned by the node module, the high-speed transmission module will continue to send the next packet of data until all data packets are sent. It can be understood that the wireless control terminal is connected to the high-speed transmission module, and after the target node module returns confirmation information to the target high-speed transmission module, the confirmation information is transmitted to the wireless control terminal. After receiving the acknowledgment information, the wireless control terminal needs to determine whether there are any remaining data packets. If so, it will continue to send data packets through the high-speed transmission module. If not, it will control the high-speed transmission module to stop sending data packets.
在另一种可选的实施方式中,通过目标高速传输模块传输待传输数据,还包括:In another optional implementation manner, the data to be transmitted is transmitted through the target high-speed transmission module, further comprising:
确定目标节点模块没有向所述目标高速传输模块返回确认信息的次数是否大于预设阈值;Determine whether the number of times the target node module does not return confirmation information to the target high-speed transmission module is greater than a preset threshold;
在目标节点模块没有向所述目标高速传输模块返回确认信息的次数大于预设阈值时,无线控制端重新通过第一连接向目标节点模块发送第二连接开启指令。When the number of times that the target node module does not return confirmation information to the target high-speed transmission module is greater than the preset threshold, the wireless control terminal re-sends the second connection opening instruction to the target node module through the first connection.
其中,在传输数据的过程中,例如由于各节点模块选取的通信信道冲突等,可能会使第二连接连接失败,导致数据传输失败。例如,无线控制端4次没有收到目标节点模块返回的确认信息时,无线控制端需要重新发起第二连接开启指令,本发明可以根据节点模块和高速传输模块的数量来对预设阈值进行设置。In the process of data transmission, for example, due to the conflict of communication channels selected by each node module, the second connection may fail to connect, resulting in data transmission failure. For example, when the wireless control terminal does not receive the confirmation information returned by the target node module for four times, the wireless control terminal needs to re-initiate the second connection opening command. The present invention can set the preset threshold according to the number of node modules and high-speed transmission modules. .
在一种可选的实施方式中,待传输数据为目标节点模块向无线控制端发送的数据,其中,通过目标高速传输模块传输待传输数据,包括:In an optional implementation manner, the data to be transmitted is the data sent by the target node module to the wireless control terminal, wherein the transmission of the data to be transmitted through the target high-speed transmission module includes:
目标高速传输模块向目标节点模块请求待传输数据;The target high-speed transmission module requests data to be transmitted from the target node module;
目标节点模块向目标高速传输模块返回待传输数据。The target node module returns the data to be transmitted to the target high-speed transmission module.
在一种可选的实施方式中,目标节点模块向目标高速传输模块返回待传输数据,包括:In an optional implementation manner, the target node module returns data to be transmitted to the target high-speed transmission module, including:
确定目标节点模块是否有待传输数据;Determine whether the target node module has data to be transmitted;
若目标节点模块有待传输数据,目标节点模块向目标高速传输模块返回确认信息和待传输数据;If the target node module has data to be transmitted, the target node module returns confirmation information and the data to be transmitted to the target high-speed transmission module;
若目标节点模块没有待传输数据,目标节点模块向目标高速传输模块返回确认信息和空数据。If the target node module has no data to be transmitted, the target node module returns confirmation information and empty data to the target high-speed transmission module.
可以理解的是,当目标节点模块向目标高速传输模块返回空数据后,无线控制端接收到该空数据后,可认定待传输数据发送完毕,无线控制端无需通过目标高速传输模块向节点模块请求数据。It can be understood that after the target node module returns empty data to the target high-speed transmission module, after the wireless control terminal receives the empty data, it can determine that the transmission of the data to be transmitted is completed, and the wireless control terminal does not need to request the node module through the target high-speed transmission module. data.
在一种可选的实施方式中,待传输数据包括多个数据包,目标高速传输模块每次向目标节点模块请求一个数据包,In an optional implementation manner, the data to be transmitted includes multiple data packets, and the target high-speed transmission module requests one data packet from the target node module each time,
其中,通过目标高速传输模块传输待传输数据,还包括:Among them, the data to be transmitted is transmitted through the target high-speed transmission module, and also includes:
确定待传输数据的多个数据包是否请求完毕;Determine whether multiple data packets of data to be transmitted have been requested;
若待传输数据的多个数据包请求完毕,目标高速传输模块停止向目标节点模块请求数据包;If the request for multiple data packets of the data to be transmitted is completed, the target high-speed transmission module stops requesting data packets from the target node module;
若待传输数据的多个数据包没有请求完毕,目标高速传输模块继续向目标节点模块请求数据包,直至待传输数据的多个数据包请求完毕。If the multiple data packets of the data to be transmitted have not been requested, the target high-speed transmission module continues to request the data packets from the target node module until the multiple data packets of the to-be-transmitted data are requested.
如前述所述,节点模块无法直接向外发送数据,高速传输模块通过节点模块分配到的通信信道向节点模块请求数据,节点模块再向高速传输模块返回数据。高速传输模块接收到节点模块返回的数据后,会继续向节点模块请求下一包数据,直至节点模块没有需要返回的数据包。由于每次是高速传输模块请求数据,在返回数据时,节点模块需向高速传输模块一并返回确认信息,告知高速传输模块以收到请求信息。As mentioned above, the node module cannot directly send data to the outside, the high-speed transmission module requests data from the node module through the communication channel allocated by the node module, and the node module returns data to the high-speed transmission module. After the high-speed transmission module receives the data returned by the node module, it will continue to request the next packet of data from the node module until the node module has no data packets to return. Since the high-speed transmission module requests data each time, when returning data, the node module needs to return confirmation information to the high-speed transmission module together to inform the high-speed transmission module to receive the request information.
在另一种可选的实施方式中,通过目标高速传输模块传输待传输数据,还包括:In another optional implementation manner, the data to be transmitted is transmitted through the target high-speed transmission module, further comprising:
确定目标节点模块没有向目标高速传输模块返回待传输数据的次数是否 大于预设阈值;Determine whether the number of times the target node module does not return data to be transmitted to the target high-speed transmission module is greater than a preset threshold;
在目标节点模块没有向目标高速传输模块返回待传输数据的次数大于预设阈值时,无线控制端重新通过第一连接向目标节点模块发送第二连接开启指令。When the number of times that the target node module does not return data to be transmitted to the target high-speed transmission module is greater than the preset threshold, the wireless control terminal re-sends the second connection opening instruction to the target node module through the first connection.
其中,在传输数据的过程中,例如由于各节点模块选取的通信信道冲突等,可能会使第二连接连接失败,导致数据传输失败。例如,无线控制端连续4次没有收到目标节点模块返回的待传输数据,认定数据传输失败,无线控制端需要重新发起第二连接开启指令,本发明可以根据节点模块和高速传输模块的数量来对失败次数预设阈值进行设置。In the process of data transmission, for example, due to the conflict of communication channels selected by each node module, the second connection may fail to connect, resulting in data transmission failure. For example, if the wireless control terminal does not receive the data to be transmitted returned by the target node module for 4 consecutive times, it is determined that the data transmission fails, and the wireless control terminal needs to re-initiate the second connection opening command. Set the preset threshold for the number of failures.
在一种可选的实施方式中,在目标节点模块收到第二连接开启指令时,目标节点模块开启对应的定时器,其中,通过目标高速传输模块传输待传输数据,还包括:In an optional implementation manner, when the target node module receives the second connection opening instruction, the target node module starts a corresponding timer, wherein the data to be transmitted is transmitted through the target high-speed transmission module, further comprising:
待待传输数据传输完毕,目标节点模块对应的定时器清零。After the data to be transmitted is completed, the timer corresponding to the target node module is cleared.
在一种可选的实施方式中,目标节点模块对应的定时器设置预设时间,其中,所述方法还包括:In an optional implementation manner, the timer corresponding to the target node module sets a preset time, wherein the method further includes:
确定目标节点模块对应的定时器的时间是否大于预设时间;Determine whether the time of the timer corresponding to the target node module is greater than the preset time;
在目标节点模块对应的定时器的时间大于预设时间时,目标节点模块关闭第二连接。When the time of the timer corresponding to the target node module is greater than the preset time, the target node module closes the second connection.
其中,节点模块在第二连接开启后,可以同时开启一个定时器,在需要传输的数据传输完毕后,将该定时器清零。当该定时器超时后,可认为已经没有数据需要传输,节点模块关闭第二连接。The node module can simultaneously start a timer after the second connection is opened, and clear the timer after the data to be transmitted is transmitted. When the timer expires, it may be considered that there is no data to be transmitted, and the node module closes the second connection.
本发明所述的方法,在一般情况下通过第一连接维持低功耗、低时延、高可靠的通信连接,单个基站模块可以和多个节点模块同时保持连接,并且可以保持传输的实时性。在节点模块需要传输高速数据时,才开启第二连接进行高速数据传输,并能实现多个节点模块在同一时刻同时传输高速数据。The method described in the present invention generally maintains a low power consumption, low delay and high reliability communication connection through the first connection, a single base station module can be connected with multiple node modules at the same time, and the real-time transmission can be maintained . When the node module needs to transmit high-speed data, the second connection is opened for high-speed data transmission, and multiple node modules can simultaneously transmit high-speed data at the same time.
本发明实施例所述的一种高速数据传输系统,所述系统包括:A high-speed data transmission system according to an embodiment of the present invention, the system includes:
数据确定模块,用于确定目标节点模块、待传输数据以及目标节点模块对应的目标高速传输模块,其中,待传输数据为目标节点模块与无线控制端 之间传输的数据;The data determination module is used to determine the target high-speed transmission module corresponding to the target node module, the data to be transmitted and the target node module, wherein the data to be transmitted is the data transmitted between the target node module and the wireless control terminal;
连接传输模块,用于目标节点模块与目标高速传输模块连接,通过目标高速传输模块传输待传输数据。The connection transmission module is used for connecting the target node module with the target high-speed transmission module, and the data to be transmitted is transmitted through the target high-speed transmission module.
在一种可选的实施方式中,所述系统包括多个高速传输模块和多个节点模块,In an optional implementation manner, the system includes multiple high-speed transmission modules and multiple node modules,
数据确定模块在确定目标节点模块对应的目标高速传输模块时,包括:When the data determination module determines the target high-speed transmission module corresponding to the target node module, it includes:
若目标节点模块为一个节点模块,从多个高速传输模块中随机选取一个高速传输模块作为目标高速传输模块;If the target node module is a node module, randomly select a high-speed transmission module from a plurality of high-speed transmission modules as the target high-speed transmission module;
若目标节点模块为N个节点模块,从多个高速传输模块中随机选取N个高速传输模块作为目标高速传输模块,其中,N为大于或等于2的整数。If the target node modules are N node modules, N high-speed transmission modules are randomly selected from the plurality of high-speed transmission modules as the target high-speed transmission modules, where N is an integer greater than or equal to 2.
在一种可选的实施方式中,连接传输模块在实现目标节点模块与目标高速传输模块连接时,包括:In an optional implementation manner, when the connection transmission module realizes the connection between the target node module and the target high-speed transmission module, it includes:
无线控制端通过第一连接向目标节点模块发送第二连接开启指令;The wireless control terminal sends a second connection opening instruction to the target node module through the first connection;
待目标节点模块收到第二连接开启指令时,目标节点模块选取第二连接对应的通信信道并开启第二连接,并将选取的第二连接对应的通信信道通过第一连接发送给无线控制端,目标高速传输模块与目标节点模块通过通信信道连接。When the target node module receives the second connection opening instruction, the target node module selects the communication channel corresponding to the second connection and opens the second connection, and sends the communication channel corresponding to the selected second connection to the wireless control terminal through the first connection , the target high-speed transmission module is connected with the target node module through a communication channel.
在一种可选的实施方式中,目标节点模块包括N个节点模块,目标高速传输模块包括N个高速传输模块,其中,N为大于或等于2的整数,其中,连接传输模块在实现目标节点模块与目标高速传输模块连接时,还包括:In an optional implementation manner, the target node module includes N node modules, and the target high-speed transmission module includes N high-speed transmission modules, where N is an integer greater than or equal to 2, and the connection transmission module is used to implement the target node. When the module is connected to the target high-speed transmission module, it also includes:
对N个节点模块中的每个节点模块,确定其选取的通信信道与N个节点模块中其他节点模块选取的通信信道是否相同;For each node module in the N node modules, determine whether the selected communication channel is the same as the communication channel selected by other node modules in the N node modules;
若选取的通信信道与N个节点模块中其他节点模块选取的通信信道相同,无线控制端重新通过第一连接向该节点模块发送第二连接开启指令,该节点模块重新选取第二连接对应的通信信道;If the selected communication channel is the same as the communication channel selected by other node modules in the N node modules, the wireless control terminal re-sends the second connection opening instruction to the node module through the first connection, and the node module re-selects the communication corresponding to the second connection channel;
若选取的通信信道与N个节点模块中其他节点模块选取的通信信道不相同,将该节点模块选取的通信信道作为目标通信信道,该节点模块通过目标通信信道与对应的高速传输模块连接。If the selected communication channel is different from the communication channel selected by other node modules in the N node modules, the communication channel selected by the node module is used as the target communication channel, and the node module is connected to the corresponding high-speed transmission module through the target communication channel.
在一种可选的实施方式中,待传输数据为无线控制端向目标节点模块发送的数据,其中,连接传输模块在实现目标高速传输模块传输待传输数据时,包括:In an optional implementation manner, the data to be transmitted is the data sent by the wireless control terminal to the target node module, wherein, when the connection transmission module realizes that the target high-speed transmission module transmits the to-be-transmitted data, it includes:
目标高速传输模块向目标节点模块发送待传输数据;The target high-speed transmission module sends the data to be transmitted to the target node module;
待目标节点模块接收到待传输数据时,目标节点模块向目标高速传输模块返回确认信息。When the target node module receives the data to be transmitted, the target node module returns confirmation information to the target high-speed transmission module.
在一种可选的实施方式中,待传输数据包括多个数据包,目标高速传输模块每次向目标节点模块发送一个数据包,其中,连接传输模块在实现目标高速传输模块传输待传输数据时,还包括:In an optional implementation manner, the data to be transmitted includes multiple data packets, and the target high-speed transmission module sends one data packet to the target node module at a time, wherein, when the connection transmission module realizes that the target high-speed transmission module transmits the to-be-transmitted data ,Also includes:
确定待传输数据的多个数据包是否发送完毕;Determine whether multiple data packets of data to be transmitted have been sent;
若待传输数据的多个数据包发送完毕,目标高速传输模块停止向目标节点模块发送数据包;If the transmission of multiple data packets of the data to be transmitted is completed, the target high-speed transmission module stops sending data packets to the target node module;
若待传输数据的多个数据包没有发送完毕,目标高速传输模块继续向目标节点模块发送数据包,直至待传输数据的多个数据包发送完毕。If the multiple data packets of the data to be transmitted have not been sent, the target high-speed transmission module continues to send the data packets to the target node module until the multiple data packets of the to-be-transmitted data are sent.
在另一种可选的实施方式中,通过目标高速传输模块传输待传输数据,还包括:In another optional implementation manner, the data to be transmitted is transmitted through the target high-speed transmission module, further comprising:
确定目标节点模块没有向所述目标高速传输模块返回确认信息的次数是否大于预设阈值;Determine whether the number of times the target node module does not return confirmation information to the target high-speed transmission module is greater than a preset threshold;
在目标节点模块没有向所述目标高速传输模块返回确认信息的次数大于预设阈值时,无线控制端重新通过第一连接向目标节点模块发送第二连接开启指令。When the number of times that the target node module does not return confirmation information to the target high-speed transmission module is greater than the preset threshold, the wireless control terminal re-sends the second connection opening instruction to the target node module through the first connection.
在一种可选的实施方式中,待传输数据为目标节点模块向无线控制端发送的数据,其中,连接传输模块在实现目标高速传输模块传输待传输数据时,包括:In an optional implementation manner, the data to be transmitted is the data sent by the target node module to the wireless control terminal, wherein, when the connection transmission module realizes the transmission of the data to be transmitted by the target high-speed transmission module, the method includes:
目标高速传输模块向目标节点模块请求待传输数据;The target high-speed transmission module requests data to be transmitted from the target node module;
目标节点模块向目标高速传输模块返回待传输数据。The target node module returns the data to be transmitted to the target high-speed transmission module.
在一种可选的实施方式中,连接传输模块在目标节点模块向目标高速传输模块返回待传输数据时,包括:In an optional implementation manner, when the target node module returns the data to be transmitted to the target high-speed transmission module, the connection transmission module includes:
确定目标节点模块是否有待传输数据;Determine whether the target node module has data to be transmitted;
若目标节点模块有待传输数据,目标节点模块向目标高速传输模块返回确认信息和待传输数据;If the target node module has data to be transmitted, the target node module returns confirmation information and the data to be transmitted to the target high-speed transmission module;
若目标节点模块没有待传输数据,目标节点模块向目标高速传输模块返回确认信息和空数据。If the target node module has no data to be transmitted, the target node module returns confirmation information and empty data to the target high-speed transmission module.
在一种可选的实施方式中,待传输数据包括多个数据包,目标高速传输模块每次向目标节点模块请求一个数据包,其中,连接传输模块在目标高速传输模块传输待传输数据时,还包括:In an optional implementation manner, the data to be transmitted includes a plurality of data packets, and the target high-speed transmission module requests one data packet from the target node module at a time, wherein the connection transmission module, when the target high-speed transmission module transmits the data to be transmitted, Also includes:
确定待传输数据的多个数据包是否请求完毕;Determine whether multiple data packets of data to be transmitted have been requested;
若待传输数据的多个数据包请求完毕,目标高速传输模块停止向目标节点模块请求数据包;If the request for multiple data packets of the data to be transmitted is completed, the target high-speed transmission module stops requesting data packets from the target node module;
若待传输数据的多个数据包没有请求完毕,目标高速传输模块继续向目标节点模块请求数据包,直至待传输数据的多个数据包请求完毕。If the multiple data packets of the data to be transmitted have not been requested, the target high-speed transmission module continues to request the data packets from the target node module until the multiple data packets of the to-be-transmitted data are requested.
在另一种可选的实施方式中,连接传输模块在实现目标高速传输模块传输待传输数据,还包括:In another optional implementation manner, when the connection transmission module transmits the data to be transmitted by the target high-speed transmission module, it also includes:
确定目标节点模块没有向目标高速传输模块返回待传输数据的次数是否大于预设阈值;Determine whether the number of times the target node module does not return data to be transmitted to the target high-speed transmission module is greater than a preset threshold;
在目标节点模块没有向目标高速传输模块返回待传输数据的次数大于预设阈值时,无线控制端重新通过第一连接向目标节点模块发送第二连接开启指令。When the number of times that the target node module does not return data to be transmitted to the target high-speed transmission module is greater than the preset threshold, the wireless control terminal re-sends the second connection opening instruction to the target node module through the first connection.
在一种可选的实施方式中,在目标节点模块收到第二连接开启指令时,目标节点模块开启对应的定时器,In an optional implementation manner, when the target node module receives the second connection opening instruction, the target node module starts the corresponding timer,
连接传输模块在实现目标高速传输模块传输待传输数据,还包括:When the connection transmission module realizes the target high-speed transmission module to transmit the data to be transmitted, it also includes:
待待传输数据传输完毕,目标节点模块对应的定时器清零。After the data to be transmitted is completed, the timer corresponding to the target node module is cleared.
在一种可选的实施方式中,目标节点模块对应的定时器设置预设时间,其中,连接传输模块还用于:In an optional implementation manner, the timer corresponding to the target node module sets the preset time, wherein the connection transmission module is further used for:
确定目标节点模块对应的定时器的时间是否大于预设时间;Determine whether the time of the timer corresponding to the target node module is greater than the preset time;
在目标节点模块对应的定时器的时间大于预设时间时,目标节点模块关闭第二连接。When the time of the timer corresponding to the target node module is greater than the preset time, the target node module closes the second connection.
下面将以几个实施例进行说明,其中,图5用于实施例1-3,图6用于实施例4-6。Several embodiments will be described below, wherein FIG. 5 is used for Embodiments 1-3, and FIG. 6 is used for Embodiments 4-6.
实施例1,Example 1,
网关装置中配置了一个高速传输模块GA,无线控制端有大量数据需要发送给一个目标节点模块(节点模块A)。A high-speed transmission module GA is configured in the gateway device, and the wireless control terminal has a large amount of data to be sent to a target node module (node module A).
如图5所示,所述方法包括:As shown in Figure 5, the method includes:
Step1,无线控制端通过第一连接向节点模块A发送第二连接开启指令;Step1, the wireless control terminal sends a second connection opening instruction to the node module A through the first connection;
Step2,待节点模块A收到第二连接开启指令时,节点模块A选取上次自适应跳频可用的无线通信信道并开启第二连接和一个定时器;Step2, when the node module A receives the second connection opening instruction, the node module A selects the wireless communication channel available for the last adaptive frequency hopping and starts the second connection and a timer;
Step3,选取的通信信道通过第一连接上报至无线控制端,无线控制端记录节点模块A选取的通信信道;Step3, the selected communication channel is reported to the wireless control terminal through the first connection, and the wireless control terminal records the communication channel selected by the node module A;
Step4,无线控制端通过高速传输模块GA向节点模块A发送数据,节点模块A接收到数据后通过高速传输模块GA向无线控制端返回确认信息;Step4, the wireless control terminal sends data to the node module A through the high-speed transmission module GA, and the node module A returns the confirmation information to the wireless control terminal through the high-speed transmission module GA after receiving the data;
Step5,无线控制端判断节点模块A是否返回确认信息以及没有返回确认信息的次数;Step5, the wireless control terminal determines whether the node module A returns confirmation information and the number of times that the confirmation information is not returned;
在无线控制端收到节点模块A返回的确认信息后,确定是否还有剩余数据需要发送;如果有,无线控制端继续通过高速传输模块GA向节点模块A发送数据;如果没有,无线控制端停止发送数据,定时器清零;After the wireless control terminal receives the confirmation information returned by the node module A, it determines whether there is any remaining data to send; if so, the wireless control terminal continues to send data to the node module A through the high-speed transmission module GA; if not, the wireless control terminal stops Send data, the timer is cleared;
在无线控制端没有收到节点模块A返回确认信息时,进一步确认没有返回确认信息的次数,当连续例如4次没有收到节点模块A返回的确认信息时,无线控制端重回Step1。When the wireless control terminal does not receive the acknowledgment information returned by the node module A, it further confirms the number of times that no acknowledgment information is returned.
实施例2,Example 2,
网关装置中配置了多个高速传输模块,无线控制端有大量数据需要发送给一个目标节点模块(节点模块A)。The gateway device is configured with multiple high-speed transmission modules, and the wireless control terminal has a large amount of data to be sent to a target node module (node module A).
所述方法与实施例1不同之处在于,无线控制端首先从多个高速传输模块中随机选取一个高速传输模块GA作为目标高速传输模块。再执行实施例1中的Step1-Step5。The difference between the method and Embodiment 1 is that the wireless control terminal first randomly selects a high-speed transmission module GA from a plurality of high-speed transmission modules as a target high-speed transmission module. Then perform Step1-Step5 in Embodiment 1.
实施例3,Example 3,
网关装置中配置了多个高速传输模块,无线控制端有大量数据需要发送给多个节点模块(节点模块A、B、C)。The gateway device is configured with multiple high-speed transmission modules, and the wireless control terminal has a large amount of data that needs to be sent to multiple node modules (node modules A, B, C).
与实施例1不同之处在于,无线控制端首先从多个高速传输模块中随机 选取三个高速传输模块GA、GB、GC,其中,高速传输模块GA用于和节点模块A进行通信连接,高速传输模块GB和节点模块B进行通信连接,高速传输模块GC用于和节点模块C进行通信连接。The difference from Embodiment 1 is that the wireless control terminal randomly selects three high-speed transmission modules GA, GB, and GC from a plurality of high-speed transmission modules. The transmission module GB is used for communication connection with the node module B, and the high-speed transmission module GC is used for communication connection with the node module C.
对于节点模块A,执行实施例1中的Step2时,无线控制端还需判断节点模块A选取的通信信道是否和节点模块B或节点模块C使用的通信信道相同,如果相同,无线控制端重回Step1。对于节点模块B和节点模块C与节点模块A流程相同,这里不再累述。For node module A, when performing Step 2 in Embodiment 1, the wireless control terminal also needs to determine whether the communication channel selected by node module A is the same as the communication channel used by node module B or node module C. If it is the same, the wireless control terminal will return to the Step1. The process of node module B and node module C is the same as that of node module A, which is not repeated here.
实施例4,Example 4,
网关装置中配置了一个高速传输模块GA,无线控制端需要接收来自节点模块A的大量数据。A high-speed transmission module GA is configured in the gateway device, and the wireless control terminal needs to receive a large amount of data from the node module A.
如图6所示,所述方法包括:As shown in Figure 6, the method includes:
Step1,节点模块A通过第一连接向无线控制端发送数据读取指令;Step1, the node module A sends a data reading instruction to the wireless control terminal through the first connection;
Step2,无线控制端收到节点模块A的数据读取指令后,通过第一连接向节点模块A发送第二连接开启指令;Step 2: After receiving the data reading instruction from the node module A, the wireless control terminal sends the second connection opening instruction to the node module A through the first connection;
Step3,待节点模块A收到第二连接开启指令时,节点模块A选取上次自适应跳频可用的无线通信信道并开启第二连接和一个定时器;Step3, when the node module A receives the second connection opening instruction, the node module A selects the wireless communication channel available for the last adaptive frequency hopping and starts the second connection and a timer;
Step4,选取的通信信道通过第一连接上报至无线控制端,无线控制端记录节点模块A选取的通信信道;Step4, the selected communication channel is reported to the wireless control terminal through the first connection, and the wireless control terminal records the communication channel selected by the node module A;
Step5,无线控制端通过高速传输模块GA向节点模块A请求数据,节点模块A接收到请求后通过高速传输模块GA向无线控制端返回数据;Step5, the wireless control terminal requests data from the node module A through the high-speed transmission module GA, and the node module A returns the data to the wireless control terminal through the high-speed transmission module GA after receiving the request;
Step6,无线控制端判断节点模块A是否返回数据以及没有返回数据的次数;Step6, the wireless control terminal determines whether the node module A returns data and the number of times that no data is returned;
在无线控制端收到节点模块A返回的数据后,确定是否为空数据;如果不是,无线控制端继续通过高速传输模块GA向节点模块A请求数据;如果是,无线控制端停止请求数据,定时器清零;After the wireless control terminal receives the data returned by the node module A, it determines whether it is empty data; if not, the wireless control terminal continues to request data from the node module A through the high-speed transmission module GA; if so, the wireless control terminal stops requesting data, timing clear the device;
在无线控制端没有收到节点模块A返回的数据时,进一步确认没有返回数据的次数,当连续例如4次没有收到节点模块A返回的数据时,无线控制端重回Step2。When the wireless control end does not receive the data returned by the node module A, it further confirms the number of times that no data is returned. When the wireless control end does not receive the data returned by the node module A for 4 consecutive times, the wireless control end returns to Step 2.
实施例5,Example 5,
网关装置中配置了多个高速传输模块,无线控制端需要接收来自节点模块A的大量数据。The gateway device is configured with multiple high-speed transmission modules, and the wireless control terminal needs to receive a large amount of data from the node module A.
所述方法与实施例4不同之处在于,无线控制端首先从多个高速传输模块中随机选取一个高速传输模块GA作为目标高速传输模块。再执行实施例4中的Step1-Step6。The difference between the method and Embodiment 4 is that the wireless control terminal first randomly selects a high-speed transmission module GA from a plurality of high-speed transmission modules as the target high-speed transmission module. Then perform Step1-Step6 in Embodiment 4.
实施例6,Example 6,
网关装置中配置了多个高速传输模块,无线控制端需要接收来自多个节点模块(节点模块A、B、C)的大量数据。The gateway device is configured with multiple high-speed transmission modules, and the wireless control terminal needs to receive a large amount of data from multiple node modules (node modules A, B, and C).
所述方法与实施例4不同之处在于,线控制端首先从多个高速传输模块中随机选取三个高速传输模块GA、GB、GC,其中,高速传输模块GA用于和节点模块A进行通信连接,高速传输模块GB和节点模块B进行通信连接,高速传输模块GC用于和节点模块C进行通信连接。The difference between the method and Embodiment 4 is that the line control terminal randomly selects three high-speed transmission modules GA, GB, and GC from a plurality of high-speed transmission modules, wherein the high-speed transmission module GA is used to communicate with the node module A. For connection, the high-speed transmission module GB is used for communication connection with the node module B, and the high-speed transmission module GC is used for communication connection with the node module C.
对于节点模块A,执行实施例4中的Step3时,无线控制端还需判断节点模块A选取的通信信道是否和节点模块B或节点模块C使用的通信信道相同,如果相同,无线控制端重回Step2。对于节点模块B和节点模块C与节点模块A流程相同,这里不再累述。For node module A, when performing Step 3 in Embodiment 4, the wireless control terminal also needs to determine whether the communication channel selected by node module A is the same as the communication channel used by node module B or node module C. If it is the same, the wireless control terminal will return to the Step2. The process of node module B and node module C is the same as that of node module A, which is not repeated here.
本公开还涉及一种电子设备,包括服务器、终端等。该电子设备包括:至少一个处理器;与至少一个处理器通信连接的存储器;以及与存储介质通信连接的通信组件,所述通信组件在处理器的控制下接收和发送数据;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行以实现上述实施例中的方法。The present disclosure also relates to an electronic device, including a server, a terminal, and the like. The electronic device includes: at least one processor; a memory communicatively connected to the at least one processor; and a communication component communicatively connected to the storage medium, the communication component receiving and transmitting data under the control of the processor; wherein the memory stores Instructions executable by at least one processor to implement the methods in the above-described embodiments.
在一种可选的实施方式中,存储器作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。处理器通过运行存储在存储器中的非易失性软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现方法。In an optional implementation manner, the memory, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs and modules. The processor executes various functional applications and data processing of the device by running the non-volatile software programs, instructions and modules stored in the memory, that is, implementing the method.
存储器可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储选项列表等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至外接设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory may include a stored program area and a stored data area, wherein the stored program area can store an operating system, an application program required by at least one function; the stored data area can store an option list and the like. Additionally, the memory may include high speed random access memory, and may also include nonvolatile memory, such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some embodiments, the memory may optionally include memory located remotely from the processor, such remote memory being connectable to an external device via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
一个或者多个模块存储在存储器中,当被一个或者多个处理器执行时,执行上述任意方法实施例中的方法。One or more modules are stored in memory, and when executed by one or more processors, perform the method in any of the above method embodiments.
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果,未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。The above product can execute the methods provided by the embodiments of the present application, and have functional modules and beneficial effects corresponding to the execution methods. For technical details not described in detail in the present embodiments, reference may be made to the methods provided by the embodiments of the present application.
本公开还涉及一种计算机可读存储介质,用于存储计算机可读程序,所述计算机可读程序用于供计算机执行上述部分或全部的方法实施例。The present disclosure also relates to a computer-readable storage medium for storing a computer-readable program, the computer-readable program being used for a computer to execute some or all of the above method embodiments.
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method for implementing the above embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium and includes several instructions to make a device ( It may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
此外,本领域普通技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, it will be understood by those of ordinary skill in the art that although some of the embodiments described herein include certain features, but not others, included in other embodiments, that combinations of features of different embodiments are intended to be within the scope of the invention within and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
本领域技术人员应理解,尽管已经参考示例性实施例描述了本发明,但是在不脱离本发明的范围的情况下,可进行各种改变并可用等同物替换其元件。另外,在不脱离本发明的实质范围的情况下,可进行许多修改以使特定情况或材料适应本发明的教导。因此,本发明不限于所公开的特定实施例,而是本发明将包括落入所附权利要求范围内的所有实施例。It will be understood by those skilled in the art that although the invention has been described with reference to exemplary embodiments, various changes may be made and equivalents may be substituted for elements thereof without departing from the scope of the invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the invention without departing from the essential scope thereof. Therefore, the inventions are not to be limited to the particular embodiments disclosed, but the inventions are to include all embodiments falling within the scope of the appended claims.
Claims (26)
- 一种高速数据传输方法,其特征在于,所述方法包括:A high-speed data transmission method, characterized in that the method comprises:确定目标节点模块及待传输数据,其中,所述待传输数据为所述目标节点模块与无线控制端之间传输的数据;determining the target node module and the data to be transmitted, wherein the data to be transmitted is the data transmitted between the target node module and the wireless control terminal;确定所述目标节点模块对应的目标高速传输模块;determining the target high-speed transmission module corresponding to the target node module;所述目标节点模块与所述目标高速传输模块连接,通过所述目标高速传输模块传输所述待传输数据。The target node module is connected to the target high-speed transmission module, and the data to be transmitted is transmitted through the target high-speed transmission module.
- 如权利要求1所述的方法,其中,包括多个高速传输模块和多个节点模块,The method of claim 1, comprising a plurality of high-speed transmission modules and a plurality of node modules,其中,所述确定所述目标节点模块对应的目标高速传输模块,包括:Wherein, the determining the target high-speed transmission module corresponding to the target node module includes:若所述目标节点模块为一个节点模块,从多个所述高速传输模块中随机选取一个高速传输模块作为所述目标高速传输模块;If the target node module is a node module, randomly select a high-speed transmission module from a plurality of the high-speed transmission modules as the target high-speed transmission module;若所述目标节点模块为N个节点模块,从多个所述高速传输模块中随机选取N个高速传输模块作为所述目标高速传输模块,其中,N为大于或等于2的整数。If the target node modules are N node modules, N high-speed transmission modules are randomly selected from the plurality of high-speed transmission modules as the target high-speed transmission modules, where N is an integer greater than or equal to 2.
- 如权利要求1所述的方法,其中,所述目标节点模块与所述目标高速传输模块连接,包括:The method of claim 1, wherein the target node module is connected to the target high-speed transmission module, comprising:所述无线控制端通过第一连接向所述目标节点模块发送第二连接开启指令;The wireless control terminal sends a second connection opening instruction to the target node module through the first connection;待所述目标节点模块收到所述第二连接开启指令时,所述目标节点模块选取所述第二连接对应的通信信道并开启所述第二连接,所述目标节点模块将选取的通信信道通过所述第一连接发送给所述无线控制端,所述目标高速传输模块与所述目标标节点模块通过所述通信信道连接。When the target node module receives the second connection opening instruction, the target node module selects the communication channel corresponding to the second connection and opens the second connection, and the target node module will select the communication channel It is sent to the wireless control terminal through the first connection, and the target high-speed transmission module and the target target node module are connected through the communication channel.
- 如权利要求3所述的方法,其中,所述目标节点模块包括N个节点模块,所述目标高速传输模块包括N个高速传输模块,其中,N为大于或等于2的整数,The method of claim 3, wherein the target node module comprises N node modules, the target high-speed transmission module comprises N high-speed transmission modules, wherein N is an integer greater than or equal to 2,其中,所述目标节点模块与所述目标高速传输模块连接,还包括:Wherein, the target node module is connected to the target high-speed transmission module, and further includes:对所述N个节点模块中的每个节点模块,确定其选取的通信信道与所述N个节点模块中其他节点模块选取的通信信道是否相同;For each node module in the N node modules, determine whether the selected communication channel is the same as the communication channel selected by other node modules in the N node modules;若选取的通信信道与所述N个节点模块中其他节点模块选取的通信信道相同,所述无线控制端重新通过所述第一连接向该节点模块发送第二连接开启指令,该节点模块重新选取第二连接对应的通信信道;If the selected communication channel is the same as the communication channel selected by other node modules in the N node modules, the wireless control terminal re-sends the second connection opening command to the node module through the first connection, and the node module re-selects The communication channel corresponding to the second connection;若选取的通信信道与所述N个节点模块中其他节点模块选取的通信信道不相同,将该节点模块选取的通信信道作为目标通信信道,该节点模块通过所述目标通信信道与对应的高速传输模块连接。If the selected communication channel is different from the communication channel selected by other node modules in the N node modules, the communication channel selected by the node module is used as the target communication channel, and the node module communicates with the corresponding high-speed transmission channel through the target communication channel. Module connection.
- 如权利要求1所述的方法,其中,所述待传输数据为所述无线控制端向所述目标节点模块发送的数据,The method according to claim 1, wherein the data to be transmitted is the data sent by the wireless control terminal to the target node module,其中,所述通过所述目标高速传输模块传输所述待传输数据,包括:Wherein, the transmitting the data to be transmitted through the target high-speed transmission module includes:所述目标高速传输模块向所述目标节点模块发送所述待传输数据;The target high-speed transmission module sends the to-be-transmitted data to the target node module;待所述目标节点模块接收到所述待传输数据时,所述目标节点模块向所述目标高速传输模块返回确认信息。When the target node module receives the data to be transmitted, the target node module returns confirmation information to the target high-speed transmission module.
- 如权利要求5所述的方法,其中,所述待传输数据包括多个数据包,所述目标高速传输模块每次向所述目标节点模块发送一个数据包,The method according to claim 5, wherein the data to be transmitted comprises a plurality of data packets, and the target high-speed transmission module sends one data packet to the target node module each time,其中,所述通过所述目标高速传输模块传输所述待传输数据,还包括:Wherein, the transmitting the data to be transmitted through the target high-speed transmission module further includes:确定所述待传输数据的多个数据包是否发送完毕;determining whether the multiple data packets of the data to be transmitted have been sent;若所述待传输数据的多个数据包发送完毕,所述目标高速传输模块停止向所述目标节点模块发送数据包;If the multiple data packets of the data to be transmitted are sent, the target high-speed transmission module stops sending data packets to the target node module;若所述待传输数据的多个数据包没有发送完毕,所述目标高速传输模块继续向所述目标节点模块发送数据包,直至所述待传输数据的多个数据包发送完毕。If the multiple data packets of the data to be transmitted have not been sent, the target high-speed transmission module continues to send the data packets to the target node module until the multiple data packets of the to-be-transmitted data are sent.
- 如权利要求1所述的方法,其中,所述待传输数据为所述目标节点模块向所述无线控制端发送的数据,The method according to claim 1, wherein the data to be transmitted is the data sent by the target node module to the wireless control terminal,其中,所述通过所述目标高速传输模块传输所述待传输数据,包括:Wherein, the transmitting the data to be transmitted through the target high-speed transmission module includes:所述目标高速传输模块向所述目标节点模块请求所述待传输数据;The target high-speed transmission module requests the data to be transmitted from the target node module;所述目标节点模块向所述目标高速传输模块返回所述待传输数据。The target node module returns the to-be-transmitted data to the target high-speed transmission module.
- 如权利要求7所述的方法,其中,所述目标节点模块向所述目标高速传输模块返回所述待传输数据,包括:The method of claim 7, wherein the target node module returns the data to be transmitted to the target high-speed transmission module, comprising:确定所述目标节点模块是否有所述待传输数据;determining whether the target node module has the data to be transmitted;若所述目标节点模块有所述待传输数据,所述目标节点模块向所述目标高速传输模块返回确认信息和所述待传输数据;If the target node module has the data to be transmitted, the target node module returns confirmation information and the data to be transmitted to the target high-speed transmission module;若所述目标节点模块没有所述待传输数据,所述目标节点模块向所述目标高速传输模块返回确认信息和空数据。If the target node module does not have the data to be transmitted, the target node module returns confirmation information and null data to the target high-speed transmission module.
- 如权利要求8所述的方法,其中,所述待传输数据包括多个数据包,所述目标高速传输模块每次向所述目标节点模块请求一个数据包,The method according to claim 8, wherein the data to be transmitted comprises a plurality of data packets, and the target high-speed transmission module requests one data packet from the target node module each time,其中,所述通过所述目标高速传输模块传输所述待传输数据,还包括:Wherein, the transmitting the data to be transmitted through the target high-speed transmission module further includes:确定所述待传输数据的多个数据包是否请求完毕;determining whether multiple data packets of the data to be transmitted have been requested;若所述待传输数据的多个数据包请求完毕,所述目标高速传输模块停止向所述目标节点模块请求数据包;If the request for multiple data packets of the data to be transmitted is completed, the target high-speed transmission module stops requesting data packets from the target node module;若所述待传输数据的多个数据包没有请求完毕,所述目标高速传输模块继续向所述目标节点模块请求数据包,直至所述待传输数据的多个数据包请求完毕。If the request for the multiple data packets of the data to be transmitted is not completed, the target high-speed transmission module continues to request the data packets from the target node module until the multiple data packets of the to-be-transmitted data are requested.
- 如权利要求5或7所述的方法,其中,通过所述目标高速传输模块传输所述待传输数据,还包括:The method according to claim 5 or 7, wherein transmitting the data to be transmitted through the target high-speed transmission module, further comprising:确定所述目标节点模块没有向所述目标高速传输模块返回确认信息的次数或所述目标节点模块没有向所述目标高速传输模块返回所述待传输数据的次数是否大于预设阈值;Determine whether the number of times the target node module does not return confirmation information to the target high-speed transmission module or the number of times the target node module does not return the data to be transmitted to the target high-speed transmission module is greater than a preset threshold;在没有返回确认信息的次数或没有返回待传输数据的次数大于预设阈值时,所述无线控制端重新通过所述第一连接向所述目标节点模块发送第二连接开启指令。When the number of times that no confirmation information is returned or the number of times that no data to be transmitted is returned is greater than a preset threshold, the wireless control terminal re-sends a second connection opening instruction to the target node module through the first connection.
- 如权利要求3所述的方法,其中,在所述目标节点模块收到所述第二连接开启指令时,所述目标节点模块开启对应的定时器,The method according to claim 3, wherein when the target node module receives the second connection opening instruction, the target node module starts a corresponding timer,其中,所述通过所述目标高速传输模块传输所述待传输数据,还包括:Wherein, the transmitting the data to be transmitted through the target high-speed transmission module further includes:待所述待传输数据传输完毕,所述目标节点模块对应的定时器清零。After the transmission of the data to be transmitted is completed, the timer corresponding to the target node module is cleared.
- 如权利要求11所述的方法,其中,所述目标节点模块对应的定时器设置预设时间,The method of claim 11, wherein a timer corresponding to the target node module is set to a preset time,其中,所述方法还包括:Wherein, the method also includes:确定所述目标节点模块对应的定时器的时间是否大于预设时间;determining whether the time of the timer corresponding to the target node module is greater than a preset time;在所述目标节点模块对应的定时器的时间大于预设时间时,所述目标节点模块关闭所述第二连接。When the time of the timer corresponding to the target node module is greater than a preset time, the target node module closes the second connection.
- 一种高速数据传输系统,其特征在于,所述系统包括:A high-speed data transmission system, characterized in that the system comprises:数据确定模块,用于确定目标节点模块、待传输数据以及所述目标节点模块对应的目标高速传输模块,其中,所述待传输数据为所述目标节点模块与无线控制端之间传输的数据;a data determination module, configured to determine a target node module, data to be transmitted, and a target high-speed transmission module corresponding to the target node module, wherein the data to be transmitted is the data transmitted between the target node module and the wireless control terminal;连接传输模块,用于所述目标节点模块与所述目标高速传输模块连接,通过所述目标高速传输模块传输所述待传输数据。A connection transmission module is used to connect the target node module with the target high-speed transmission module, and transmit the to-be-transmitted data through the target high-speed transmission module.
- 如权利要求13所述的系统,其中,所述系统包括多个高速传输模块和多个节点模块,The system of claim 13, wherein the system includes a plurality of high-speed transmission modules and a plurality of node modules,所述数据确定模块在确定所述目标节点模块对应的目标高速传输模块时,包括:When the data determination module determines the target high-speed transmission module corresponding to the target node module, it includes:若所述目标节点模块为一个节点模块,从多个所述高速传输模块中随机选取一个高速传输模块作为所述目标高速传输模块;If the target node module is a node module, randomly select a high-speed transmission module from a plurality of the high-speed transmission modules as the target high-speed transmission module;若所述目标节点模块为N个节点模块,从多个所述高速传输模块中随机选取N个高速传输模块作为所述目标高速传输模块,其中,N为大于或等于2的整数。If the target node modules are N node modules, N high-speed transmission modules are randomly selected from the plurality of high-speed transmission modules as the target high-speed transmission modules, where N is an integer greater than or equal to 2.
- 如权利要求13所述的系统,其中,所述连接传输模块在实现所述目标节点模块与所述目标高速传输模块连接时,包括:The system according to claim 13, wherein, when the connection transmission module realizes the connection between the target node module and the target high-speed transmission module, the method comprises:所述无线控制端通过第一连接向所述目标节点模块发送第二连接开启指令;The wireless control terminal sends a second connection opening instruction to the target node module through the first connection;待所述目标节点模块收到所述第二连接开启指令时,所述目标节点模块选取所述第二连接对应的通信信道并开启所述第二连接,所述目标节点模块将选取的通信信道通过所述第一连接发送给所述无线控制端,所述目标高速传输模块与所述目标标节点模块通过所述通信信道连接。When the target node module receives the second connection opening instruction, the target node module selects the communication channel corresponding to the second connection and opens the second connection, and the target node module will select the communication channel It is sent to the wireless control terminal through the first connection, and the target high-speed transmission module and the target target node module are connected through the communication channel.
- 如权利要求15所述的系统,其中,所述目标节点模块包括N个节点 模块,所述目标高速传输模块包括N个高速传输模块,其中,N为大于或等于2的整数,The system of claim 15, wherein the target node module comprises N node modules, the target high-speed transmission module comprises N high-speed transmission modules, wherein N is an integer greater than or equal to 2,其中,所述连接传输模块在实现所述目标节点模块与所述目标高速传输模块连接时,还包括:Wherein, when the connection transmission module realizes the connection between the target node module and the target high-speed transmission module, it further includes:对所述N个节点模块中的每个节点模块,确定其选取的通信信道与所述N个节点模块中其他节点模块选取的通信信道是否相同;For each node module in the N node modules, determine whether the selected communication channel is the same as the communication channel selected by other node modules in the N node modules;若选取的通信信道与所述N个节点模块中其他节点模块选取的通信信道相同,所述无线控制端重新通过所述第一连接向该节点模块发送第二连接开启指令,该节点模块重新选取第二连接对应的通信信道;If the selected communication channel is the same as the communication channel selected by other node modules in the N node modules, the wireless control terminal re-sends the second connection opening command to the node module through the first connection, and the node module re-selects The communication channel corresponding to the second connection;若选取的通信信道与所述N个节点模块中其他节点模块选取的通信信道不相同,将该节点模块选取的通信信道作为目标通信信道,该节点模块通过所述目标通信信道与对应的高速传输模块连接。If the selected communication channel is different from the communication channel selected by other node modules in the N node modules, the communication channel selected by the node module is used as the target communication channel, and the node module communicates with the corresponding high-speed transmission channel through the target communication channel. Module connection.
- 如权利要求13所述的系统,其中,所述待传输数据为所述无线控制端向所述目标节点模块发送的数据,The system according to claim 13, wherein the data to be transmitted is the data sent by the wireless control terminal to the target node module,其中,所述连接传输模块在实现所述目标高速传输模块传输所述待传输数据时,包括:Wherein, when the connection transmission module realizes that the target high-speed transmission module transmits the to-be-transmitted data, it includes:所述目标高速传输模块向所述目标节点模块发送所述待传输数据;The target high-speed transmission module sends the to-be-transmitted data to the target node module;待所述目标节点模块接收到所述待传输数据时,所述目标节点模块向所述目标高速传输模块返回确认信息。When the target node module receives the data to be transmitted, the target node module returns confirmation information to the target high-speed transmission module.
- 如权利要求17所述的系统,其中,所述待传输数据包括多个数据包,所述目标高速传输模块每次向所述目标节点模块发送一个数据包,The system of claim 17, wherein the data to be transmitted comprises a plurality of data packets, and the target high-speed transmission module sends one data packet to the target node module at a time,其中,所述连接传输模块在实现所述目标高速传输模块传输所述待传输数据时,还包括:Wherein, when the connection transmission module realizes that the target high-speed transmission module transmits the to-be-transmitted data, it further includes:确定所述待传输数据的多个数据包是否发送完毕;determining whether the multiple data packets of the data to be transmitted have been sent;若所述待传输数据的多个数据包发送完毕,所述目标高速传输模块停止向所述目标节点模块发送数据包;If the multiple data packets of the data to be transmitted have been sent, the target high-speed transmission module stops sending data packets to the target node module;若所述待传输数据的多个数据包没有发送完毕,所述目标高速传输模块继续向所述目标节点模块发送数据包,直至所述待传输数据的多个数据包发 送完毕。If the multiple data packets of the data to be transmitted have not been sent, the target high-speed transmission module continues to send data packets to the target node module until the multiple data packets of the data to be transmitted are sent.
- 如权利要求13所述的系统,其中,所述待传输数据为所述目标节点模块向所述无线控制端发送的数据,The system according to claim 13, wherein the data to be transmitted is data sent by the target node module to the wireless control terminal,其中,所述连接传输模块在实现所述目标高速传输模块传输所述待传输数据时,包括:Wherein, when the connection transmission module realizes that the target high-speed transmission module transmits the to-be-transmitted data, it includes:所述目标高速传输模块向所述目标节点模块请求所述待传输数据;The target high-speed transmission module requests the data to be transmitted from the target node module;所述目标节点模块向所述目标高速传输模块返回所述待传输数据。The target node module returns the to-be-transmitted data to the target high-speed transmission module.
- 如权利要求19所述的系统,其中,所述连接传输模块在所述目标节点模块向所述目标高速传输模块返回所述待传输数据时,包括:The system according to claim 19, wherein, when the target node module returns the data to be transmitted to the target high-speed transmission module, the connection transmission module comprises:确定所述目标节点模块是否有所述待传输数据;determining whether the target node module has the data to be transmitted;若所述目标节点模块有所述待传输数据,所述目标节点模块向所述目标高速传输模块返回确认信息和所述待传输数据;If the target node module has the data to be transmitted, the target node module returns confirmation information and the data to be transmitted to the target high-speed transmission module;若所述目标节点模块没有所述待传输数据,所述目标节点模块向所述目标高速传输模块返回确认信息和空数据。If the target node module does not have the data to be transmitted, the target node module returns confirmation information and null data to the target high-speed transmission module.
- 如权利要求20所述的系统,其中,所述待传输数据包括多个数据包,所述目标高速传输模块每次向所述目标节点模块请求一个数据包,The system of claim 20, wherein the data to be transmitted comprises a plurality of data packets, and the target high-speed transmission module requests one data packet from the target node module each time,其中,所述连接传输模块在所述目标高速传输模块传输所述待传输数据时,还包括:Wherein, when the target high-speed transmission module transmits the data to be transmitted, the connection transmission module further includes:确定所述待传输数据的多个数据包是否请求完毕;determining whether multiple data packets of the data to be transmitted have been requested;若所述待传输数据的多个数据包请求完毕,所述目标高速传输模块停止向所述目标节点模块请求数据包;If the request for multiple data packets of the data to be transmitted is completed, the target high-speed transmission module stops requesting data packets from the target node module;若所述待传输数据的多个数据包没有请求完毕,所述目标高速传输模块继续向所述目标节点模块请求数据包,直至所述待传输数据的多个数据包请求完毕。If the request for the multiple data packets of the data to be transmitted is not completed, the target high-speed transmission module continues to request the data packets from the target node module until the multiple data packets of the to-be-transmitted data are requested.
- 如权利要求17或19所述的系统,其中,所述连接传输模块在实现所述目标高速传输模块传输所述待传输数据,还包括:The system according to claim 17 or 19, wherein, when the connection transmission module implements the target high-speed transmission module to transmit the data to be transmitted, it further comprises:确定所述目标节点模块没有向所述目标高速传输模块返回确认信息的次数或所述目标节点模块没有向所述目标高速传输模块返回所述待传输数据的 次数是否大于预设阈值;Determine whether the number of times the target node module does not return confirmation information to the target high-speed transmission module or the number of times the target node module does not return the data to be transmitted to the target high-speed transmission module is greater than a preset threshold;在没有返回确认信息的次数或没有返回待传输数据的次数大于预设阈值时,所述无线控制端重新通过所述第一连接向所述目标节点模块发送第二连接开启指令。When the number of times that no confirmation information is returned or the number of times that no data to be transmitted is returned is greater than a preset threshold, the wireless control terminal re-sends a second connection opening instruction to the target node module through the first connection.
- 如权利要求15所述的系统,其中,在所述目标节点模块收到所述第二连接开启指令时,所述目标节点模块开启对应的定时器,The system according to claim 15, wherein when the target node module receives the second connection opening instruction, the target node module starts a corresponding timer,所述连接传输模块在实现所述目标高速传输模块传输所述待传输数据,还包括:When the connection transmission module transmits the data to be transmitted by the target high-speed transmission module, it also includes:待所述待传输数据传输完毕,所述目标节点模块对应的定时器清零。After the transmission of the data to be transmitted is completed, the timer corresponding to the target node module is cleared.
- 如权利要求23所述的系统,其中,所述目标节点模块对应的定时器设置预设时间,The system according to claim 23, wherein the timer corresponding to the target node module sets a preset time,其中,所述连接传输模块还用于:Wherein, the connection transmission module is also used for:确定所述目标节点模块对应的定时器的时间是否大于预设时间;determining whether the time of the timer corresponding to the target node module is greater than a preset time;在所述目标节点模块对应的定时器的时间大于预设时间时,所述目标节点模块关闭所述第二连接。When the time of the timer corresponding to the target node module is greater than a preset time, the target node module closes the second connection.
- 一种电子设备,包括存储器和处理器,其特征在于,所述存储器用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令被处理器执行以实现如权利要求1-12中任一项所述的方法。An electronic device, comprising a memory and a processor, characterized in that the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement claims 1-12 The method of any of the above.
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行以实现如权利要求1-12中任一项所述的方法。A computer-readable storage medium on which a computer program is stored, wherein the computer program is executed by a processor to implement the method according to any one of claims 1-12.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010747287.X | 2020-07-29 | ||
CN202010747287.XA CN111867150B (en) | 2020-07-29 | 2020-07-29 | High-speed data transmission method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022021274A1 true WO2022021274A1 (en) | 2022-02-03 |
Family
ID=72946384
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/106081 WO2022021274A1 (en) | 2020-07-29 | 2020-07-31 | High-speed data transmission method and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111867150B (en) |
WO (1) | WO2022021274A1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110177780A1 (en) * | 2010-01-15 | 2011-07-21 | Kabushiki Kaisha Toshiba | Wireless communication apparatus |
CN109525596A (en) * | 2018-12-25 | 2019-03-26 | 汉能移动能源控股集团有限公司 | Communication method and gateway of microgrid system |
CN109756933A (en) * | 2018-12-17 | 2019-05-14 | 西安奇妙电子科技有限公司 | A kind of method and device for realizing low power loss communication |
CN110677899A (en) * | 2019-08-19 | 2020-01-10 | 深圳绿米联创科技有限公司 | Data transmission method and device, terminal equipment and storage medium |
CN110958658A (en) * | 2019-11-20 | 2020-04-03 | 北京思存通信技术有限公司 | Communication equipment and method |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8987779B2 (en) * | 2011-11-24 | 2015-03-24 | Macronix International Co., Ltd. | Electrostatic discharge protection device |
CN104919853B (en) * | 2012-09-28 | 2019-04-16 | 三菱电机株式会社 | Mobile communication system |
CN105592504B (en) * | 2014-10-23 | 2019-03-08 | 东莞宇龙通信科技有限公司 | Transmission method, transmitting device and the terminal of more wifi modules |
CN108777861A (en) * | 2018-05-30 | 2018-11-09 | 西安航天寰星电子科技有限公司 | Quickly establish method, the chip of communication connection and high speed data transfer |
CN109688570B (en) * | 2018-12-20 | 2022-10-25 | 惠州Tcl移动通信有限公司 | Bluetooth connection method, system and storage medium |
CN110198559B (en) * | 2019-07-10 | 2024-05-17 | 唐智科技湖南发展有限公司 | Wireless sensor network method, system and device thereof |
CN110572803A (en) * | 2019-07-25 | 2019-12-13 | 华为技术有限公司 | Bluetooth switching method and Bluetooth device |
-
2020
- 2020-07-29 CN CN202010747287.XA patent/CN111867150B/en active Active
- 2020-07-31 WO PCT/CN2020/106081 patent/WO2022021274A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110177780A1 (en) * | 2010-01-15 | 2011-07-21 | Kabushiki Kaisha Toshiba | Wireless communication apparatus |
CN109756933A (en) * | 2018-12-17 | 2019-05-14 | 西安奇妙电子科技有限公司 | A kind of method and device for realizing low power loss communication |
CN109525596A (en) * | 2018-12-25 | 2019-03-26 | 汉能移动能源控股集团有限公司 | Communication method and gateway of microgrid system |
CN110677899A (en) * | 2019-08-19 | 2020-01-10 | 深圳绿米联创科技有限公司 | Data transmission method and device, terminal equipment and storage medium |
CN110958658A (en) * | 2019-11-20 | 2020-04-03 | 北京思存通信技术有限公司 | Communication equipment and method |
Also Published As
Publication number | Publication date |
---|---|
CN111867150B (en) | 2022-05-17 |
CN111867150A (en) | 2020-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5563979B2 (en) | Bandwidth reservation for data flow in interconnected networks | |
EP3547580B1 (en) | Data sending method and apparatus, and data receiving method and apparatus | |
EP3651485A1 (en) | Bluetooth cluster online upgrade method and apparatus | |
US10667285B2 (en) | ZigBee, Thread and BLE co-existence with 2.4 GHz WiFi | |
CN108933735B (en) | Method, device and equipment for sending message | |
US20150092530A1 (en) | Mesh Network Defragmentation | |
CA3018962C (en) | Techniques for allocating short addresses to network devices | |
US5612950A (en) | Managing communication on an unstable error-prone channel | |
US20240306241A1 (en) | Accelerating control procedures over ble connection oriented services | |
CN115118524B (en) | Interface equipment and free intercommunication data transparent transmission method, system and device of Internet of things | |
US11593033B2 (en) | Electronic device for communicating with host and operating method of the electronic device | |
CN113423099A (en) | Bluetooth broadcast event scheduling method and device and Bluetooth equipment | |
WO2022021274A1 (en) | High-speed data transmission method and system | |
CN115150383A (en) | File transmission method, device and computer readable storage medium | |
US8908589B2 (en) | Repeater device | |
US20140112153A1 (en) | Method and device for managing contention window based on transmission error detection | |
JP2010161616A (en) | Communication apparatus, communication system, communication method, program, and integrated circuit | |
CN109076405A (en) | The method and device of different standard handover between cells | |
KR102211845B1 (en) | Apparatus and method for performing scheduling in ad hoc networks | |
US20150078213A1 (en) | Medium access control method in single channel wireless network environment | |
Bendrick et al. | On the effectiveness of W2RP in physical environments | |
WO2020192602A1 (en) | Method for sending retransmitted data, method and device for sending data retransmission resources, storage medium and electronic device | |
JPH11298477A (en) | Transmission control method and transmission controller | |
US20200177327A1 (en) | Method for starting reflective mapping, communication device, and storage medium | |
US20230413245A1 (en) | Base station and storage medium |
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: 20947577 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 23.06.2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20947577 Country of ref document: EP Kind code of ref document: A1 |