CN113133097B - Wireless communication method and system - Google Patents

Wireless communication method and system Download PDF

Info

Publication number
CN113133097B
CN113133097B CN202010049596.XA CN202010049596A CN113133097B CN 113133097 B CN113133097 B CN 113133097B CN 202010049596 A CN202010049596 A CN 202010049596A CN 113133097 B CN113133097 B CN 113133097B
Authority
CN
China
Prior art keywords
data
frame
instruction
data collector
collector
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
CN202010049596.XA
Other languages
Chinese (zh)
Other versions
CN113133097A (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.)
Shenzhen Shengsi Intelligent Technology Co ltd
Original Assignee
Shenzhen Shengsi Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Shengsi Intelligent Technology Co ltd filed Critical Shenzhen Shengsi Intelligent Technology Co ltd
Priority to CN202010049596.XA priority Critical patent/CN113133097B/en
Publication of CN113133097A publication Critical patent/CN113133097A/en
Application granted granted Critical
Publication of CN113133097B publication Critical patent/CN113133097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application is applicable to the technical field of communication, and provides a wireless communication method and a wireless communication system, wherein the wireless communication system comprises a data aggregator and at least one data acquirer capable of being in wireless communication connection with the data aggregator, and the wireless communication method comprises the following steps: in a synchronous communication mode, a data aggregator sends time synchronization data frames to all data collectors in the time synchronization period of each communication cycle; the time synchronization data frame comprises a subsequent frame mark; the subsequent frame mark is used for marking whether the data aggregator is a first instruction frame to be issued in the communication period, and the first instruction frame is used for indicating the data acquirer to upload data; after the data collector receives the time synchronization data frame, if the data collector detects that the identification of the subsequent frame is used for identifying that the data collector does not have the first instruction frame to be issued in the communication period, the data collector closes the wireless communication unit of the data collector. The wireless communication method can reduce the power consumption of the data acquisition unit and prolong the endurance time of the data acquisition unit.

Description

Wireless communication method and system
Technical Field
The present application relates to the field of communications technologies, and in particular, to a wireless communication method and system.
Background
The internet of things device refers to an electronic device applied to the internet of things, and generally has functions of data acquisition, data collection, and/or data processing, for example, the internet of things device including or connected with a sensor generally has a data acquisition function, and such an internet of things device is generally called a data acquisition device; the internet of things device containing the processor generally has a data gathering function and/or a data processing function, and such an internet of things device is generally called a data aggregator, and the data aggregator need to perform an entire process from data acquisition to data aggregation and/or data processing through data interaction. The existing data collector and the data aggregator usually adopt a wireless communication mode for data interaction, however, after the existing data collector establishes wireless communication connection with the data aggregator, no matter whether the data collector needs to perform data interaction with the data aggregator or not, the wireless communication unit of the data collector is always kept in an open state, so that the power consumption of the data collector is increased, and the endurance time of the data collector is shortened.
Disclosure of Invention
The embodiment of the application provides a wireless communication method and a wireless communication system, which can reduce the power consumption of a data acquisition unit and prolong the endurance time of the data acquisition unit.
In a first aspect, an embodiment of the present application provides a wireless communication method, including:
in a synchronous communication mode, the data aggregator sends time synchronization data frames to all the data collectors in the time synchronization period of each communication cycle; the time synchronization data frame comprises a subsequent frame identifier; the subsequent frame identifier is used for identifying whether the data aggregator is to send a first instruction frame in the communication cycle, and the first instruction frame is used for instructing the data acquirer to upload data;
and after the data collector receives the time synchronization data frame, if the data collector detects that the subsequent frame identification is used for identifying that the data collector has no first instruction frame to be issued in the communication period, the data collector closes the wireless communication unit of the data collector.
Further, after the data aggregator sends time synchronization data frames to all the data collectors in the time synchronization period of each communication cycle, the method further includes:
after the data collector receives the time synchronization data frame, if the data collector detects that the subsequent frame identification is used for identifying a first instruction frame to be issued by the data collector in the communication cycle, the data collector receives the first instruction frame issued by the data collector in the time synchronization period; the first instruction frame comprises instruction content of the first instruction frame and an identifier of a target data acquisition unit aimed at by the first instruction frame;
if the data collector detects that the identification of the data collector is the same as the identification of the target data collector, generating a first instruction response data frame aiming at the instruction content, and uploading the first instruction response data frame to the data collector in the target instruction response time interval of the communication cycle; the target instruction response time interval is an instruction response time interval corresponding to the data acquisition unit;
and after the first instruction response data frame is uploaded, the data acquisition unit closes the wireless communication unit.
Further, the data collector turns off its wireless communication unit after the first instruction response data frame is uploaded, including:
after the first instruction response data frame is uploaded, if the data collector does not need to actively upload data to the data collector in the communication period, the data collector closes the wireless communication unit.
Further, after the data collector uploads the first command response data frame to the data aggregator in the target command response period of the communication cycle, the method further includes:
if the data aggregator detects that the instruction response content in the first instruction response data frame is incomplete, issuing a second instruction frame to the target data collector in the time synchronization period of the next communication cycle; the second instruction frame is used for instructing the target data acquisition unit to upload instruction response contents missing in the first instruction response data frame;
the target data collector uploads a second instruction response data frame aiming at the second instruction frame to the data collector in the target instruction response time interval of the next communication cycle; the second instruction response data frame comprises the instruction response content missing from the first instruction response data frame.
Further, the data collector turns off its wireless communication unit after the first instruction response data frame is uploaded, including:
after the data collector finishes uploading the first instruction response data frame, if the data collector detects that the current time does not reach the end time of the target instruction response time interval, the data collector continues to upload the first instruction response data frame to the data collector until the current time reaches the end time of the target instruction response time interval, and the data collector closes the wireless communication unit of the data collector.
Further, after the data collector receives the first instruction frame issued by the data collector in the time synchronization period, the method further includes:
and if the data aggregator does not receive the first instruction response data frame uploaded by the target data acquirer, the data aggregator sends the first instruction frame to the target data acquirer again in the time synchronization period of the next communication cycle.
Further, after the data collector receives the first instruction frame issued by the data collector in the time synchronization period, the method further includes:
and if the data acquisition unit detects that the identification of the data acquisition unit is different from the identification of the target data acquisition unit, closing the wireless communication unit.
Further, if the data collector detects that the subsequent frame identifier is used to identify that the data collector has no first instruction frame to be issued in the communication cycle, after the data collector closes its wireless communication unit, the method further includes:
if the data collector needs to actively upload data to the data aggregator in the communication cycle, the data collector starts a wireless communication unit thereof in the target data uploading time period of the communication cycle, establishes wireless communication connection with the data aggregator, and uploads target data to be uploaded to the data aggregator;
and after the target data is uploaded, the data acquisition unit closes the wireless communication unit of the data acquisition unit.
Further, after the data collector uploads the target data to be uploaded to the data aggregator, the method further includes:
and after receiving the target data, the data aggregator generates a data uploading response frame aiming at the target data, and sends the data uploading response frame to the data collector uploading the target data in the time synchronization period of the next communication cycle.
In a second aspect, an embodiment of the present application further provides a wireless communication system, including a data aggregator and at least one data collector that can be in wireless communication connection with the data aggregator;
the data aggregator is used for sending time synchronization data frames to all the data collectors in the time synchronization period of each communication cycle in a synchronous communication mode; the time synchronization data frame comprises a subsequent frame identifier; the subsequent frame identifier is used for identifying whether the data aggregator is to send a first instruction frame in the communication cycle, and the first instruction frame is used for instructing the data acquirer to upload data;
and the data collector is used for closing the wireless communication unit if the data collector detects that the subsequent frame identification is used for identifying that the data collector does not have a first instruction frame to be issued in the communication period after receiving the time synchronization data frame.
Compared with the prior art, the embodiment of the application has the advantages that:
in any communication cycle, when the data aggregator does not need to issue a first instruction frame for instructing the data aggregator to upload data to the data acquirer, that is, when the data acquirer does not need to perform data interaction with the data aggregator, the data aggregator may include, in a time synchronization frame, a subsequent frame identifier for identifying that the data aggregator does not have the first instruction frame to be issued in the communication cycle, and send the time synchronization data frame to all the data acquirers in a time synchronization period of the communication cycle; after the data acquisition unit receives the time synchronization data frame, if it is detected that a subsequent frame identifier in the time synchronization data frame is used for identifying that the data aggregator does not have a first instruction frame to be issued in the communication period, the data acquisition unit is considered to be not required to perform data interaction with the data aggregator in the communication period, and at the moment, the data acquisition unit closes the wireless communication unit of the data acquisition unit, so that the power consumption of the data acquisition unit can be reduced, and the endurance time of the data acquisition unit can be prolonged.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of an implementation of a wireless communication method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a wireless communication system according to an embodiment of the present application;
fig. 3 is a specific diagram of each time period included in one communication cycle according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of each instruction frame and each data frame provided in an embodiment of the present application;
fig. 5 is a flowchart illustrating an implementation of a wireless communication method according to another embodiment of the present application;
fig. 6 is a flowchart illustrating an implementation of a wireless communication method according to yet another embodiment of the present application;
fig. 7 is a flowchart illustrating an implementation of a wireless communication method according to another embodiment of the present application;
fig. 8 is a flowchart illustrating an implementation of a wireless communication method according to another embodiment of the present application;
fig. 9 is a flowchart illustrating an implementation of a wireless communication method according to another embodiment of the present application;
fig. 10 is a flowchart of an implementation of a wireless communication method according to another embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a wireless communication method according to an embodiment of the present application, where the wireless communication method according to the embodiment of the present application can be applied to the wireless communication system shown in fig. 2. As shown in fig. 2, wireless communication system 100 includes a data aggregator 11 and at least one data collector 12 that is in wireless communication connection with data aggregator 11. The data aggregator 11 refers to an internet of things device having a data aggregation function and/or a data processing function, for example, the data aggregator 11 may be an internet of things device including a processor, and in practical applications, the data aggregator includes but is not limited to various servers. Data collector 12 refers to an internet of things device with data collection function, for example, data collector 12 may be an internet of things device containing or connected with a sensor, and in practical applications, the data collector includes but is not limited to a fault indicator and a laser scanner. The internet of things equipment refers to electronic equipment applied to the internet of things.
In practical applications, the data aggregator generally needs to communicate with each data collector wirelessly, for example, when the data aggregator needs to obtain data from the data collector, the data aggregator generally sends instructions to the data aggregator for instructing the data collector to upload the data, and the data collector generally uploads the data required by the data aggregator to the data aggregator. In the embodiment of the application, the data collector and the data aggregator can perform wireless communication based on a synchronous communication mode and can also perform wireless communication based on an asynchronous communication mode, and the wireless communication is specifically set according to actual requirements. In this embodiment, in order to reduce power consumption of the data collector and the data aggregator, the wireless communication mode of the data collector and the data aggregator may be set as a synchronous communication mode by default, and the wireless communication mode of the data collector and the data aggregator may be switched to an asynchronous communication mode when needed in some occasions. It should be noted that, when the wireless communication mode of the data collector and the data aggregator defaults to the synchronous communication mode, the data collector and the data aggregator enter the synchronous communication mode each time after establishing wireless communication connection with each other.
In practical applications, the process of wireless communication between the data collector and the data aggregator generally involves the following scenarios: the data collector issues an instruction to the data collector, the data collector responds to the instruction issued by the data collector, the data collector uploads data to the data collector, and the data collector responds to the data collector after receiving the data uploaded by the data collector. When the data collector and the data aggregator perform wireless communication in a synchronous communication manner, the data collector needs to synchronize the clock of the data aggregator with the clock of the data aggregator when the data collector and the data aggregator perform wireless communication because the synchronous communication requires that the clocks of the two communication parties keep synchronous.
Based on this, as shown in fig. 3, in the present embodiment, each communication cycle when the data collector and the data aggregator perform wireless communication is divided into a time synchronization period, an instruction response period, and a data upload period. The time synchronization period is earlier than the instruction response period, the instruction response period is earlier than the data uploading period, and the duration of the communication cycle and the duration of each different period contained in the communication cycle can be set according to actual needs. It should be noted that, in order to avoid mutual interference between the data aggregator and the data collector when transmitting and receiving data at the same time, in this embodiment, each time period included in the communication cycle only supports one end of both communication parties to receive data or transmit data.
Specifically, the time synchronization period refers to a period of time for the data collector and the data aggregator to perform time synchronization, and the period of time only allows the data aggregator to issue instructions and/or data to the data collector. During the time period, the data aggregator may synchronize its clock with the data aggregator's clock based on the time synchronization data frame by sending the time synchronization data frame to the data acquirer. In some embodiments of the present application, when the data aggregator needs to instruct the data collector to upload data, the data aggregator may further send, to the data collector, an instruction frame for instructing the data collector to upload data in the time synchronization period.
The instruction response time interval refers to the time interval when the data collector responds to an instruction frame issued by the data aggregator, and only allows the data collector to upload data to the data aggregator. In the time period, the data collector can generate an instruction response frame aiming at the instruction frame according to the instruction frame issued by the data collector, and upload the instruction response frame to the data collector. It should be noted that, when the wireless communication system includes at least two data collectors, in order to prevent the data collectors from interfering with each other when sending data simultaneously, the instruction response time period may be divided into a plurality of target instruction response time periods corresponding to the data collectors according to the number of the data collectors, and each target instruction response time period only allows the data collector corresponding to the target instruction response time period to send data to the data collector. For example, continuing with fig. 3, assuming that the wireless communication system includes 4 data collectors, the command response period can be divided into 4 target command response periods, A, B, C and D respectively. The target command response periods A, B, C and D correspond to 4 data collectors, respectively. In practical application, the duration of each target instruction response period can be set according to actual needs. In a possible implementation manner of this embodiment, the durations of all target instruction response periods may be equal, that is, the total duration of the instruction response periods may be divided equally, so that the durations of the target instruction response periods corresponding to each divided data collector are equal; in another possible implementation manner of this embodiment, the durations of the target instruction response periods may also be unequal, for example, the duration proportion of each data collector may be determined according to historical data interaction amount between each data collector and the data aggregator, and the total duration of the instruction response periods is divided according to the duration proportion of each data collector, so that the durations of the target instruction response periods divided by the data collectors with longer durations are longer, and the durations of the target instruction response periods divided by the data collectors with shorter durations are shorter.
The data uploading time interval refers to the time interval when the data collector actively uploads data to the data aggregator, and only allows the data collector to upload data to the data aggregator. It should be noted that, when the wireless communication system includes at least two data collectors, in order to prevent mutual interference when multiple data collectors upload data at the same time, the data upload time period may be divided into multiple target data upload time periods corresponding to the data collectors respectively according to the number of the data collectors, and each target data upload time period only allows the data collector corresponding to the target data upload time period to upload data to the data collector. For example, referring to fig. 3, assuming that the wireless communication system includes 4 data collectors, the data upload time period may be divided into 4 target data upload time periods, which are a, b, c and d, respectively. The target data uploading time periods a, b, c and d correspond to 4 data collectors respectively. In practical application, the duration of each target data uploading period can be set according to actual needs. In a possible implementation manner of this embodiment, the durations of all target data upload time periods may be equal, that is, the total duration of the data upload time periods may be divided equally, so that the durations of the target data upload time periods corresponding to each divided data collector are equal; in another possible implementation manner of this embodiment, the durations of the target data upload periods may also be unequal, for example, the duration proportion of each data collector may be determined according to historical data interaction amount between each data collector and the data aggregator, and the total duration of the data upload periods is divided according to the duration proportion of each data collector, so that the durations of the target data upload periods divided by the data collectors with a longer duration proportion are longer, and the durations of the target data upload periods divided by the data collectors with a shorter duration proportion are shorter.
Based on this, the following describes in detail the steps included in the wireless communication method corresponding to fig. 1:
in S101, in a synchronous communication mode, the data aggregator sends time synchronization data frames to all the data collectors in a time synchronization period of each communication cycle; the time synchronization data frame comprises a subsequent frame identifier; the subsequent frame identifier is used for identifying whether the data aggregator is to send a first instruction frame in the communication cycle, and the first instruction frame is used for instructing the data acquirer to upload data.
In this embodiment of the present application, when the data aggregator and the data collector are in a synchronous communication mode, the data aggregator may send a time synchronization data frame to all the data collectors at the start time of the time synchronization period of each communication cycle. The time synchronization data frame may include a subsequent frame identifier for identifying whether the data aggregator is to send the first instruction frame in the communication cycle. The first instruction frame is used for instructing the data collector to upload data required by the data collector.
In practical application, the identifier of the subsequent frame may be represented by 0 or 1, for example, when the identifier of the subsequent frame is 1, the identifier may be used to identify a first instruction frame to be issued by the data aggregator in the communication period, that is, after the data aggregator finishes sending the time synchronization data frame, the data aggregator may issue the first instruction frame to the data acquirer in the communication period; and when the mark of the subsequent frame is 0, the subsequent frame is used for marking that the data aggregator does not have a first instruction frame to be issued in the communication period, namely, the data aggregator does not issue the first instruction frame to the data acquirer in the communication period after sending the time synchronization data frame.
In practical applications, in order to provide a reference time of the calibration clock for the data collector, as shown in fig. 4, the time synchronization data frame includes, in addition to the identification of the subsequent frame, a frame type of the time synchronization data frame and a time for preparing to transmit the time synchronization data frame. The frame type is used for making the data collector know that the frame is a time synchronization data frame.
Based on the time difference, the time for the data collector to prepare to send the time synchronization data frame and the time for the data collector to receive the time synchronization data frame are recorded when the data collector receives the time synchronization data frame, and the clock error between the data collector and the data aggregator is determined based on the preset time difference, the time for the data collector to prepare to send the time synchronization data frame and the time for the data collector to receive the time synchronization data frame. The preset time difference is a time interval between the time for preparing and sending the time synchronization data frame and the time corresponding to the data aggregator when the data aggregator receives the time synchronization data frame. In practical applications, the preset time difference may be determined according to the length of the time synchronization data frame and the data sending rate of the data aggregator, for example, the ratio of the length of the time synchronization data frame to the data sending rate of the data aggregator may be determined as the preset time difference.
In practical applications, the data collector may determine the clock error between it and the data collector according to the following formula: and T0+ Δ T-T1, where Δ T is the clock error between the data collector and the data aggregator, T0 is the time for preparing and sending the time synchronization data frame, Δ T is the preset time difference, and T1 is the time for receiving the time synchronization data frame by the data collector.
And after the data acquisition unit calculates the clock error between the data acquisition unit and the data collector, calibrating the clock of the data acquisition unit based on the clock error. Specifically, the data collector may calibrate its clock at time t3 after calculating the clock error between the data collector and the data aggregator, and calibrate the time corresponding to time t3 as time t3+ Δ t, thereby implementing clock synchronization between the data collector and the data aggregator.
In S102, after the data collector receives the time synchronization data frame, if it is detected that the subsequent frame identifier is used to identify that the data aggregator does not have a first instruction frame to be issued in the communication period, the data collector turns off its wireless communication unit.
In the embodiment of the application, after each data collector receives a time synchronization data frame issued by the data collector, it is required to detect a subsequent frame identifier in the time synchronization data frame, and further determine whether the data collector has a first instruction frame to be issued in the communication period.
Specifically, if the data collector detects that a subsequent frame identifier in the time synchronization data frame is used to identify that the data collector does not have a first instruction frame to be issued in the communication period, it indicates that the data collector does not need to issue the first instruction frame to each data collector in the communication period after issuing the time synchronization data frame, that is, it indicates that the data collector does not need to perform data interaction with the data collector in the communication period, and at this time, the data collector closes its wireless communication unit.
As can be seen from the above, in any communication cycle, when the data aggregator does not need to issue the first instruction frame for instructing the data acquirer to upload data to the data acquirer, that is, the data acquirer does not need to perform data interaction with the data aggregator, the data aggregator may include, in a time synchronization frame, a subsequent frame identifier for identifying that the data aggregator does not have the first instruction frame to be issued in the communication cycle, and send the time synchronization data frame to all the data acquirers in the time synchronization period of the communication cycle; after the data acquisition unit receives the time synchronization data frame, if it is detected that a subsequent frame identifier in the time synchronization data frame is used for identifying that the data aggregator does not have a first instruction frame to be issued in the communication period, the data acquisition unit is considered to be not required to perform data interaction with the data aggregator in the communication period, and at the moment, the data acquisition unit closes the wireless communication unit of the data acquisition unit, so that the power consumption of the data acquisition unit can be reduced, and the endurance time of the data acquisition unit can be prolonged.
Referring to fig. 5, fig. 5 is a flowchart illustrating an implementation of a wireless communication method according to another embodiment of the present application. With respect to the embodiment corresponding to fig. 1, the wireless communication method provided in this embodiment may further include S201 to S203 after S101, which are detailed as follows:
in S201, after the data collector receives the time synchronization data frame, if it is detected that the subsequent frame identifier is used to identify a first instruction frame to be issued by the data aggregator in the communication cycle, the data collector receives the first instruction frame issued by the data aggregator in the time synchronization period; the first instruction frame comprises instruction content of the first instruction frame and an identifier of a target data collector aimed at by the first instruction frame.
In this embodiment, when the data aggregator needs to issue the first instruction frame for instructing the target data collector to upload data to the target data collector within a certain communication cycle, the data aggregator may set the identifier of the subsequent frame in the time synchronization data frame to 1, and issue the first instruction frame to the target data collector at the time synchronization period of the communication cycle. In a possible implementation manner of this embodiment, the data aggregator may issue the first instruction frame in a broadcast manner, and when the data aggregator issues the first instruction frame in a broadcast manner, the data aggregator may include an identifier of a target data collector to which the first instruction frame is directed in the first instruction frame. It can be understood that the number of the first instruction frames sent by the data aggregator to the data collector may be one, or may be at least two, and when the data aggregator needs to send at least two first instruction frames to the data collector, each first instruction frame may further include an identifier of the first instruction frame. In practical applications, the identifier of the first instruction frame may be a number of the first instruction frame, or may also be a name of the first instruction frame.
It should be noted that, when the data aggregator issues the first instruction frame in the form of broadcast, all the data acquirers in wireless communication connection with the data aggregator may receive the first instruction frame. In this embodiment, when detecting that the subsequent frame identifier in the time synchronization data frame is used to identify the first instruction frame to be issued by the data aggregator in the communication cycle, each data acquirer considers that the data aggregator also issues the first instruction frame to the data aggregator in the time synchronization period of the communication cycle, and therefore, each data acquirer receives the first instruction frame issued by the data aggregator in the time synchronization period after synchronizing the clock thereof.
Because the first instruction frame is issued for the target data collector, the target data collector only needs to respond to the first instruction frame, and the other data collectors except the target data collector do not need to respond to the first instruction frame. Specifically, the data collector compares the identifier with the identifier of the target data collector contained in the first instruction frame, and if a certain data collector detects that the identifier is the same as the identifier of the target data collector contained in the first instruction frame, the data collector considers that the certain data collector is the target data collector, and at this time, the data collector executes S202 to S203; if a data collector detects that the identifier of the data collector is different from the identifier of the target data collector included in the first instruction frame, the data collector determines that the data collector is not the target data collector, and at this time, the data collector executes S204 shown in fig. 6.
In S202, if the data collector detects that the identifier of the data collector is the same as the identifier of the target data collector, the data collector generates a first instruction response data frame for the instruction content, and uploads the first instruction response data frame to the data aggregator in a target instruction response period of the communication cycle; the target instruction response time interval is an instruction response time interval corresponding to the data acquisition unit.
In this embodiment, if a data collector detects that the identifier of the data collector is the same as the identifier of the target data collector included in the first instruction frame, the data collector determines that the first instruction frame is sent for itself, and at this time, the data collector generates a first instruction response data frame based on the instruction content in the first instruction frame, and uploads the first instruction response data frame to the data collector in the target instruction response period of the communication cycle.
The first instruction response data frame includes an identifier of a target data collector which generates the first instruction response data frame and instruction response content corresponding to the instruction content of the first instruction frame, and the instruction response content generally includes data to be uploaded indicated by the data collector. It can be understood that, when the number of the first instruction frames is at least two, since each first instruction frame needs to be responded, in order to distinguish the response objects to which the first instruction response data frames are directed, the target data collector may further add the identifier of the first instruction frame to which the first instruction response data frame is directed to the first instruction response data frame. For example, if a first command response data frame is a response to a first command frame identified as 111, the identification 111 of the first command frame may be added to the first command response data frame.
The target instruction response time interval is an instruction response time interval corresponding to the data collector which uploads the first instruction response data frame to the data collector. For example, referring to fig. 3 again, if the command response period corresponding to a certain target data collector is a, the period a is the target command response period, and the target data collector uploads a first command response data frame to the data collector within the period a.
In S203, the data collector turns off its wireless communication unit after the first instruction response data frame is uploaded.
In this embodiment, after the data collector finishes uploading the first instruction response data frame, the wireless communication unit is turned off, so that the power consumption of the data collector can be reduced.
As an embodiment of the present application, S203 may specifically include the following steps:
after the data collector finishes uploading the first instruction response data frame, if the data collector does not need to actively upload data to the data collector in the communication period, the data collector closes the wireless communication unit.
In this embodiment, after the uploading of the first instruction response data frame is completed, each target data collector needs to detect whether it needs to actively upload data to the data aggregator in the communication period.
And if a target data collector detects that the target data collector does not need to actively upload data to the data collector in the communication period, directly closing the wireless communication unit.
As another embodiment of the present application, if a target data collector does not need to actively upload data to the data aggregator in the communication cycle, the target data collector keeps its wireless communication unit in an open state, and uploads data to the data aggregator in a target data upload period corresponding to the data collector.
As another embodiment of the present application, in order to avoid wasting the instruction response time of the data collector and ensure that the data collector can receive the first instruction response data frame uploaded by the data collector, the target data collector further detects whether the current time reaches the end time of the target instruction response time period after the first instruction response data frame is uploaded. The current time refers to the time when the target data acquisition unit finishes uploading the first instruction response data frame. If a certain target data collector detects that the current time does not reach the end time of the target instruction response time interval, the following steps can be executed:
after the data collector finishes uploading the first instruction response data frame, if the data collector detects that the current time does not reach the end time of the target instruction response time interval, the data collector continues to upload the first instruction response data frame to the data collector until the current time reaches the end time of the target instruction response time interval, and the data collector closes the wireless communication unit of the data collector.
In this embodiment, the starting time and the ending time of the target instruction response period corresponding to each communication cycle of each data collector may be determined according to the starting time of the communication cycle, the duration of the time synchronization period included in the communication cycle, and the duration of the target instruction response period corresponding to the communication cycle of other data collectors. And the index instruction response time interval of other data collectors is earlier than that of the data collector of the index instruction response time interval of the data collector. The starting time of the communication cycle refers to the starting time of each data interaction between the data aggregator and the data collector. For example, referring to fig. 3, assuming that the start time of a communication cycle is 12 o ' clock 56 min 10 sec at 1/month 1/2020, the duration of the time synchronization period of the communication cycle is 3 sec, the duration of the target instruction response period a is 5 sec, and the duration of the target instruction response period B is 3 sec, the start time of the target instruction response period a is 12 o ' clock 56 min 13 sec at 1/month 2020, the end time of the target instruction response period a is 12 o ' clock 56 min 18 sec at 1/month 2020, the start time of the target instruction response period B is 12 o ' clock 56 min 18 sec at 1/month 2020, and the end time of the target instruction response period B is 12 o ' clock 56 min 21 sec at 1/month 2020.
In this embodiment, after the data collector finishes uploading the first instruction response data frame, if it is detected that the current time does not reach the end time of the target instruction response time period, for example, for the data collector corresponding to the target instruction response time period B, if it is detected that the current time does not reach 12: 56 min 21 s at 1/2020 after the data collector finishes uploading the first instruction response data frame, the data collector continues to send the first instruction response data frame to the data aggregator until it is detected that the current time reaches the end time of the target instruction response time period, and the data collector stops uploading the first instruction response data frame to the data aggregator and closes its wireless communication unit.
As can be seen from the above, in the wireless communication method provided in this embodiment, after the first instruction response data frame is uploaded, the data collector detects whether the current time reaches the end time of the target instruction response period of the data collector. And if not, continuously sending the first instruction response data frame to the data aggregator, and closing the wireless communication unit of the data aggregator by the data aggregator until the current time reaches the end time of the target instruction response time period. Therefore, the data collector can continuously send the first instruction response data frame to the data collector in the target instruction response time interval, the time of the target instruction response time interval is fully utilized, and the success rate of the data collector receiving the complete first instruction response data frame is improved.
It should be noted that, when the data aggregator issues at least two first instruction frames to the target data acquirer in a certain communication cycle, the target data acquirer needs to respond to each first instruction frame, that is, the target data acquirer needs to upload to the data aggregator all the data to be uploaded indicated by the first instruction frames, because the target data acquirer usually includes the data to be uploaded in the instruction response content of the first instruction response data frame, after receiving the first instruction response data frame uploaded by the target data acquirer, the data aggregator detects whether the instruction response content is complete based on the identifier of the first instruction frame included in each first instruction response data frame. Specifically, if the data aggregator detects that the identifier of the first instruction frame included in each first instruction response data frame is the same as the identifier of the first instruction frame included in each first instruction frame, the data aggregator considers that the first instruction response data frames corresponding to all the first instruction frames are received, that is, the instruction response content of the first instruction response data frames is considered complete; if the data aggregator detects that the identifier of the first command frame, which is the same as the identifier of the first command frame included in a certain first command frame, does not exist in all the first command response frames, it determines that the first command response data frame corresponding to the first command frame is not received, i.e., it determines that the command response content of the first command response data frame is incomplete, and at this time, the data aggregator may perform S301 to S302 shown in fig. 7, which are described in detail as follows:
in S301, if the data aggregator detects that the instruction response content in the first instruction response data frame is incomplete, the data aggregator issues a second instruction frame to the target data collector in the time synchronization period of the next communication cycle; the second instruction frame is used for instructing the target data acquisition unit to upload instruction response contents missing in the first instruction response data frame.
In this embodiment, when detecting that the instruction response content in the first instruction response data frame is not complete, the data aggregator may determine, as a missing frame, a first instruction frame that does not receive the first instruction response data frame, and generate a second instruction frame based on an identifier of the first instruction frame, the instruction content of the first instruction frame, and an identifier of a target data collector to which the first instruction frame is directed, that is, as shown in fig. 4, the second instruction frame includes an identifier of the missing first instruction frame, an instruction content of the missing first instruction frame, and an identifier of the target data collector to which the missing first instruction frame is directed. It should be noted that the second instruction frame is used to instruct the target data collector to upload missing instruction response content in the first instruction response data frame, where the missing instruction response content is instruction response content corresponding to instruction content included in the missing first instruction frame.
After the data aggregator generates the second instruction frame, it may send the second instruction frame to the target data collector for which the second instruction frame is intended at the time synchronization period of the next communication cycle. As a possible implementation manner of this embodiment, the data aggregator may issue the second instruction frame in a broadcast manner in the time synchronization period of the next communication cycle, so that all the data collectors can receive the second instruction frame, and only the target data collector to which the second instruction frame is directed will respond to the second instruction frame.
In S302, the target data collector uploads a second instruction response data frame for the second instruction frame to the data aggregator in the target instruction response period of the next communication cycle;
in this embodiment, after receiving a second instruction frame issued by the data aggregator at the time synchronization period of the next communication cycle, the target data collector for the second instruction frame generates a second instruction response data frame for the second instruction frame based on the instruction content of the missing first instruction frame included in the second instruction frame, where the second instruction response data frame includes the identifier of the target data collector, the identifier of the missing first instruction frame, and the instruction response content corresponding to the instruction content of the missing first instruction frame.
After the target data collector aimed at by the second instruction frame generates a second instruction response data frame, the second instruction response data frame is uploaded to the data collector in the target instruction response time period of the next communication cycle.
As can be seen from the above, in the wireless communication method provided in this embodiment, when the data aggregator detects that the instruction response content in the first instruction response data frame is not complete, the data aggregator sends, to the target data collector, a second instruction frame for instructing the target data collector to upload the instruction response content missing from the first instruction response data frame at the time synchronization period of the next communication cycle, so that the target data collector uploads the second instruction response data frame to the data aggregator at the target instruction response period of the next communication cycle, thereby ensuring the integrity of the data uploaded by the data collector.
As another embodiment of the present application, after S201, the wireless communication method may further include S204 shown in fig. 6, which is detailed as follows:
in S204, if the data collector detects that the identifier of the data collector is different from the identifier of the target data collector, the wireless communication unit is turned off.
In this embodiment, when detecting that the identifier of the data collector is different from the identifier of the target data collector, the data collector considers that the data collector is not the target data collector to which the first instruction frame is directed, that is, it indicates that the data collector does not need to respond to the first instruction frame issued by the data collector, and at this time, the data collector may ignore the first instruction frame and close the wireless communication unit.
As can be seen from the above, in the wireless communication method provided in this embodiment, when the data aggregator needs to send the first instruction frame to the data collector, the data aggregator may set the identifier of the subsequent frame in the time synchronization frame to be used to identify the first instruction frame to be issued by the data aggregator in the communication cycle, and issue the time synchronization data frame and the first instruction frame successively in the form of broadcast in the time synchronization period; after the data collector receives the time synchronization data frame, if the data collector detects that the subsequent frame identification in the time synchronization data frame is used for identifying a first instruction frame to be issued by the data collector in a communication cycle, the data collector receives the first instruction frame issued by the data collector in a time synchronization period; when the data acquisition unit detects that the identification of the data acquisition unit is the same as the identification of the target data acquisition unit in the first instruction frame, the data acquisition unit generates a first instruction response data frame based on the instruction content in the first instruction frame, uploads the first instruction response data frame to the data aggregator in the target instruction response period of the communication cycle, and closes the wireless communication unit of the data aggregator after the uploading of the first instruction response data frame is completed; when the data collector detects that the mark of the subsequent frame in the time synchronization data frame is used for marking that the data collector does not have the first instruction frame to be issued in the communication period, the data collector directly closes the wireless communication unit. The data collector sends an instruction to the data collector in a broadcasting mode, the wireless communication unit of the data collector is directly closed when the data collector does not need to upload data, the data collector uploads the data only in the corresponding target instruction response time period when the data collector needs to upload the data, and the wireless communication unit of the data collector is immediately closed after the data is uploaded, namely, the data collector uploads the data to the data collector in a time-sharing data uploading mode, so that the power consumption of the data collector and the data collector can be reduced, the electric energy of the data collector and the data collector can be saved, the endurance time of the data collector and the data collector can be prolonged, and the electromagnetic interference caused when different data collectors and the data collector are in wireless communication can be reduced.
Referring to fig. 8, fig. 8 is a flowchart illustrating an implementation of a wireless communication method according to another embodiment of the present application. With respect to the embodiment corresponding to fig. 5, after S201, the wireless communication method provided in this embodiment may further include implementation in S205 shown in fig. 8, which is detailed as follows:
in S205, if the data aggregator does not receive the first instruction response data frame uploaded by the target data collector, the data aggregator sends the first instruction frame to the target data collector again in the time synchronization period of the next communication cycle.
In this embodiment, when the data aggregator and the target data acquirer are in a normal communication connection state, after the data aggregator sends the first instruction frame, the target data acquirer generates a first instruction response data frame for the first instruction frame based on instruction content in the first instruction frame, and uploads the first instruction response data frame to the data aggregator. Therefore, under the condition that the communication connection state between the data aggregator and the target data collector is normal, the data aggregator can receive a first instruction response data frame uploaded by the target data collector; and under the condition that the communication connection state of the data aggregator and the target data collector is abnormal, the data aggregator cannot receive the first instruction response data frame uploaded by the target data collector.
Based on this, the data aggregator can continuously send the first instruction frame to the target data collector during the target instruction response period and the target data uploading period corresponding to the target data collector of each communication cycle, and if the data aggregator receives the first instruction response data frame uploaded by the target data collector, the data aggregator and the target data collector are normally connected.
In practical applications, the failure of the data aggregator to receive the first command response data frame uploaded by the target data aggregator generally includes the following scenarios: after the data aggregator sends the first instruction frame to the target data acquirer, the target data acquirer cannot receive the first instruction frame issued by the data aggregator due to the abnormal communication connection state between the data aggregator and the target data acquirer, and then a first instruction response data frame aiming at the first instruction frame cannot be returned to the data aggregator; after the data sends a first instruction frame to the target data collector, the target data collector receives the first instruction frame and sends a first instruction response data frame aiming at the first instruction frame to the data collector, but the data collector does not receive the first instruction response data frame due to the abnormal communication connection state between the data collector and the target data collector; under the condition that the communication connection state between the data aggregator and the target data collector is normal, the target data collector sends a first instruction response data frame to the data aggregator, and the data aggregator does not receive the first instruction response data frame because the first instruction response data frame is lost in the transmission process.
In this embodiment, under the condition that the communication connection state between the data aggregator and the target data collector is normal, if the data aggregator does not receive the first instruction response data frame uploaded by the target data collector, the data aggregator sends the first instruction frame to the target data collector again at the time synchronization period of the next communication cycle to instruct the target data collector to upload the data to be uploaded to the data aggregator again.
In another embodiment of the present application, when the communication connection state between the data aggregator and the target data collector is abnormal, if the data aggregator does not receive the first instruction response data frame uploaded by the target data collector, the data aggregator needs to re-establish the wireless communication connection with the target data collector.
As can be seen from the above, in the wireless communication method provided in this embodiment, when the data aggregator does not receive the first instruction response data frame uploaded by the target data collector, the data aggregator sends the first instruction frame to the target data collector again in the time synchronization period of the next communication cycle, so that the target data collector uploads the data to be uploaded indicated by the first instruction frame again, and thus, the probability that the data aggregator successfully receives the data to be uploaded indicated by the first instruction frame can be improved.
Referring to fig. 9, fig. 9 is a flowchart illustrating an implementation of a wireless communication method according to another embodiment of the present application. With respect to the embodiment corresponding to fig. 1, the wireless communication method provided in this embodiment may further include, after S102, S103 to S104 shown in fig. 9, which are detailed as follows:
in S103, if the data collector needs to actively upload data to the data aggregator in the communication cycle, the data collector starts its wireless communication unit in the target data upload time period of the communication cycle, establishes a wireless communication connection with the data aggregator, and uploads the target data to be uploaded to the data aggregator.
In this embodiment, after the data collector closes its wireless communication unit in a certain communication cycle, if it needs to actively upload data to the data aggregator in the communication cycle, the data collector opens its wireless communication unit in the target data upload time period of the communication cycle, establishes wireless communication connection with the data aggregator, and uploads the target data to be uploaded to the data aggregator.
In practical application, the data actively uploaded to the data aggregator by the data collector may be single data with a small data volume or batch data with a large data volume.
When a data collector needs to actively upload batch data to a data aggregator in a communication cycle, the data collector may send a batch data upload notification frame to the data aggregator in a target data upload period of the communication cycle to notify the data aggregator that the data collector needs to upload batch data thereto. With continued reference to fig. 4, the batch data upload notification frame includes an identifier of a data collector that needs to upload batch data to the data collector and notification content. The notification content includes an identifier of batch data that the data collector needs to upload to the data aggregator.
After receiving a batch data uploading notification frame uploaded by a certain data collector, the data aggregator sends a first instruction frame to the data collector at the time synchronization period of the next communication cycle. The instruction content of the first instruction frame includes an identifier of a data collector that needs to upload batch data and an identifier of batch data that the data collector needs to upload to a data aggregator. And after the data collector needing to upload the batch data receives the first instruction frame issued by the data collector in the time synchronization period of the next communication cycle, uploading the corresponding batch data to the data collector in the target instruction response period of the next communication cycle.
In S104, the data collector turns off its wireless communication unit after the target data is uploaded.
In this embodiment, after the data acquisition device finishes uploading the target data, the wireless communication unit is turned off.
As can be seen from the above, in the wireless communication method provided in this embodiment, when a data collector needs to actively upload data to a data aggregator in a certain communication cycle, the data collector starts its wireless communication unit in a target data upload time period of the communication cycle, establishes a wireless communication connection with the data aggregator, and uploads target data to be uploaded to the data aggregator; after the target data is uploaded, the wireless communication unit of the data collector is closed, and therefore the wireless communication unit is opened only when the data collector needs to actively upload the target data to the data collector, and the wireless unit of the data collector is closed after the target data is uploaded, and power consumption of the data collector is further reduced.
In another embodiment of the present application, after S104, the wireless communication method may further include S105 as shown in fig. 10, which is detailed as follows:
in S105, after receiving the target data, the data aggregator generates a data upload response frame for the target data, and sends the data upload response frame to the data collector that uploads the target data in the time synchronization period of the next communication cycle.
It should be noted that, in connection with S103, after the data aggregator receives the target data actively uploaded by the data aggregator, the data aggregator generates a data upload response frame based on the target data.
Referring to fig. 4, in the present embodiment, the data upload response frame includes an identifier of a data collector that uploads the target data and a response content for identifying a receiving status of the target data. For example, if the data aggregator receives the target data uploaded by the data collector, the response content in the data upload response frame may be the received target data, so that the data collector knows that the data aggregator has received the target data that it actively uploads; if the data aggregator does not receive the target data uploaded by the data acquirer, the response content in the data uploading response frame can be that the target data is not received, so that the data acquirer knows that the data aggregator does not receive the target data actively uploaded by the data aggregator.
In an embodiment of the present application, the data aggregator may issue the data upload response frame to all the data collectors in a broadcast manner, so that all the data collectors may receive the data upload response frame, and thus it is ensured that the data collector uploading target data may receive the data upload response frame.
As can be seen from the above, in the wireless communication method provided in this embodiment, after receiving the target data, the data aggregator generates a data upload response frame for the target data, and sends the data upload response frame to the data collector that uploads the target data in the time synchronization period of the next communication cycle, so that the data collector can ensure that the data aggregator successfully receives the target data, and the communication efficiency is improved.
It should be noted that the data aggregator and the data collector typically perform wireless communication at a default wireless communication frequency, and when the default wireless communication frequency is interfered by communication, the data aggregator and the data collector may switch to another wireless communication frequency for performing wireless communication. Specifically, the data aggregator may send a frequency switching instruction frame to all the data collectors, where the frequency switching instruction frame includes time for switching the wireless communication frequency and a target wireless communication frequency to be switched to. After receiving the frequency switching command frame, the data collector sends a frequency switching response frame to the data aggregator to inform the data aggregator that the frequency switching command frame has been received. The frequency switching response frame comprises an identifier of the data acquisition unit and an identifier for identifying the readiness of the data acquisition unit. It should be noted that only when the data aggregator receives the frequency switching response frames of all the data collectors, the data aggregator and all the data collectors switch to the target wireless communication frequency at the same time when the wireless communication frequency is switched, so that the data aggregator and the data aggregator perform wireless communication based on the target wireless communication frequency during subsequent communication.
In the embodiment, when the wireless communication frequency of the data aggregator and the data collector in wireless communication is interfered, the wireless communication frequency of the data aggregator and the data collector in wireless communication is switched to another target wireless communication frequency, so that the stability of communication between the data aggregator and the data collector is ensured.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Corresponding to a wireless communication method described in the foregoing embodiments, an embodiment of the present application further provides a wireless communication system, and fig. 2 illustrates a schematic structural diagram of a wireless communication system provided in an embodiment of the present application, and for convenience of description, only a part related to the embodiment of the present application is illustrated.
As shown in fig. 2, the wireless communication system 100 includes: data aggregator 11 and data collector 12.
Wherein:
the data aggregator 11 is configured to send a time synchronization data frame to all the data collectors in a time synchronization period of each communication cycle in a synchronous communication mode; the time synchronization data frame comprises a subsequent frame identifier; the subsequent frame identifier is used for identifying whether the data aggregator is to send a first instruction frame in the communication cycle, and the first instruction frame is used for instructing the data acquirer to upload data.
After receiving the time synchronization data frame, the data collector 12 is configured to close its wireless communication unit if it is detected that the subsequent frame identifier is used to identify that the data aggregator has no first instruction frame to be issued in the communication period.
As an embodiment of the present application, data collector 12 is further configured to receive the time synchronization data frame, and if it is detected that the subsequent frame identifier is used to identify a first instruction frame to be issued by the data aggregator in the communication cycle, receive the first instruction frame issued by the data aggregator in the time synchronization period; the first instruction frame comprises instruction content of the first instruction frame and an identifier of a target data collector aimed at by the first instruction frame.
Data collector 12 is further configured to generate a first instruction response data frame for the instruction content if it is detected that the identifier of the data collector is the same as the identifier of the target data collector, and upload the first instruction response data frame to the data aggregator in a target instruction response period of the communication cycle; the target instruction response time interval is an instruction response time interval corresponding to the data acquisition unit.
Data collector 12 is further configured to close its wireless communication unit after the uploading of the first instruction response data frame is completed.
As an embodiment of the present application, data collector 12 is further configured to, after the uploading of the first instruction response data frame is completed, close its wireless communication unit if it is not necessary to actively upload data to the data aggregator in the communication period.
As an embodiment of the present application, the data aggregator 11 is further configured to issue a second instruction frame to the target data collector in the time synchronization period of the next communication cycle if it is detected that the instruction response content in the first instruction response data frame is not complete; the second instruction frame is used for instructing the target data acquisition unit to upload instruction response contents missing in the first instruction response data frame;
correspondingly, data collector 12 is further configured to upload a second instruction response data frame for the second instruction frame to the data aggregator in the target instruction response period of the next communication cycle; the second instruction response data frame comprises the missing instruction response content.
As an embodiment of the present application, data collector 12 is further configured to, after the uploading of the first instruction response data frame is completed, if it is detected that the current time does not reach the end time of the target instruction response time period, continue to upload the first instruction response data frame to the data aggregator until the current time reaches the end time of the target instruction response time period, and close the wireless communication unit of the data collector.
As an embodiment of the present application, data collector 12 is further configured to close its wireless communication unit if it is detected that its identifier is different from the identifier of the target data collector.
As an embodiment of the present application, data collector 12 is further configured to, if data needs to be actively uploaded to the data aggregator in the communication cycle, start the wireless communication unit of the data collector in a target data uploading period of the communication cycle, establish a wireless communication connection with the data aggregator, and upload target data to be uploaded to the data aggregator.
Data collector 12 is further configured to close its wireless communication unit after the target data is uploaded.
As an embodiment of the present application, the data aggregator 11 is further configured to generate a data upload response frame for the target data after receiving the target data, and send the data upload response frame to the data collector that uploads the target data in the time synchronization period of the next communication cycle.
In any communication cycle, when the data aggregator does not need to issue the first instruction frame for instructing the data aggregator to upload the target data to the data acquirer, that is, the data acquirer does not need to perform data interaction with the data aggregator, the data aggregator can include, in the time synchronization frame, a subsequent frame identifier for identifying that the data aggregator does not have the first instruction frame to be issued in the communication cycle, and send the time synchronization data frame to all the data acquirers in the time synchronization period of the communication cycle; after the data acquisition unit receives the time synchronization data frame, if it is detected that a subsequent frame identifier in the time synchronization data frame is used for identifying that the data aggregator does not have a first instruction frame to be issued in the communication period, the data acquisition unit is considered to be not required to perform data interaction with the data aggregator in the communication period, and at the moment, the data acquisition unit closes the wireless communication unit of the data acquisition unit, so that the power consumption of the data acquisition unit can be reduced, and the endurance time of the data acquisition unit can be prolonged.
It should be noted that, for the information interaction, the execution process, and other contents between the above units, the specific functions and the technical effects of the embodiments of the method of the present application are based on the same concept, and specific reference may be made to the above embodiments of the method, and details are not described here.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (8)

1. A wireless communication method is applied to a wireless communication system, the wireless communication system comprises a data aggregator and at least one data collector which can be in wireless communication connection with the data aggregator, and the wireless communication method comprises the following steps:
in a synchronous communication mode, the data aggregator sends time synchronization data frames to all the data collectors in the time synchronization period of each communication cycle; the time synchronization data frame comprises a subsequent frame identifier; the subsequent frame identifier is used for identifying whether the data aggregator is to send a first instruction frame in the communication cycle, and the first instruction frame is used for instructing the data acquirer to upload data;
after the data collector receives the time synchronization data frame, if the data collector detects that the subsequent frame identification is used for identifying that the data collector has no first instruction frame to be issued in the communication period, the data collector closes the wireless communication unit of the data collector;
if the data collector needs to actively upload data to the data aggregator in the communication cycle, the data collector starts a wireless communication unit of the data collector in a target data uploading time period of the communication cycle, establishes wireless communication connection with the data aggregator, and uploads target data to be uploaded to the data aggregator;
after the target data are uploaded, the data acquisition unit closes the wireless communication unit;
and after receiving the target data, the data aggregator generates a data uploading response frame aiming at the target data, and sends the data uploading response frame to the data collector uploading the target data in the time synchronization period of the next communication cycle.
2. The wireless communication method of claim 1, wherein the data aggregator sends time synchronized data frames to all of the data collectors during the time synchronization period of each communication cycle, further comprising:
after the data collector receives the time synchronization data frame, if the data collector detects that the subsequent frame identification is used for identifying a first instruction frame to be issued by the data collector in the communication cycle, the data collector receives the first instruction frame issued by the data collector in the time synchronization period; the first instruction frame comprises instruction content of the first instruction frame and an identifier of a target data acquisition unit aimed at by the first instruction frame;
if the data collector detects that the identification of the data collector is the same as the identification of the target data collector, generating a first instruction response data frame aiming at the instruction content, and uploading the first instruction response data frame to the data collector in the target instruction response time interval of the communication cycle; the target instruction response time interval is an instruction response time interval corresponding to the data acquisition unit;
and after the first instruction response data frame is uploaded, the data acquisition unit closes the wireless communication unit.
3. The wireless communication method of claim 2, wherein the data collector turns off the wireless communication unit after the first command response data frame is uploaded, and the method comprises:
after the first instruction response data frame is uploaded, if the data collector does not need to actively upload data to the data collector in the communication period, the data collector closes the wireless communication unit.
4. The wireless communication method of claim 2, wherein after the data collector uploads the first command response data frame to the data aggregator in the target command response period of the communication cycle, the method further comprises:
if the data aggregator detects that the instruction response content in the first instruction response data frame is incomplete, issuing a second instruction frame to the target data collector in the time synchronization period of the next communication cycle; the second instruction frame is used for instructing the target data acquisition unit to upload instruction response contents missing in the first instruction response data frame;
the target data collector uploads a second instruction response data frame aiming at the second instruction frame to the data collector in the target instruction response time interval of the next communication cycle; the second instruction response data frame comprises the missing instruction response content.
5. The wireless communication method of claim 2, wherein the data collector turns off the wireless communication unit after the first command response data frame is uploaded, and the method comprises:
after the data collector finishes uploading the first instruction response data frame, if the data collector detects that the current time does not reach the end time of the target instruction response time interval, the data collector continues to upload the first instruction response data frame to the data collector until the current time reaches the end time of the target instruction response time interval, and the data collector closes the wireless communication unit of the data collector.
6. The wireless communication method according to claim 2, wherein after the data collector receives the first instruction frame issued by the data collector during the time synchronization period, the method further comprises:
and if the data aggregator does not receive the first instruction response data frame uploaded by the target data acquirer, the data aggregator sends the first instruction frame to the target data acquirer again in the time synchronization period of the next communication cycle.
7. The wireless communication method according to claim 2, wherein after the data collector receives the first instruction frame issued by the data collector during the time synchronization period, the method further comprises:
and if the data acquisition unit detects that the identification of the data acquisition unit is different from the identification of the target data acquisition unit, closing the wireless communication unit.
8. A wireless communication system is characterized by comprising a data aggregator and at least one data collector which can be in wireless communication connection with the data aggregator;
the data aggregator is used for sending time synchronization data frames to all the data collectors in the time synchronization period of each communication cycle in a synchronous communication mode; the time synchronization data frame comprises a subsequent frame identifier; the subsequent frame identifier is used for identifying whether the data aggregator is to send a first instruction frame in the communication cycle, and the first instruction frame is used for instructing the data acquirer to upload data;
the data collector is used for closing a wireless communication unit of the data collector if the data collector detects that the subsequent frame identification is used for identifying that the data collector has no first instruction frame to be issued in the communication period after receiving the time synchronization data frame;
the data collector is used for starting a wireless communication unit of the data collector in a target data uploading time period of the communication cycle if the data collector needs to actively upload data to the data collector in the communication cycle, establishing wireless communication connection with the data collector and uploading target data to be uploaded to the data collector;
the data acquisition unit is used for closing the wireless communication unit after the target data is uploaded;
the data aggregator is configured to generate a data upload response frame for the target data after receiving the target data, and send the data upload response frame to the data collector that uploads the target data at the time synchronization period of the next communication cycle.
CN202010049596.XA 2020-01-16 2020-01-16 Wireless communication method and system Active CN113133097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010049596.XA CN113133097B (en) 2020-01-16 2020-01-16 Wireless communication method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010049596.XA CN113133097B (en) 2020-01-16 2020-01-16 Wireless communication method and system

Publications (2)

Publication Number Publication Date
CN113133097A CN113133097A (en) 2021-07-16
CN113133097B true CN113133097B (en) 2021-11-23

Family

ID=76772206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010049596.XA Active CN113133097B (en) 2020-01-16 2020-01-16 Wireless communication method and system

Country Status (1)

Country Link
CN (1) CN113133097B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086381B (en) * 2022-07-25 2022-11-11 东集技术股份有限公司 Label data acquisition method and device, acquisition equipment and label data acquisition system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107231699A (en) * 2016-03-25 2017-10-03 展讯通信(上海)有限公司 The transmission method and device of data in a kind of wireless cellular network
CN109309948A (en) * 2017-07-28 2019-02-05 珠海市魅族科技有限公司 Communication means, device, site apparatus and the access point apparatus of WLAN

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100594525C (en) * 2008-01-25 2010-03-17 华中科技大学 Data processing system and processing method in industry wireless sensing network
CN101594284A (en) * 2008-05-28 2009-12-02 中兴通讯股份有限公司 A kind of media access control (MAC) frame of long evolving system
US20110273576A1 (en) * 2010-05-04 2011-11-10 Qwest Communications International Inc. Video Recording Environment
CN103021154B (en) * 2012-12-26 2014-08-06 西南大学 Wireless meter reading system based on Ad Hoc
CN105142210B (en) * 2015-08-25 2019-08-16 深圳市晓渡云科技有限公司 A kind of real-time clock synchronous calibration method and sensor for wireless sense network
CN105307249B (en) * 2015-11-09 2018-12-25 深圳市银河风云网络系统股份有限公司 Low-consumption wireless Transmission system and its transmission method
CN105931443A (en) * 2016-06-16 2016-09-07 宁波迦南电子有限公司 Method for collecting data of water meter, ammeter, gas meter and heat meter together
JP6955880B2 (en) * 2017-03-17 2021-10-27 株式会社東芝 Wireless communication system and wireless communication method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107231699A (en) * 2016-03-25 2017-10-03 展讯通信(上海)有限公司 The transmission method and device of data in a kind of wireless cellular network
CN109309948A (en) * 2017-07-28 2019-02-05 珠海市魅族科技有限公司 Communication means, device, site apparatus and the access point apparatus of WLAN

Also Published As

Publication number Publication date
CN113133097A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
US10211886B2 (en) Wireless communication device and method with low power modes
EP3624296B1 (en) Battery management system and communication method thereof
US10931502B2 (en) Communication method and apparatus based on relay device, and communication method and apparatus between terminal and base station
CN111812402A (en) Intelligent electric meter and automatic connection method of circuit breaker and intelligent electric meter
US11419175B2 (en) Reconstructing a personal area network or system after a failure in the network or system
CN105791752A (en) Method and device for signal common cable transmission
CN113133097B (en) Wireless communication method and system
US7827335B2 (en) Remote communication system of a network
CN109274763B (en) Information synchronization method and dual-computer hot standby equipment
CN105406955A (en) Data output control method and system
JP2016086240A (en) Wireless communication device, wireless communication program, and wireless communication system
EP4224809A1 (en) Message transmission method, terminals and storage medium
US20150156644A1 (en) Data transmission system and data transmission method
CN115987999A (en) Master-slave competition method and device for multi-machine system, ARM and storage medium
KR20110128730A (en) Apparatus and method for transmitting and receiving for the body implantable medical devices
CN111895620B (en) Air conditioner control method, air conditioner, server and air conditioner control device
CN102013918B (en) Method, system and device for transmitting data
CN110602448B (en) Real-time multi-view audio and video transmission method
CN220447888U (en) Semi-automatic block information transmission system
CN112948180B (en) Board-level hot standby method based on master control management
CN109547247B (en) Time management system, gateway and method of intelligent door lock
CN116723425A (en) Remote communication gateway and method for ultrasonic water meter
CN115150916A (en) Wireless networking method and wireless networking system
CN117221316A (en) Message processing method, message queue telemetry transmission cluster, device and equipment
CN116684683A (en) Television control method and device, electronic equipment and storage medium

Legal Events

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