CN109327832B - Single-type multi-terminal low-power-consumption wireless transmission system and transmission method thereof - Google Patents

Single-type multi-terminal low-power-consumption wireless transmission system and transmission method thereof Download PDF

Info

Publication number
CN109327832B
CN109327832B CN201811065820.3A CN201811065820A CN109327832B CN 109327832 B CN109327832 B CN 109327832B CN 201811065820 A CN201811065820 A CN 201811065820A CN 109327832 B CN109327832 B CN 109327832B
Authority
CN
China
Prior art keywords
terminal node
module
command
mode
retransmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811065820.3A
Other languages
Chinese (zh)
Other versions
CN109327832A (en
Inventor
王海云
余英
武家辉
南东亮
左惠文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xinjiang University
Original Assignee
Xinjiang University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xinjiang University filed Critical Xinjiang University
Priority to CN201811065820.3A priority Critical patent/CN109327832B/en
Publication of CN109327832A publication Critical patent/CN109327832A/en
Application granted granted Critical
Publication of CN109327832B publication Critical patent/CN109327832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/04Error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • H04W52/0219Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave where the power saving management affects multiple terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal

Abstract

The invention relates to the technical field of multi-terminal low-power wireless transmission, in particular to a single-type multi-terminal low-power wireless transmission system and a transmission method thereof. The invention realizes the low-power switching strategy selection of multiple application scenes in the single-type multi-terminal wireless transmission system, further optimizes the speed of the data transmission process, reduces the power consumption of wireless transmission in the single-type multi-terminal wireless transmission system, and effectively reduces the overall power consumption of the system by sending the command in a low-energy-loss mode in two modes of one multi-terminal node command and a plurality of single-terminal node commands.

Description

Single-type multi-terminal low-power-consumption wireless transmission system and transmission method thereof
Technical Field
The invention relates to the technical field of multi-terminal low-power-consumption wireless transmission, in particular to a single-type multi-terminal low-power-consumption wireless transmission system and a transmission method thereof.
Background
Under the condition of current information rapid development, the technology of the internet of things is connected with huge terminal equipment, so that the full automation degree of the terminal equipment is further improved. Based on the big data analysis technology of the industrial data system of the Internet of things, the artificial intelligence technology improves the systematic intelligent decision-making capability. In an application environment of information acquisition and terminal control, a large number of measurement and control nodes are deployed to form a huge wireless communication network system, wherein the positions of the nodes are generally dispersed and are difficult to or even unrecoverable, so that the service life of the nodes directly influences the integrity of the whole sensing network. Due to the fact that wireless communication has time-varying instability, communication quality is greatly different in different periods, wireless transmission power consumption is large, and higher requirements are made on stored energy. At present, wireless communication systems used in terminal devices at the end of the internet of things mainly have modes of 433Mhz, Zigbee (2.4G), operator network (GPRS) and the like.
The prior art provides a dynamic retransmission allocation strategy for multi-type terminal application occasions, a block transmission technology for large-data-volume wireless communication with quick response, and a data uploading speed adjustment strategy for application occasions with constantly changing terminal quantity. However, for the multi-terminal single-task application requirements of the single-type multi-terminal wireless transmission system, a low-power-consumption transmission strategy is not available, a low-power-consumption switching strategy is not available in multi-application scenes such as program upgrading, online debugging and low-power-consumption work, and a simple retransmission strategy is needed in an application scene with high reliability.
Disclosure of Invention
The invention provides a single-type multi-terminal low-power-consumption wireless transmission system and a transmission method thereof, overcomes the defects of the prior art, and can effectively solve the problem that the prior art does not have a low-power-consumption switching strategy with multiple application scenes in the single-type multi-terminal wireless transmission system.
One of the technical schemes of the invention is realized by the following measures: a single-type multi-terminal low-power-consumption wireless transmission system comprises a centralized control unit and a plurality of terminal node units, wherein the centralized control unit comprises a first wireless communication module and a core control module, the core control module comprises a mode judging and switching module, and a second wireless communication module is arranged in each terminal node unit;
the core control module is used for sending commands to the terminal node unit and carrying out program updating and online upgrading on the terminal node unit;
the mode judging and switching module is used for switching the application scenes of the centralized control unit according to the commands and switching the working mode of the first wireless communication module into the working mode corresponding to the switched application scenes;
the first wireless communication module is used for the centralized control unit to communicate with the terminal node units;
the second wireless communication module is used for the centralized control unit to communicate with the terminal node units;
and the terminal node unit is used for receiving and executing the control and read-write commands sent by the centralized control unit and uploading the operation results and the request data after the commands are finished.
The following is a further optimization or/and improvement of one of the above-mentioned technical solutions of the invention:
the core control module also comprises a command sending module and an updating and debugging module;
the command sending module is used for judging whether the energy consumption of one multi-terminal node command is less than that of a plurality of single-terminal node commands and sending corresponding commands to corresponding terminal node units according to the judgment result;
and the updating and debugging module is used for updating the program and upgrading the terminal node unit on line.
The core control module also comprises a retransmission module and a control module;
the retransmission module is used for retransmitting unsuccessfully transmitted data according to the reply frame of each terminal node unit;
and the control module is used for controlling the operation, display and storage of the centralized control unit.
The centralized control unit further comprises a reset module, a display module, a storage module, a power module, a GPRS communication module and an Ethernet communication module, the reset module, the display module, the storage module and the power module are all connected with the centralized control unit, the centralized control unit is connected with the server through the GPRS communication module, and the centralized control unit is connected with the PC host through the Ethernet communication module.
The second technical scheme of the invention is realized by the following measures: a transmission method of the single-type multi-terminal low-power consumption wireless transmission system is characterized by comprising the following steps:
a first step of setting a second wireless communication module of each terminal node unit to a node mode;
secondly, the mode judging and switching module switches the application scene according to the command and switches the working mode of the first wireless communication module into the working mode corresponding to the switched application scene;
thirdly, the centralized control unit communicates with a plurality of terminal node units and sends control and read-write commands to the plurality of terminal node units;
and fourthly, each terminal node unit receives and executes the control and read-write command, and uploads the operation result and the request data after the command is finished.
The following is further optimization or/and improvement of the second technical scheme of the invention:
in the second step, the process of switching the application scene by the mode judging and switching module is as follows:
(1) the mode judging and switching module switches application scenes according to the commands, wherein the application scenes comprise a program updating mode, an online debugging mode and a low-power-consumption working mode;
(2) the mode determination and switching module switches the working mode of the first wireless communication module to the working mode corresponding to the switched application scenario, which is specifically as follows:
a. if the application scene is switched to the program updating mode, switching the working mode of the first wireless communication module to a full-speed working mode;
b. if the application scene is switched to an online debugging mode, switching the working mode of the first wireless communication module to a fast channel mode;
c. and if the application scene is switched to the low-power-consumption working mode, switching the working mode of the first wireless communication module to the low-power-consumption working mode, namely the center mode.
In the third step, the centralized control unit communicates with the plurality of terminal node units, and the specific process of sending the control and read-write commands to the plurality of terminal node units is as follows:
(1) when the centralized control unit communicates with a plurality of terminal node units, the command sending module judges whether the plurality of terminal node units execute the same command, if the plurality of terminal node units execute the same command, the second step is carried out, and if the plurality of terminal node units execute different commands, the command sending module sends a single terminal node command to the corresponding terminal node unit;
(2) the command sending module judges whether the energy consumption of one multi-terminal node command is smaller than that of a plurality of single-terminal node commands, if so, the command sending module sends one multi-terminal node command to each terminal node unit, and if not, the command sending module sends the plurality of single-terminal node commands to the corresponding terminal node units.
In the third step, the centralized control unit communicates with the plurality of terminal node units by adopting a private protocol, wherein the private protocol comprises a multi-terminal node command processing data frame, a single-terminal node command processing data frame, and a terminal node unit uploading data frame or confirmation frame; the data frame comprises a receiving end address, a command code, a transmitting byte number, command data and a CRC (cyclic redundancy check) code; the receiving end address of the command data frame of the multi-terminal node is a broadcast address, and the receiving end addresses of the command data frame of the single terminal node and the data frame uploaded by the terminal node unit are both corresponding terminal node unit addresses.
The above further includes that after the terminal node unit completes command uploading of the operation result and the request data, the centralized control unit enters the retransmission module according to the reply frame of each terminal node unit, and retransmits the data, which is specifically as follows:
(1) the retransmission module judges whether retransmission is needed according to the reply frame of each terminal node unit, and in response to the retransmission, the retransmission module packs all data frames needing retransmission to generate retransmission data;
(2) setting the starting time and time interval of retransmission according to the ending time of the execution of the previous command, and sending a retransmission data packet;
(3) judging whether the retransmission data packet is normally sent or not, if the retransmission data packet is normally sent, stopping retransmission, and if the data packet is not normally sent, continuing to enter a retransmission module for the abnormal data frame;
(4) and (3) judging whether the retransmission times are larger than the threshold times or not by the retransmission module, if so, reducing the priority, switching to the heartbeat packet query of a long time period, and if not, repeating the steps (2) to (3).
The invention has the following beneficial effects:
1. the invention switches multiple application scenes such as program upgrading, online debugging, low-power consumption work and the like through the mode judging and switching module, and can switch the working mode of the first wireless communication module according to the application scenes, thereby realizing the selection of the low-power consumption switching strategy of the multiple application scenes in the single-type multi-terminal wireless transmission system, solving the problem that the single-type multi-terminal wireless transmission system in the prior art does not have the low-power consumption switching strategy of the multiple application scenes, further optimizing the speed of the data transmission process and reducing the power consumption of wireless transmission in the single-type multi-terminal wireless transmission system.
2. Aiming at the multi-terminal single-task application requirement of the single-type multi-terminal wireless transmission system, when a plurality of terminals need to execute the same command, the invention selects to send one multi-terminal node command or send a plurality of single-terminal node commands according to the energy loss, thereby effectively reducing the overall power consumption of the system.
3. The invention introduces the retransmission module, and improves the reliability of the wireless transmission of the batch command processing flow, the program online upgrading flow and the online debugging mode flow in the low-power-consumption working mode.
Drawings
Fig. 1 is a schematic system configuration diagram according to embodiment 1 of the present invention.
Fig. 2 is a flow of a transmission method according to embodiment 2 of the present invention.
Fig. 3 is a flowchart of sending a command to a plurality of terminal node units by a centralized control unit in embodiment 2 of the present invention.
Fig. 4 shows a proprietary protocol for wireless transmission between a centralized control unit and a terminal node unit in embodiment 2 of the present invention.
Fig. 5 is a flowchart of retransmitting data by the centralized retransmission module in embodiment 2 of the present invention.
Fig. 6 is a flowchart of wireless transmission in the low power consumption operating mode in embodiment 3 of the present invention.
Fig. 7 is a flowchart of wireless transmission in the program update mode according to embodiment 3 of the present invention.
Fig. 8 is a flowchart of wireless transmission in an online debugging mode in embodiment 3 of the present invention.
Detailed Description
The present invention is not limited by the following examples, and specific embodiments may be determined according to the technical solutions and practical situations of the present invention.
The invention is further described with reference to the following examples and figures:
example 1: as shown in fig. 1, the single-type multi-terminal low-power wireless transmission system includes a centralized control unit and a plurality of terminal node units, wherein the centralized control unit includes a first wireless communication module and a core control module, the core control module includes a mode judging and switching module, and a second wireless communication module is arranged in each terminal node unit;
the core control module is used for sending commands to the terminal node unit and carrying out program updating and online upgrading on the terminal node unit;
the mode judging and switching module is used for switching the application scenes of the centralized control unit according to the commands and switching the working mode of the first wireless communication module into the working mode corresponding to the switched application scenes;
the first wireless communication module is used for the centralized control unit to communicate with the terminal node units;
the second wireless communication module is used for the centralized control unit to communicate with the terminal node units;
and the terminal node unit is used for receiving and executing the control and read-write commands sent by the centralized control unit and uploading the operation results and the request data after the commands are finished.
A star network topology structure is formed between the centralized control unit and the plurality of terminal node units, and the centralized control unit and the plurality of terminal node units communicate through the first wireless communication module and the corresponding second wireless communication module to complete data transmission and task coordination.
The core control module can be an stm32f107 chip and is used for sending commands to the terminal node unit and carrying out program updating and online upgrading on the terminal node unit;
the mode judging and switching module is used for switching the application scenes of the centralized control unit according to the commands, generating different configuration commands, sending the configuration commands to the first wireless communication module through the serial port, and switching the working mode of the first wireless communication module into the working mode corresponding to the switched application scenes; the mode judging and switching module can switch three application scenes, namely a program updating mode, an online debugging mode and a low-power-consumption working mode, and specifically comprises the following steps:
the program updating mode is used in the program online updating process, at the moment, the program updating is required to be fast and stable, so that the working mode of the first wireless communication module is switched to a full-speed working mode, the first wireless communication module is in a high-speed wireless monitoring state, data can be processed in time, the data transmission time and the number of control frames are reduced, and the program updating power consumption is further reduced;
the on-line debugging mode is used for adjusting parameters and reading real-time working data of the terminal node unit based on the actual use environment, analyzing the program running condition, optimizing the running process and the running parameters, switching the working mode of the first wireless communication module into a fast channel mode at the moment, enabling the first wireless communication module to be in a full-speed running state, achieving good command response real-time performance, reducing the debugging time and reducing the power consumption of the debugging process;
the low-power consumption working mode comprises a real-time control command and periodic data uploading; responding the real-time control command, wherein the running time of the control command is indefinite, and running results need to be uploaded in time; the response time of the periodic data uploading command is short, but the data volume is large, and the system state needs to be accurately uploaded; therefore, the working mode of the first wireless communication module is switched to a low-power-consumption working mode (central mode), namely a breathing cycle consisting of sleep time and breathing time is set, and the first wireless communication module sleeps in a non-transmission time period to perform intermittent CAD wireless monitoring, so that the working average current is reduced, and the power consumption of a terminal node unit is reduced.
The first wireless communication module and the second wireless communication module can be both LoRa wireless communication modules or Zigbee wireless communication modules and other wireless communication modules.
When the wireless transmission system works, the second wireless communication module of each terminal node unit is set to be in a node mode, the mode judging and switching module switches application scenes according to commands and switches the working mode of the first wireless communication module to be in a working mode corresponding to the switched application scenes, the centralized control unit communicates with the plurality of terminal node units, command control and read-write commands are sent to the plurality of terminal node units, and each terminal node unit receives and executes the control and read-write commands and uploads operation results and request data after the commands are completed, so that wireless transmission is completed.
The invention switches multiple application scenes such as program upgrading, online debugging, low-power consumption work and the like through the mode judging and switching module, and can switch the working mode of the first wireless communication module according to the application scenes, thereby realizing the selection of the low-power consumption switching strategy of the multiple application scenes in the single-type multi-terminal wireless transmission system, solving the problem that the single-type multi-terminal wireless transmission system in the prior art does not have the low-power consumption switching strategy of the multiple application scenes, further optimizing the speed of the data transmission process and reducing the power consumption of wireless transmission in the single-type multi-terminal wireless transmission system.
The single-type multi-terminal low-power consumption wireless transmission system can be further optimized or/and improved according to actual needs:
as shown in fig. 1, the core control module further includes a command sending module and an updating and debugging module;
the command sending module is used for judging whether the energy consumption of one multi-terminal node command is less than that of a plurality of single-terminal node commands and sending corresponding commands to corresponding terminal node units according to the judgment result;
and the updating and debugging module is used for updating the program and upgrading the terminal node unit on line.
When the centralized control unit communicates with the terminal node units, if the terminal node units need to execute the same command, the command sending module judges whether the energy consumption of one multi-terminal node command is less than that of a plurality of single-terminal node commands, if so, the command sending module sends one multi-terminal node command to each terminal node unit, and if not, the command sending module sends a plurality of single-terminal node commands to the corresponding terminal node units; if a plurality of terminal node units need to execute different commands, the command sending module sends a single terminal node command to the corresponding terminal node unit.
Aiming at the multi-terminal single-task application requirement of the single-type multi-terminal wireless transmission system, when a plurality of terminals need to execute the same command, the invention selects to send one multi-terminal node command or send a plurality of single-terminal node commands according to the energy loss, thereby effectively reducing the overall power consumption of the system.
As shown in fig. 1, the core control module further includes a retransmission module and a control module;
the retransmission module is used for retransmitting unsuccessfully transmitted data according to the reply frame of each terminal node unit;
and the control module is used for controlling the operation, display and storage of the centralized control unit.
The invention introduces the retransmission module, and improves the reliability of the wireless transmission of the batch command processing flow, the program online upgrading flow and the online debugging mode flow in the low-power-consumption working mode.
As shown in the attached figure 1, the centralized control unit further comprises a reset module, a display module, a storage module, a power module, a GPRS communication module and an Ethernet communication module, wherein the reset module, the display module, the storage module and the power module are all connected with the centralized control unit, the centralized control unit is connected with the server through the GPRS communication module, and the centralized control unit is connected with the PC host through the Ethernet communication module.
The storage module is the prior art and can be a storage chip; the display module can be an LED display screen and is used for alternately displaying the fault information of the terminal unit and the running state of the concentrator. The server can be used for remotely controlling the centralized control unit such as parameter setting, data acquisition and the like; the PC host can be used for controlling the centralized control unit locally, such as parameter setting, data acquisition and the like.
Example 2: as shown in fig. 1 and 2, a transmission method of the single-type multi-terminal low-power consumption wireless transmission system is characterized by comprising the following steps:
a first step of setting a second wireless communication module of each terminal node unit to a node mode;
secondly, the mode judging and switching module switches the application scene according to the command and switches the working mode of the first wireless communication module into the working mode corresponding to the switched application scene;
thirdly, the centralized control unit communicates with a plurality of terminal node units and sends control and read-write commands to the plurality of terminal node units;
and fourthly, each terminal node unit receives and executes the control and read-write command, and uploads the operation result and the request data after the command is finished.
The single-type multi-terminal low-power consumption wireless transmission system can be further optimized or/and improved according to actual needs:
as shown in fig. 1 and 2, the process of switching the application scene by the mode judging and switching module in the second step is as follows:
(1) the mode judging and switching module switches application scenes according to the commands, wherein the application scenes comprise a program updating mode, an online debugging mode and a low-power-consumption working mode;
the low power mode of operation here includes response to real-time control commands and periodic data uploads.
(2) The mode determination and switching module switches the working mode of the first wireless communication module to the working mode corresponding to the switched application scenario, which is specifically as follows:
a. if the application scene is switched to the program updating mode, switching the working mode of the first wireless communication module to a full-speed working mode;
b. if the application scene is switched to an online debugging mode, switching the working mode of the first wireless communication module to a fast channel mode;
c. and if the application scene is switched to the low-power-consumption working mode, switching the working mode of the first wireless communication module to the low-power-consumption working mode, namely the center mode.
As shown in fig. 1, 2, and 3, in the third step, the centralized control unit communicates with the plurality of terminal node units, and a specific process of sending the control and read-write command to the plurality of terminal node units is as follows:
(1) when the centralized control unit communicates with a plurality of terminal node units, the command sending module judges whether the plurality of terminal node units execute the same command, if the plurality of terminal node units execute the same command, the second step is carried out, and if the plurality of terminal node units execute different commands, the command sending module sends a single terminal node command to the corresponding terminal node unit;
(2) the command sending module judges whether the energy consumption of one multi-terminal node command is smaller than that of a plurality of single-terminal node commands, if so, the command sending module sends one multi-terminal node command to each terminal node unit, and if not, the command sending module sends the plurality of single-terminal node commands to the corresponding terminal node units.
As shown in fig. 4, in the third step, the centralized control unit communicates with multiple terminal node units by using a private protocol, where the private protocol includes a multi-terminal node command processing data frame, a single terminal node command processing data frame, and a terminal node unit uploading data frame or an acknowledgement frame; the data frame comprises a receiving end address, a command code, a transmitting byte number, command data and a CRC (cyclic redundancy check) code; the receiving end address of the command data frame of the multi-terminal node is a broadcast address, and the receiving end addresses of the command data frame of the single terminal node and the data frame uploaded by the terminal node unit are both corresponding terminal node unit addresses.
The command data in the data frame of the multi-terminal node unit prescribes the sending time of the data frame uploaded by the terminal node unit or the sending time of the confirmation frame, and the sending time interval of each terminal node unit is used for executing other parameters and time synchronization frames required by the command to the enabled zone bit of part of the terminal node units; the command data of the time synchronization frame includes time configuration parameters such as current configuration time, timing period, and the like.
The command data in the data frame of a single terminal node unit specifies the transmission time of the upload data frame or the acknowledgement frame of the terminal node unit, the transmission time interval of each terminal and other parameters required for executing the command.
The command data in the upload data frame or acknowledgement frame of the terminal node unit specifies the execution result, completion status, fault status, etc. of the command, and other return parameters of the terminal device.
As shown in fig. 5, after the terminal node unit finishes uploading the operation result and the request data, the centralized control unit enters the retransmission module according to the reply frame of each terminal node unit, and retransmits the data, which is specifically as follows:
(1) the retransmission module judges whether retransmission is needed according to the reply frame of each terminal node unit, and in response to the retransmission, the retransmission module packs all data frames needing retransmission to generate retransmission data;
(2) setting the starting time and time interval of retransmission according to the ending time of the execution of the previous command, and sending a retransmission data packet;
(3) judging whether the retransmission data packet is normally sent or not, if the retransmission data packet is normally sent, stopping retransmission, and if the data packet is not normally sent, continuing to enter a retransmission module for the abnormal data frame;
(4) and (3) judging whether the retransmission times are larger than the threshold times or not by the retransmission module, if so, reducing the priority, switching to the heartbeat packet query of a long time period, and if not, repeating the steps (2) to (3).
Example 3: under three application scenes of a program updating mode, an online debugging mode and a low-power-consumption working mode, the working process of the single-type multi-terminal low-power-consumption wireless transmission system is as follows:
first, as shown in fig. 6, the working process of the single-type multi-terminal low-power consumption wireless transmission system in the low-power consumption working mode is as follows:
in FIG. 6, t1Frame start time, t, for bulk request data and time sync frame reply2For recovering the frame interval, t3Starting retransmission module time for timeout;
1. setting a second wireless communication module of the terminal node unit to a node mode;
2. the mode judging and switching module switches the application scene of the centralized control unit into a low-power consumption working mode according to the command and switches the working mode of the first wireless communication module into a central mode;
3. the command sending module selects to send a multi-terminal node command after judging;
4. a command sending module prepares a time synchronization frame or a batch control request data frame;
5. the command transmitting module transmits the broadcast address to the terminal node unit,
6. the terminal node unit receives the command and then executes the command, and stores the operation result and the state of the terminal node unit;
7. replying the data frame to the control module according to the sending time period distributed by the command sending module;
8. and the retransmission module retransmits the data frame to be retransmitted according to the reply frame of each terminal node unit.
Secondly, as shown in fig. 7, the working process in the single-type multi-terminal low-power consumption wireless transmission system program update mode is as follows:
in FIG. 7, t1Switching time, t, for wireless communication module mode2To prepare for the frame return time, t3For the transmission of interval time, t, of program segments4Transmission time, t, for upgrade results5Starting retransmission module time for timeout;
1. setting a second wireless communication module of the terminal node unit to a node mode;
2. the mode judging and switching module switches the application scene of the centralized control unit into a program updating mode according to the command and switches the working mode of the first wireless communication module into a full-speed working mode;
3. after the command sending module judges, selecting to send a multi-terminal node command or a single-terminal node command;
4. the terminal node unit receives the command to switch the working mode and finishes returning to the ready frame;
5. the updating and debugging module prepares a program to be upgraded of a terminal node unit, divides the program into program segments with proper sizes, numbers the program segments, and adds an end identifier in the last program segment;
6. the updating and debugging module sends program segments to the terminal node unit segment by segment;
7. after receiving the program segments, the terminal node unit calculates and checks the program segments segment by segment, and the correct program segment and the wrong program segment are respectively provided with different zone bits;
6. after receiving the end identifier of the program segment, the terminal node unit returns the program upgrading result to the updating and debugging module;
8. and the retransmission module is used for retransmitting the data frame to be retransmitted according to the program upgrading result of the terminal node unit.
Thirdly, as shown in fig. 8, the working process of the single-type multi-terminal low-power wireless transmission system in the online debugging mode is as follows:
in FIG. 8, t1Switching time, t, for wireless communication module mode2To prepare for the frame return time, t3Interacting time, t, for online debugging data4Starting retransmission module time for timeout;
1. setting a second wireless communication module of the terminal node unit to a node mode;
2. the mode judging and switching module switches the application scene of the centralized control unit into an online debugging mode according to the command and switches the working mode of the first wireless communication module into a fast channel mode;
3. after the command sending module judges, selecting to send a multi-terminal node command or a single-terminal node command;
4. the terminal node unit receives the command to switch the working mode and finishes returning to the ready frame;
5. the updating and debugging module sends online debugging data to the terminal node unit, wherein the online debugging data comprises contents such as writing parameters, reading data and control frames;
6. the terminal node unit returns an online debugging result (namely a confirmation frame, an uploading frame, a result frame or a data error) to the updating and debugging module;
7. and if the updating and debugging module does not receive the online debugging result returned by the terminal node unit or receives the online debugging result with data errors, the retransmission module retransmits the online debugging data.
The technical characteristics form an embodiment of the invention, which has strong adaptability and implementation effect, and unnecessary technical characteristics can be increased or decreased according to actual needs to meet the requirements of different situations.

Claims (6)

1. A single-type multi-terminal low-power-consumption wireless transmission system is characterized by comprising a centralized control unit and a plurality of terminal node units, wherein the centralized control unit comprises a first wireless communication module and a core control module, the core control module comprises a mode judging and switching module, a command sending module and an updating and debugging module, and a second wireless communication module is arranged in each terminal node unit;
the core control module is used for sending commands to the terminal node unit and carrying out program updating and online upgrading on the terminal node unit;
the mode judging and switching module is used for switching the application scenes of the centralized control unit according to the commands and switching the working mode of the first wireless communication module into the working mode corresponding to the switched application scenes; the application scenes which can be switched by the mode judging and switching module comprise a program updating mode, an online debugging mode and a low-power-consumption working mode; the working modes of the first wireless communication module comprise a full-speed working mode corresponding to a program updating mode, a fast channel mode corresponding to an online debugging mode and a low-power-consumption working mode corresponding to a low-power-consumption working mode;
the command sending module is used for judging whether the energy consumption of one multi-terminal node command is less than that of a plurality of single-terminal node commands and sending corresponding commands to corresponding terminal node units according to the judgment result;
the updating and debugging module is used for updating programs and upgrading on line for the terminal node unit;
the first wireless communication module is used for the centralized control unit to communicate with the terminal node units;
the second wireless communication module is used for the centralized control unit to communicate with the terminal node units;
and the terminal node unit is used for receiving and executing the control and read-write commands sent by the centralized control unit and uploading the operation results and the request data after the commands are finished.
2. The single-type multi-terminal low power consumption wireless transmission system according to claim 1, wherein the core control module further comprises a retransmission module and a control module;
the retransmission module is used for retransmitting unsuccessfully transmitted data according to the reply frame of each terminal node unit;
and the control module is used for controlling the operation, display and storage of the centralized control unit.
3. The single-type multi-terminal low-power consumption wireless transmission system according to any one of claims 1 to 2, further comprising a server and a PC host, wherein the centralized control unit further comprises a reset module, a display module, a storage module, a power module, a GPRS communication module and an ethernet communication module, the reset module, the display module, the storage module and the power module are all connected with the centralized control unit, the centralized control unit is connected with the server through the GPRS communication module, and the centralized control unit is connected with the PC host through the ethernet communication module.
4. A transmission method of a single-type multi-terminal low power consumption wireless transmission system according to any of claims 1 to 3, characterized by comprising the steps of:
a first step of setting a second wireless communication module of each terminal node unit to a node mode;
secondly, the mode judging and switching module switches the application scene according to the command and switches the working mode of the first wireless communication module into the working mode corresponding to the switched application scene, and the specific process is as follows:
(1) the mode judging and switching module switches application scenes according to the commands, wherein the application scenes comprise a program updating mode, an online debugging mode and a low-power-consumption working mode;
(2) the mode determination and switching module switches the working mode of the first wireless communication module to the working mode corresponding to the switched application scenario, which is specifically as follows:
a. if the application scene is switched to the program updating mode, switching the working mode of the first wireless communication module to a full-speed working mode;
b. if the application scene is switched to an online debugging mode, switching the working mode of the first wireless communication module to a fast channel mode;
c. if the application scene is switched to a low-power-consumption working mode, switching the working mode of the first wireless communication module to the low-power-consumption working mode, namely a center mode;
thirdly, the centralized control unit communicates with a plurality of terminal node units and sends control and read-write commands to the plurality of terminal node units, and the specific process is as follows:
(1) when the centralized control unit communicates with a plurality of terminal node units, the command sending module judges whether the plurality of terminal node units execute the same command, if the plurality of terminal node units execute the same command, the second step is carried out, and if the plurality of terminal node units execute different commands, the command sending module sends a single terminal node command to the corresponding terminal node unit;
(2) the command sending module judges whether the energy consumption of one multi-terminal node command is smaller than that of a plurality of single-terminal node commands, if so, the command sending module sends one multi-terminal node command to each terminal node unit, and if not, the command sending module sends the plurality of single-terminal node commands to the corresponding terminal node units;
and fourthly, each terminal node unit receives and executes the control and read-write command, and uploads the operation result and the request data after the command is finished.
5. The transmission method of a single-type multi-terminal low-power consumption wireless transmission system according to claim 4, wherein in the third step, the centralized control unit communicates with the plurality of terminal node units using a private protocol, the private protocol including a multi-terminal node command processing data frame, a single-terminal node command processing data frame, and a terminal node unit uploading data frame or an acknowledgement frame; the data frame comprises a receiving end address, a command code, a transmitting byte number, command data and a CRC (cyclic redundancy check) code; the receiving end address of the command data frame of the multi-terminal node is a broadcast address, and the receiving end addresses of the command data frame of the single terminal node and the data frame uploaded by the terminal node unit are both corresponding terminal node unit addresses.
6. The transmission method of the single-type multi-terminal low-power consumption wireless transmission system according to claim 4 or 5, further comprising the following steps that after the terminal node unit completes command uploading operation results and data request, the centralized control unit enters the retransmission module according to reply frames of each terminal node unit to retransmit the data:
(1) the retransmission module judges whether retransmission is needed according to the reply frame of each terminal node unit, and in response to the retransmission, the retransmission module packs all data frames needing retransmission to generate retransmission data;
(2) setting the starting time and time interval of retransmission according to the ending time of the execution of the previous command, and sending a retransmission data packet;
(3) judging whether the retransmission data packet is normally sent or not, if the retransmission data packet is normally sent, stopping retransmission, and if the data packet is not normally sent, continuing to enter a retransmission module for the abnormal data frame;
(4) and (3) judging whether the retransmission times are larger than the threshold times or not by the retransmission module, if so, reducing the priority, switching to the heartbeat packet query of a long time period, and if not, repeating the steps (2) to (3).
CN201811065820.3A 2018-09-13 2018-09-13 Single-type multi-terminal low-power-consumption wireless transmission system and transmission method thereof Active CN109327832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811065820.3A CN109327832B (en) 2018-09-13 2018-09-13 Single-type multi-terminal low-power-consumption wireless transmission system and transmission method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811065820.3A CN109327832B (en) 2018-09-13 2018-09-13 Single-type multi-terminal low-power-consumption wireless transmission system and transmission method thereof

Publications (2)

Publication Number Publication Date
CN109327832A CN109327832A (en) 2019-02-12
CN109327832B true CN109327832B (en) 2021-09-14

Family

ID=65265656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811065820.3A Active CN109327832B (en) 2018-09-13 2018-09-13 Single-type multi-terminal low-power-consumption wireless transmission system and transmission method thereof

Country Status (1)

Country Link
CN (1) CN109327832B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112071050A (en) * 2020-08-12 2020-12-11 南京南瑞信息通信科技有限公司 Concentrator terminal and electricity consumption data acquisition system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152803A (en) * 2013-03-04 2013-06-12 山东大学 Fixed network structure-based ultra-lightweight wireless communication protocol
CN105228176A (en) * 2015-08-21 2016-01-06 慧感(上海)物联网科技有限公司 A kind of sensing node operational mode switching method of lightweight radio sensing network
CN108494816A (en) * 2018-02-06 2018-09-04 伦图科技(广州)有限公司 Data transmission method, system, equipment based on LPWAN and readable storage medium storing program for executing
CN108738163A (en) * 2018-05-23 2018-11-02 吉林大学 A kind of large-scale wireless sensor sensory perceptual system and its M2M communication method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152803A (en) * 2013-03-04 2013-06-12 山东大学 Fixed network structure-based ultra-lightweight wireless communication protocol
CN105228176A (en) * 2015-08-21 2016-01-06 慧感(上海)物联网科技有限公司 A kind of sensing node operational mode switching method of lightweight radio sensing network
CN108494816A (en) * 2018-02-06 2018-09-04 伦图科技(广州)有限公司 Data transmission method, system, equipment based on LPWAN and readable storage medium storing program for executing
CN108738163A (en) * 2018-05-23 2018-11-02 吉林大学 A kind of large-scale wireless sensor sensory perceptual system and its M2M communication method

Also Published As

Publication number Publication date
CN109327832A (en) 2019-02-12

Similar Documents

Publication Publication Date Title
JP5038399B2 (en) Method and apparatus for controlling energy deployment of sensor network nodes
CN105450489A (en) HEBus efficient fieldbus system for preferably realizing shortest message in output and communication method
CN104345717A (en) Intelligent remote data acquisition system based on Internet of Things
CN106874237A (en) Method of data synchronization and system based on two lines bus
CN111031565B (en) Method and device for identifying off-line state of ZigBee device
CN109884978A (en) A kind of remote system and its method for PLC device debugging
CN105652785A (en) PLC (programmable logic controller) communication module based on IEC (international electrotechnical commission) 60870-5-104 telecontrol protocol
CN109327832B (en) Single-type multi-terminal low-power-consumption wireless transmission system and transmission method thereof
CN110365114A (en) The energy-accumulating power station total management system and information interacting method integrated based on multimode
CN103888276A (en) WIA network online node firmware remote upgrading method
CN103685178A (en) Industrial wireless network oriented online debugging method and system
US11703832B2 (en) Production system, communication method, and information storage medium
CN110944299B (en) Multicast method and system thereof
CN111355648B (en) RTU dual-computer redundancy acquisition system based on synchronous time window
CN114691493A (en) Lithium battery testing method and system
Fang et al. Research and Implementation of Collision Detection Based on Modbus Protocol.
CN113364659B (en) Data acquisition system based on Modbus protocol
CN117579423B (en) Bus extension module and communication method using same
CN110099001A (en) The machinery of consultation of two-way converting parameters of detection time, device and electronic equipment
CN112283886B (en) Control method and device of multi-connected air conditioning unit and multi-connected air conditioning unit
CN113285859B (en) Two-bus system, control method and device, sensor and access method
CN114760015B (en) EMS remote adjustment remote control success rate improving method based on redundant design and strategy control
Yang et al. A Method of reducing bus transmission errors of stepping motor driver
CN104698943A (en) Data acquisition method applied to industrial wireless data acquisition system with ultra-low power consumption
CN114333833A (en) Offline voice central control implementation method and device based on modified LoRaWAN protocol

Legal Events

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