CN114143864B - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN114143864B
CN114143864B CN202210115355.XA CN202210115355A CN114143864B CN 114143864 B CN114143864 B CN 114143864B CN 202210115355 A CN202210115355 A CN 202210115355A CN 114143864 B CN114143864 B CN 114143864B
Authority
CN
China
Prior art keywords
data
terminal device
beacon frame
gateway
gateway device
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
CN202210115355.XA
Other languages
Chinese (zh)
Other versions
CN114143864A (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.)
Yunding Network Technology Beijing Co Ltd
Original Assignee
Yunding Network Technology Beijing 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 Yunding Network Technology Beijing Co Ltd filed Critical Yunding Network Technology Beijing Co Ltd
Priority to CN202210115355.XA priority Critical patent/CN114143864B/en
Publication of CN114143864A publication Critical patent/CN114143864A/en
Priority to PCT/CN2022/104420 priority patent/WO2023280277A1/en
Application granted granted Critical
Publication of CN114143864B publication Critical patent/CN114143864B/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/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • 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
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a communication method and a communication device. The method can comprise the following steps: responding to the condition that the gateway equipment is in a data communication state, and broadcasting a first beacon frame according to a set data communication rule every period, wherein the first beacon frame comprises first indication information indicating whether data are transmitted to the terminal equipment or not; and in response to the first indication information indicating that there is data to transmit to the terminal device, transmitting the data to the terminal device specified by the first indication information. Therefore, the power consumption of the terminal equipment is reduced, the power consumption is reduced, the data conflict is reduced, the network is not blocked, the downlink data of the gateway can be transmitted in time, the response speed of the network is effectively improved, and the system with higher response time requirement has a good optimization effect.

Description

Communication method and device
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a communication method and device.
Background
In the related art, the terminal device periodically sends a data request packet to the gateway device, and after receiving the data request packet, the gateway device checks whether data is currently sent to the terminal device, and if so, the data is immediately sent. However, since the terminal device periodically transmits data, the terminal device consumes much power and consumes much power quickly. Moreover, when the gateway device is connected with more terminal devices, data collision is easy to occur, network congestion is caused, and data transmission timeliness is affected.
Disclosure of Invention
The embodiment of the application provides a communication method and device.
In a first aspect, an embodiment of the present application provides a communication method, which is applied to a gateway device, and the method includes: responding to the situation that the gateway equipment is in a data communication state, broadcasting a first beacon frame according to a set data communication rule in each period, wherein the first beacon frame comprises first indication information indicating whether data are transmitted to the terminal equipment or not; and in response to the first indication information indicating that there is data to be transmitted to the terminal device, transmitting the data to the terminal device specified by the first indication information.
In some embodiments, each cycle includes a plurality of time slots.
In some embodiments, when the gateway device is connected with at least one terminal device, at least one of the plurality of time slots respectively corresponds to the at least one terminal device for data interaction.
In some embodiments, in response to the first indication information indicating that there is data to transmit to the terminal device, transmitting the data to the terminal device specified by the first indication information comprises: and in response to the first indication information indicating that there is data to be transmitted to the terminal device, transmitting the data to the terminal device in a time slot corresponding to the terminal device specified by the first indication information.
In some embodiments, broadcasting the first beacon frame according to the set data communication rule in each period includes: at least one slot is determined from the plurality of slots at each cycle, and the first beacon frame is broadcast at each of the at least one slot.
In some embodiments, broadcasting the first beacon frame according to the set data communication rule in each period comprises: in the first slot of each cycle, a first beacon frame is broadcast.
In some embodiments, the first beacon frame further comprises slot information for determining a wake-up time of the terminal device.
In some embodiments, each of the at least one time slot is divided into a first time period and a second time period, and the first time period is a time period for data interaction with the terminal device; and the second time interval is the time interval for stopping data interaction with the terminal equipment.
In some embodiments, the method further comprises: responding to the situation that the gateway equipment is in a networking state, and broadcasting a second beacon frame according to a set network access rule in each period, wherein the second beacon frame comprises third indication information indicating a network access permission state; receiving a network access request sent by terminal equipment, wherein the network access request is used for requesting gateway equipment to execute network access configuration on the terminal equipment; and executing network access configuration of the terminal equipment.
In some embodiments, the network access request further carries device information of the terminal device, and the performing network access configuration on the terminal device includes: determining a network address to be allocated to the terminal equipment, and sending the network address to the terminal equipment; and/or recording the equipment information of the terminal equipment in the equipment list.
In a second aspect, an embodiment of the present application provides a communication method, which is applied to a terminal device, and the method includes: when the terminal equipment is connected with the gateway equipment, receiving a first beacon frame broadcasted by the gateway equipment in each period, wherein the first beacon frame comprises first indication information indicating whether data are transmitted to the terminal equipment or not; determining that data are transmitted to the terminal equipment according to the first indication information; and receiving the data transmitted by the gateway equipment.
In some embodiments, the method further comprises: in response to there being data to transmit to the gateway device, the data is transmitted to the gateway device.
In some embodiments, each cycle includes a plurality of time slots, and in response to the first indication information indicating that there is data to be transmitted to the terminal device, receiving the data transmitted by the gateway device includes: and receiving the data transmitted by the gateway equipment in a time slot corresponding to the terminal equipment in a plurality of time slots in response to the first indication information indicating that the data is transmitted to the terminal equipment.
In some embodiments, each cycle comprises a plurality of time slots, and prior to receiving the first beacon frame broadcast by the gateway device, the method further comprises: and determining to enter a time slot corresponding to the terminal equipment in the plurality of time slots, and waking up the terminal equipment to receive the first beacon frame.
In some embodiments, each cycle comprises a plurality of time slots, and prior to receiving the first beacon frame broadcast by the gateway device, the method further comprises: the first time slot of each cycle is determined and the terminal device is woken up to receive the first beacon frame.
In some embodiments, the first beacon frame further comprises slot information for determining a wake-up time of the terminal device, the method further comprising: and determining the time of the next awakening of the terminal equipment according to the first beacon frame.
In some embodiments, each cycle includes a plurality of time slots, where a first time slot of the plurality of time slots or a time slot corresponding to the terminal device is divided into a first period and a second period, the first period is a period in which data interaction with the gateway device is performed, and the second period is a period in which data interaction with the gateway device is stopped, where the method further includes: and in the second period, the terminal equipment enters a low power consumption state.
In some embodiments, the method further comprises: when the terminal equipment is not connected with the gateway equipment, responding to a networking command, and scanning a second beacon frame broadcast by the gateway equipment, wherein the second beacon frame comprises third indication information indicating the network access authority state of the gateway equipment; receiving a second beacon frame; and responding to the third indication information indicating that the network access authority of the gateway equipment is in an open state, and sending a network access request to the gateway equipment, wherein the network access request is used for requesting the gateway equipment to execute network access configuration on the terminal equipment.
In a third aspect, an embodiment of the present application provides a communication apparatus, which is applied to a gateway device, and the apparatus includes: the broadcast module is used for responding to the situation that the gateway equipment is in a data communication state, and broadcasting a first beacon frame according to a set data communication rule in each period, wherein the first beacon frame comprises first indication information indicating whether data are transmitted to the terminal equipment; and the transmission module is used for responding to the first indication information indicating that data are transmitted to the terminal equipment and transmitting the data to the terminal equipment specified by the first indication information.
In a fourth aspect, an embodiment of the present application provides a communication apparatus, which is applied to a terminal device, and includes a receiving module and a determining module, where the receiving module is configured to receive, every period, a first beacon frame broadcasted by a gateway device when the terminal device is connected to the gateway device, where the first beacon frame includes first indication information indicating whether there is data to be transmitted to the terminal device; the determining module is used for determining that the terminal equipment has data to be transmitted according to the first indication information; and the receiving module is used for receiving the data transmitted by the gateway equipment.
In a fifth aspect, an embodiment of the present application provides a gateway device, including: one or more processors; a storage device having one or more programs stored thereon; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described in any implementation of the first aspect.
In a sixth aspect, an embodiment of the present application provides a terminal device, including: one or more processors; a storage device having one or more programs stored thereon; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described in any implementation of the second aspect.
In a seventh aspect, the present application provides a computer readable medium, on which a computer program is stored, where the program, when executed by a processor, implements the method as described in any implementation manner of the first aspect or the second aspect.
According to the communication method and the communication device, the gateway device periodically broadcasts the first beacon frame, wherein the first beacon frame comprises the first indication information indicating whether data are transmitted to the terminal device, the first indication information indicates that the data are transmitted to the terminal device, and the data are transmitted to the terminal device specified by the first indication information.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It is obvious that the drawings in the following description are only examples or embodiments of the application, and that for a person skilled in the art, without inventive effort, further drawings can be derived from the presented drawings, and the application can also be applied to other similar scenarios from the presented drawings. Unless otherwise apparent from the context, or otherwise indicated, like reference numbers in the figures refer to the same structure or operation.
FIG. 1 is a flow chart of one embodiment of a method of communication according to the present application;
FIG. 2 is a flow chart of yet another embodiment of a communication method according to the present application;
FIG. 3 is a flow chart of one embodiment of a method of communication according to the present application;
FIG. 4 is a flow chart of yet another embodiment of a communication method according to the present application;
FIG. 5 is a timing diagram of one embodiment of a communication system according to the present application;
FIG. 6 is a timing diagram of yet another embodiment of a communication system according to the present application;
FIG. 7 is a block diagram illustrating one embodiment of a communications device according to the present application;
FIG. 8 is a block schematic diagram of one embodiment of a communications device according to the present application;
fig. 9 is a schematic structural diagram of an embodiment of a gateway device or a terminal device according to the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. The embodiments described are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be understood that "system", "apparatus", "unit" and/or "module" as used in this application is a method for distinguishing different components, elements, parts, portions or assemblies at different levels. However, other words may be substituted by other expressions if they accomplish the same purpose.
As used in this application and the appended claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to be inclusive in the plural unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements. An element defined by the phrase "comprising an … …" does not exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.
Wherein in the description of the embodiments of the present application, "/" indicates an inclusive meaning, for example, a/B may indicate a or B; "and/or" herein is merely an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, and may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
Flow charts are used herein to illustrate operations performed by systems according to embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed in the exact order in which they are performed. Rather, the steps may be processed in reverse order or simultaneously. Meanwhile, other operations may be added to the processes, or a certain step or several steps of operations may be removed from the processes.
A communication method and apparatus according to an embodiment of the present application are described below with reference to the drawings.
Referring to fig. 1, a flow 100 of one embodiment of a communication method according to the present application is shown. The communication method comprises the following steps:
step 101, responding to that the gateway device is in a data communication state, broadcasting a first beacon frame according to a set data communication rule in each period, wherein the first beacon frame comprises first indication information indicating whether there is data to be transmitted to the terminal device.
The executing subject for the communication method of the present embodiment may be a gateway device that can establish a network connection with at least one terminal device. In some embodiments, the terminal device may be battery powered, a low power device, and the gateway device may be grid powered.
For example, the terminal device may be various electronic devices, including but not limited to a smart phone, a tablet computer, a wearable device, a vehicle-mounted device, an Augmented Reality (AR)/Virtual Reality (VR) device, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, Moving Picture Experts compression standard Audio Layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop portable computer, a desktop computer, a smart meter, a smart water meter, a smart eye, a gateway, and other electronic devices.
In this embodiment, when the gateway device is in a data communication state, the gateway device may perform data interaction with the terminal device connected thereto. For example, the gateway device may enter a data communication state after performing network entry configuration for the terminal device.
In addition, in the data communication state, the gateway device broadcasts the first beacon frame periodically, for example, in each period, the gateway device broadcasts the first beacon frame according to the set data communication rule.
For the first beacon frame, first indication information indicating whether there is data to be transmitted to the terminal device may be included. Specifically, the gateway device may determine whether there is data to be transmitted to the terminal device, and if there is data to be transmitted, the first identification bit in the first beacon frame may be set to an identification of "there is data to be transmitted", and at the same time, the first beacon frame is made to carry device information of the terminal device, so that the terminal device may determine whether to receive the data. If there is no data to transmit, then the first identification bit in the first beacon frame may be set to the identification of "no data to transmit".
And 102, responding to the first indication information indicating that data is transmitted to the terminal equipment, and transmitting the data to the terminal equipment specified by the first indication information.
In this embodiment, if the gateway device determines that there is data to be transmitted to the terminal device, the gateway device may transmit the data to the terminal device. Of course, the gateway device does not transmit data to the terminal device if it determines that there is no data to transmit to the terminal device.
It is understood that the terminal device may enter a low power consumption state, such as turning off a radio frequency switch, etc., when the gateway device is not transmitting data to the terminal device.
According to the method provided by the embodiment of the application, the gateway device periodically broadcasts the first beacon frame, wherein the first beacon frame comprises the first indication information indicating whether data are transmitted to the terminal device, the first beacon frame responds to the first indication information indicating that the data are transmitted to the terminal device, and transmits the data to the terminal device specified by the first indication information, so that the power consumption of the terminal device is reduced, the power consumption is reduced, the data conflict is reduced, the network is not blocked, the downlink data of the gateway can be transmitted in time, the response speed of the network is effectively improved, and the optimization effect on a system with higher response time requirement is good.
In some alternative implementations of this embodiment, each cycle includes a plurality of slots, for example 16 slots. When the gateway device is connected with at least one terminal device, at least one time slot of the plurality of time slots corresponds to the at least one terminal device respectively for data interaction.
For example, assuming that each cycle includes 16 time slots, the gateway device is connected with a terminal device a, a terminal device B, and a terminal device C. Terminal a may correspond to a first time slot, terminal B may correspond to a second time slot, and terminal C may correspond to a third time slot. That is, the terminal device a may perform data interaction with the gateway device at the first time slot; the terminal device B may perform data interaction with the gateway device at the second time slot; and the terminal device C can perform data interaction with the gateway device in the third time slot. Therefore, each terminal device performs data interaction with the gateway device at the designated time sequence, and data collision can be reduced.
In some embodiments, in response to the first indication information indicating that there is data to transmit to the terminal device, transmitting the data to the terminal device specified by the first indication information comprises:
and in response to the first indication information indicating that there is data to be transmitted to the terminal device, transmitting the data to the terminal device in a time slot corresponding to the terminal device specified by the first indication information.
That is, the gateway device may transmit data to each terminal device in the time slot corresponding to the terminal device.
The description continues by taking an example in which each period includes 16 time slots, and the gateway device is connected with a terminal device a, a terminal device B, and a terminal device C. And if the data are transmitted to the terminal device A, transmitting the data to the terminal device A in the first time slot corresponding to the terminal device A. And if the data are transmitted to the terminal equipment B, transmitting the data to the terminal equipment B in a second time slot corresponding to the terminal equipment B. If no data is to be transmitted to the terminal device C, no data needs to be transmitted to the terminal device C in the third timeslot corresponding to the terminal device C.
Additionally, in some embodiments, the method further comprises: and receiving the data transmitted by the terminal equipment in the time slot corresponding to the terminal equipment designated by the first indication information.
That is, if the terminal device has data to transmit to the gateway device, the terminal device may also transmit the data to the gateway device in the time slot corresponding to the terminal device. In this way, the gateway device may also receive the data transmitted by the terminal device in the timeslot corresponding to the terminal device.
In some embodiments, broadcasting the first beacon frame according to the set data communication rule in each period comprises: at each cycle, at least one time slot is determined from the plurality of time slots, and a first beacon frame is broadcast at each of the at least one time slot.
That is, when the gateway device connects to at least one terminal device, the first beacon frame may be broadcast at a time slot corresponding to each terminal device, so that each terminal device receives the first beacon frame at the corresponding time slot.
The description continues by taking an example in which each period includes 16 time slots, and the gateway device is connected with a terminal device a, a terminal device B, and a terminal device C.
The gateway device may broadcast a first beacon frame when reaching a first time slot of each cycle, and the terminal device a may wake up at the first time slot and receive the first beacon frame. When the gateway device reaches the second time slot of each cycle, the gateway device may broadcast the first beacon frame, and the terminal device B may wake up at the second time slot, and receive the first beacon frame, and if there is data to be transmitted to the terminal device B, the gateway device may transmit the data to the terminal device B at the second time slot corresponding to the terminal device B, and the terminal device B may also receive the data at the second time slot. When the gateway device reaches the third time slot of each period, the gateway device may broadcast the first beacon frame, and the terminal device C wakes up at the third time slot, and receives the first beacon frame.
In addition, the gateway device does not transmit the first beacon frame in the remaining time slots of each cycle, nor transmit data.
Therefore, each terminal device performs data interaction with the gateway device at the specified time sequence, so that data conflict can be reduced, the response speed of the network can be effectively improved, and the power consumption of the terminal device can be reduced.
In other embodiments, broadcasting the first beacon frame according to the set data communication rule in each period includes: in the first slot of each cycle, a first beacon frame is broadcast.
That is, when the gateway device connects to at least one terminal device, the gateway device may broadcast the first beacon frame at the first time slot of each cycle, so that each terminal device may receive the first beacon frame at the first time slot.
The description continues by taking an example in which each period includes 16 time slots, and the gateway device is connected with a terminal device a, a terminal device B, and a terminal device C.
When the gateway device reaches the first time slot of each period, the gateway device may broadcast a first beacon frame, and each terminal device connected to the gateway device may wake up at the first time slot and receive the first beacon frame, that is, terminal device a, terminal device B, and terminal device C may wake up at the first time slot and receive the first beacon frame.
If the gateway device has data to transmit to the terminal device a, the gateway device transmits the data to the terminal device a in the first time slot corresponding to the terminal device a, and the terminal device a may also receive the data in the first time slot. If the gateway device has data to transmit to the terminal device B, the gateway device transmits the data to the terminal device B in the second time slot corresponding to the terminal device B, and the terminal device B may wake up and receive the data in the second time slot. If the gateway device does not have data to transmit to the terminal device C, the gateway device does not need to transmit data to the terminal device C in the third time slot corresponding to the terminal device C.
Therefore, each terminal device performs data interaction with the gateway device at the designated time sequence, so that data conflict can be reduced, the response speed of the network can be effectively improved, and the power consumption of the terminal device can be reduced.
In some embodiments, the first beacon frame further includes slot information, which is used to determine a wake-up time of the terminal device, so as to wake up the terminal device at the wake-up time, so that the terminal device can perform data interaction with the gateway device.
That is to say, the gateway device may transmit the timeslot information to each terminal device through the first beacon frame, and each terminal device may also determine the time of the next wake-up according to the received timeslot information. It should be noted that the time slot information may be a time slot in which the gateway device is currently located, or may directly specify an awake time slot of the terminal device.
For example, when the gateway device transmits a first beacon frame to the terminal device a at a first time slot of a current cycle, the first beacon frame may include information indicating that the gateway device is at the first time slot or instruct that the terminal device a wakes up at the first time slot of a next cycle, and the terminal device a may determine a time of the next cycle wake-up after receiving the first beacon frame. Similarly, when the gateway device transmits a first beacon frame to terminal device B at the second slot of the current cycle, the first beacon frame may include information indicating that the gateway device is at the second slot or that terminal device B wakes up at the second slot of the next cycle, and terminal device B may determine the time of the next cycle wake-up after receiving the first beacon frame.
For another example, when the gateway device sends the first beacon frame to the terminal device a and the terminal device B at the first timeslot of the current cycle, the first beacon frame may include information indicating that the gateway device is at the first timeslot or indicate that each terminal device wakes up at the timeslot of the next cycle, and after receiving the first beacon frame, the terminal device a and the terminal device B may respectively determine the time when they wake up at the next cycle.
At the wake-up time, the terminal device may be woken up, e.g., turn on the radio frequency switch, thereby enabling the terminal device to perform data interaction with the gateway device, e.g., receive the first beacon frame.
Therefore, time synchronization between the gateway equipment and the terminal equipment is realized, the collision probability of equipment communication in the network can be reduced through the time synchronization, downlink data of the gateway equipment can be transmitted in time, and the response speed of the network is improved.
In some embodiments, each of the at least one time slot is divided into a first time period and a second time period, and the first time period is a time period for data interaction with the terminal device; and the second time interval is a time interval for stopping data interaction with the terminal equipment.
That is, the time slot may include a first period t1 (which may also be an active period) and a second period t2 (which may also be referred to as a sleep period). In the non-working time slot and the dormant period of the working time slot of each terminal device, the gateway device does not perform data interaction with the terminal device, so that the terminal device can enter a low power consumption mode. This reduces power consumption of the terminal device.
With further reference to fig. 2, a flow 200 of yet another embodiment of a communication method is shown. The communication method comprises the following steps:
step 201, responding to the gateway device being in the networking state, broadcasting a second beacon frame according to a set network access rule in each period, wherein the second beacon frame includes third indication information indicating a network access permission state.
The execution subject for the communication method of the present embodiment may be a gateway apparatus.
When the gateway equipment is in a networking state, the network access authority of the gateway equipment is opened, and at the moment, other terminal equipment which is not connected to the gateway equipment is allowed to establish network connection with the gateway equipment.
In the networking state, the gateway device broadcasts the second beacon frame periodically, for example, at the first time slot of each period.
For the second beacon frame, third indication information indicating a network access authority state may be included. Specifically, the gateway device may open the access right, and set the second identification bit in the second beacon frame to be the identifier that "the access right is opened".
Step 202, receiving a network access request sent by a terminal device, where the network access request is used to request a gateway device to execute network access configuration on the terminal device.
Step 203, network access configuration of the terminal equipment is executed.
In this embodiment, the gateway device periodically broadcasts the second beacon frame, the terminal device actively scans when joining the network, and after receiving the second beacon frame, the terminal device performs networking operation according to information carried in the second beacon frame, for example, sends a network access request to the gateway device.
And the gateway equipment receives the network access request sent by the terminal equipment and executes network access configuration on the terminal equipment according to the network access request.
In some embodiments, the network access request further carries device information of the terminal device, and the performing network access configuration on the terminal device includes:
determining a network address to be allocated to the terminal equipment, and sending the network address to the terminal equipment; and/or the presence of a gas in the gas,
and recording the equipment information of the terminal equipment in the equipment list.
That is, the gateway device may send the network address of the terminal device to the terminal device after receiving the network access request sent by the terminal device, and send the network address to the terminal device, and record the device information of the terminal device in the device list.
Further, after completing the network access configuration of the terminal device, the gateway device may close the network access right.
Therefore, according to the method provided by the embodiment of the application, the second beacon frame is periodically broadcast through the gateway device, and the network access configuration of the terminal device is executed according to the network access request sent by the terminal device, so that the power consumption of the terminal device is reduced, and the power consumption is reduced.
Referring to fig. 3, a flow 300 of one embodiment of a method of communication according to the present application is shown. The communication method comprises the following steps:
step 301, when the terminal device is connected to the gateway device, receiving a first beacon frame broadcast by the gateway device every period, where the first beacon frame includes first indication information indicating whether there is data to be transmitted to the terminal device.
The execution subject for the communication method of the present embodiment may be a terminal device. The terminal device may establish a network connection with the gateway device. In some embodiments, the terminal device may be battery powered, a low power device, and the gateway device may be grid powered.
In this embodiment, when the gateway device periodically broadcasts the first beacon frame, if the terminal device is in an awake state, for example, the radio frequency switch is turned on, the first beacon frame broadcasted by the gateway device may be received.
For the first beacon frame, first indication information indicating whether there is data to be transmitted to the terminal device may be included. Specifically, the terminal device may determine whether the gateway device has data to transmit to the terminal device itself according to the information in the first beacon frame, for example, the terminal device may determine that the gateway device has data to transmit according to an identifier "having data to transmit" in the first beacon frame, and may also determine that the data is to be transmitted to the terminal device itself according to the device information of the terminal device carried in the first beacon frame. As another example, the terminal device may determine that the gateway device has no data to transmit based on the identification of "no data to transmit" in the first beacon frame. Accordingly, the terminal device can determine whether to receive data through the first beacon frame.
Step 302, determining that there is data to be transmitted to the terminal device according to the first indication information.
Step 303, receiving data transmitted by the gateway device.
In this embodiment, if the terminal device determines that the gateway device has data to transmit, the terminal device may receive the data transmitted by the gateway device. In addition, if the terminal device determines that the gateway device has no data to transmit and does not have data to transmit to the gateway device, the terminal device may enter a low power consumption state, for example, turn off the rf switch.
In some optional implementations of this embodiment, the method further includes:
in response to there being data to transmit the gateway device, transmitting the data to the gateway device.
In this embodiment, the terminal device may also determine whether there is data to be transmitted to the gateway device, and if there is data to be transmitted to the gateway device, the terminal device may transmit the data to the gateway device. If there is no data to transmit to the gateway device and the terminal device has no data to transmit to the gateway device, the terminal device may enter a low power state, such as turning off a radio frequency switch.
According to the communication method provided by the embodiment of the application, the terminal device receives the first beacon frame broadcasted by the gateway device, the first beacon frame comprises the first indication information indicating whether data are transmitted to the terminal device, and the data transmitted by the gateway device are received by determining whether the data are transmitted to the terminal device according to the first indication information, so that the power consumption of the terminal device is reduced, the power consumption is reduced, and the data conflict is reduced, so that the network is not congested, the downlink data of the gateway can be transmitted in time, the response speed of the network is effectively improved, and the system with higher response time requirement has a good optimization effect.
In some alternative implementations of this embodiment, each cycle includes a plurality of slots. One of the time slots corresponds to the terminal device for data interaction.
For example, assuming that each period includes 16 time slots, if the terminal device is a terminal device a connected to the gateway device, the terminal device a may correspond to the first time slot, that is, the terminal device a may perform data interaction with the gateway device in the first time slot; if the terminal device is a terminal device B connected with the gateway device, the terminal device B can correspond to the second time slot, and the terminal device B can perform data interaction with the gateway device in the second time slot; if the terminal device is a terminal device C connected to the gateway device, the terminal device C may correspond to the third time slot, and the terminal device C may perform data interaction with the gateway device at the third time slot. Therefore, each terminal device performs data interaction with the gateway device at the designated time sequence, and data collision can be reduced.
In some embodiments, in response to the first indication information indicating that there is data to be transmitted to the terminal device, receiving the data transmitted by the gateway device includes:
and receiving the data transmitted by the gateway equipment in a time slot corresponding to the terminal equipment in a plurality of time slots in response to the first indication information indicating that the data is transmitted to the terminal equipment.
That is, the terminal device may receive the data transmitted by the gateway device at its corresponding time slot.
The description continues by taking an example in which each period includes 16 time slots, and the gateway device is connected with a terminal device a, a terminal device B, and a terminal device C.
For terminal device a, if the gateway device has data to transmit to terminal device a, terminal device a may receive the data transmitted by the gateway device in the corresponding first time slot. Similarly, for terminal B, if the gateway device has data to transmit to terminal B, terminal B may receive the data transmitted by the gateway device in the corresponding second time slot.
Additionally, in some embodiments, the method further comprises: and responding to the condition that the terminal equipment has data to be transmitted to the gateway equipment, and transmitting the data to the gateway equipment in a time slot corresponding to the terminal equipment in a plurality of time slots.
That is, if the terminal device has data to transmit to the gateway device, the terminal device may also transmit the data to the gateway device in the time slot corresponding to the terminal device. In this way, the gateway device may also receive the data transmitted by the terminal device in the timeslot corresponding to the terminal device.
For example, for the terminal device C, if there is no data to be transmitted to the terminal device C, the terminal device C may not receive the data in the third timeslot corresponding to the terminal device C, but may further determine whether there is data to be transmitted to the gateway device, and if there is data to be transmitted to the gateway device, the terminal device C may transmit the data to the gateway device in the corresponding third timeslot. If the terminal device C has no data to transmit to the gateway device, the terminal device C may close the radio frequency switch and enter a low power consumption state.
In some embodiments, prior to receiving the first beacon frame broadcast by the gateway device, the method further comprises:
and determining to enter a time slot corresponding to the terminal equipment in the plurality of time slots, and waking up the terminal equipment to receive the first beacon frame.
That is, when the gateway device connects to at least one terminal device, the first beacon frame may be broadcast at a corresponding time slot of each terminal device, so that each terminal device receives the first beacon frame at the corresponding time slot.
The description continues by taking an example in which each period includes 16 time slots, and the gateway device is connected with a terminal device a, a terminal device B, and a terminal device C.
The gateway device broadcasts the first beacon frame when the first time slot, the second time slot and the third time slot of each period are reached.
For the terminal device a, the terminal device a may wake up when reaching the first time slot and receive the first beacon frame, and if the terminal device a determines that the gateway device has data to transmit to its own device according to the first beacon frame, the terminal device a may receive the data in the first time slot. The terminal device A can further determine whether data are transmitted to the gateway device after receiving the data transmitted by the gateway device, if so, the terminal device A can transmit the data to the gateway device in the first time slot, and the terminal device A enters a low power consumption state after the data transmission is finished; if no data is to be transmitted to the gateway device, the terminal device a directly enters a low power consumption state.
For the terminal device B, the terminal device B may wake up when reaching the second time slot and receive the first beacon frame, and if the terminal device B determines that the gateway device has data to transmit to its own device according to the first beacon frame, the terminal device B may receive the data in the second time slot. The terminal device B can further determine whether data are transmitted to the gateway device after receiving the data transmitted by the gateway device, if so, the terminal device B can transmit the data to the gateway device at a second time slot, and the terminal device B enters a low power consumption state after the data transmission is finished; if no data is to be transmitted to the gateway device, the terminal device B directly enters a low power consumption state.
For the terminal device C, the terminal device C may wake up when reaching the third time slot, and receive the first beacon frame, if the terminal device C determines, according to the first beacon frame, that the gateway device does not have data to transmit to the terminal device C, the terminal device C may further determine whether there is data to transmit to the gateway device, if there is data to transmit to the gateway device C, the terminal device C may transmit data to the gateway device at the third time slot, and the terminal device C enters a low power consumption state after the data transmission is completed; if no data is to be transmitted to the gateway device, the terminal device C directly enters a low power consumption state.
Therefore, each terminal device performs data interaction with the gateway device at the specified time sequence, so that data conflict can be reduced, the response speed of the network can be effectively improved, and the power consumption of the terminal device can be reduced.
In some embodiments, prior to receiving the first beacon frame broadcast by the gateway device, the method further comprises:
the first time slot of each cycle is determined and the terminal device is woken up to receive the first beacon frame.
That is, when the gateway device connects to at least one terminal device, the gateway device may broadcast the first beacon frame at the first time slot of each cycle, so that each terminal device may receive the first beacon frame at the first time slot.
The description continues by taking an example in which each period includes 16 time slots, and the gateway device is connected with a terminal device a, a terminal device B, and a terminal device C.
The gateway device broadcasts a first beacon frame at a first time slot up to each cycle. Each terminal device connected to the gateway device wakes up at the first time slot to monitor to determine whether data is sent to itself.
For terminal device a, terminal device a may wake up when the first time slot is reached and receive the first beacon frame. Terminal device a may receive data in the first time slot if terminal device a determines from the first beacon frame that the gateway device has data to transmit to itself. The terminal device A can further determine whether data are transmitted to the gateway device after receiving the data transmitted by the gateway device, if so, the terminal device A can transmit the data to the gateway device in the first time slot, and the terminal device A enters a low power consumption state after the data transmission is finished; if no data is to be transmitted to the gateway device, the terminal device a directly enters a low power consumption state.
For the terminal device B, the terminal device B may wake up when reaching the first time slot and receive the first beacon frame, and if the terminal device B determines that the gateway device has data to transmit to its own device according to the first beacon frame, the terminal device B may wake up again in the second time slot and receive the data. The terminal device B can further determine whether data are transmitted to the gateway device after receiving the data transmitted by the gateway device, if so, the terminal device B can transmit the data to the gateway device in a second time slot, and the terminal device B enters a low power consumption state after the data transmission is finished; if no data is to be transmitted to the gateway device, terminal device B directly enters a low power consumption state.
For the terminal device C, the terminal device C may wake up when reaching the third time slot, and receive the first beacon frame, if the terminal device C determines, according to the first beacon frame, that the gateway device does not have data to transmit to the terminal device C, the terminal device C may further determine whether there is data to transmit to the gateway device, if there is data to transmit to the gateway device, the terminal device C may wake up at the third time slot and transmit data to the gateway device, and the terminal device C enters a low power consumption state after the data transmission is completed; if no data is to be transmitted to the gateway device, the terminal device C directly enters a low power consumption state.
Therefore, each terminal device performs data interaction with the gateway device at the specified time sequence, so that data conflict can be reduced, the response speed of the network can be effectively improved, and the power consumption of the terminal device can be reduced.
In some embodiments, the first beacon frame further comprises slot information for determining a wake-up time of the terminal device, the method further comprising:
and determining the time of the next awakening of the terminal equipment according to the first beacon frame.
That is, the gateway device may transmit the timeslot information to each terminal device through the first beacon frame, and each terminal device may also determine the time for the next wake-up according to the received timeslot information. It should be noted that the time slot information may be a time slot in which the gateway device is currently located, or may directly specify an awake time slot of the terminal device.
For example, when the gateway device transmits a first beacon frame to the terminal device a at a first time slot of a current cycle, the first beacon frame may include information indicating that the gateway device is at the first time slot or indicate that the terminal device a wakes up at the first time slot of a next cycle, and the terminal device a may determine a time of the next cycle wake up after receiving the first beacon frame. Similarly, when the gateway device transmits a first beacon frame to terminal device B at the second time slot of the current cycle, the first beacon frame may include information indicating that the gateway device is at the second time slot or may indicate that terminal device B wakes up at the second time slot of the next cycle, and terminal device B may determine the time of the next cycle wake up after receiving the first beacon frame.
For another example, when the gateway device sends the first beacon frame to the terminal device a and the terminal device B at the first timeslot of the current cycle, the first beacon frame may include information indicating that the gateway device is at the first timeslot or indicate that each terminal device wakes up at the timeslot of the next cycle, and after receiving the first beacon frame, the terminal device a and the terminal device B may respectively determine the time when they wake up at the next cycle.
Therefore, time synchronization between the gateway equipment and the terminal equipment is realized, the collision probability of equipment communication in the network can be reduced through the time synchronization, downlink data of the gateway equipment can be transmitted in time, and the response speed of the network is improved.
In some embodiments, a first time slot of the multiple time slots or a time slot corresponding to the terminal device is divided into a first period and a second period, the first period is a period in which data interaction is performed with the gateway device, and the second period is a period in which data interaction with the gateway device is stopped, where the method further includes:
and in the second period, the terminal equipment enters a low power consumption state.
That is, each time slot may include a first period t1 (which may also be an active period) and a second period t2 (which may also be referred to as a sleep period). In the non-working time slot and the dormant period of the working time slot of each terminal device, the gateway device does not perform data interaction with the terminal device, so that the terminal device can enter a low power consumption mode. This reduces power consumption of the terminal device.
With further reference to fig. 4, a flow 400 of yet another embodiment of a communication method is shown. The communication method comprises the following steps:
step 401, when the terminal device is not connected to the gateway device, in response to the networking command, scanning a second beacon frame broadcast by the gateway device, where the second beacon frame includes third indication information indicating a network access permission state of the gateway device.
The execution subject for the communication method of the present embodiment may be a terminal device.
The gateway device broadcasts the first beacon frame periodically in the networking state, for example, broadcasts the second beacon frame in the first time slot of each period. When the terminal device is about to join the network, for example, when a networking command is received, the radio frequency switch can be turned on to actively scan.
The networking command may be a command input by a user through the terminal device.
For the second beacon frame, third indication information indicating a network entry authority state may be included. Specifically, the gateway device may set the second flag in the second beacon frame to the flag of "the access right is opened" when the access right is opened. Therefore, the terminal device can determine that the gateway device can open the access right according to the identifier of "the access right is opened" in the second beacon frame.
Step 402, receiving a second beacon frame.
Step 403, in response to that the third indication information indicates that the network access permission of the gateway device is in an open state, sending a network access request to the gateway device, where the network access request is used to request the gateway device to execute network access configuration on the terminal device.
In this embodiment, the gateway device periodically broadcasts the second beacon frame, the terminal device actively scans when joining the network, and when receiving the second beacon frame and determining that the access right of the gateway device is in the open state according to the information carried in the beacon frame, the terminal device performs networking operation, for example, sends an access request to the gateway device.
And the gateway equipment receives the network access request sent by the terminal equipment and executes network access configuration on the terminal equipment according to the network access request.
In addition, the gateway device may feed back a response to the network access request to the terminal device after completing the network access configuration of the terminal device. The terminal device receives the response to the network access request, and then can broadcast the device information of the terminal device in the whole network.
Therefore, according to the method in the embodiment of the application, the terminal device scans the second beacon frame broadcast by the gateway device, the second beacon frame includes the third indication information indicating the network access authority state of the gateway device, the second beacon frame is received, the network access request is sent to the gateway device in response to the third indication information indicating that the network access authority of the gateway device is in the open state, and the network access request is used for requesting the gateway device to execute network access configuration on the terminal device, so that power consumption of the terminal device is reduced, and power consumption is reduced.
With further reference to fig. 5, a timing diagram of one embodiment of a communication system is shown.
In this embodiment, the communication system includes a gateway device and a terminal device. The gateway device is configured to periodically broadcast a first beacon frame in response to the gateway device being in a data communication state, wherein the first beacon frame includes first indication information indicating whether there is data to be transmitted to the terminal device; a terminal device configured to receive a first beacon frame broadcast by a gateway device; the gateway device is configured to respond to the first indication information indicating that data is transmitted to the terminal device, and transmit the data to the terminal device specified by the first indication information; and the terminal equipment is configured to determine that data is transmitted to the terminal equipment according to the first indication information and receive the data transmitted by the gateway equipment.
As shown in fig. 5, the gateway device broadcasts the beacon periodically, and after receiving the beacon of the gateway device, the end device can determine the time t1 for the next wake-up period through the information in the beacon.
In step 501, the gateway device determines whether the first time slot of the current cycle is reached.
If so, step 502 is performed, and if not, step 501 is continued.
In step 502, the gateway device broadcasts a first beacon frame and proceeds to step 506.
In step 503, the terminal device determines whether the corresponding wake-up time t1 has been reached.
If so, step 504 is performed, and if not, step 504 continues.
In step 504, the rf switch is turned on, and the first beacon frame is received, and the wakeup time t1 is updated according to the information in the first beacon frame.
The execution sequence of step 503 and step 501 is not limited in any way, and may be executed simultaneously.
In step 505, the gateway device determines whether there is data to transmit to the terminal device.
If yes, step 506 is executed, and if not, whether the data transmitted by the terminal device exists or not is waited.
In step 506, the gateway device transmits the data to the terminal device.
In step 507, the terminal device receives the data sent by the gateway device.
In step 508, the terminal device determines whether there is data to transmit to the gateway device.
If yes, go to step 509, if no, go back to step S503.
In step 509, the terminal device sends data to the gateway device.
In step 510, the gateway device receives data sent by the terminal device.
In step 511, the terminal device turns off the rf switch and enters a low power consumption state.
According to the communication system provided by the embodiment of the application, the first beacon frame is periodically broadcast through the gateway device, wherein the first beacon frame comprises the first indication information indicating whether data are transmitted to the terminal device, the first indication information indicates that the data are transmitted to the terminal device, and the data are transmitted to the terminal device specified by the first indication information.
With further reference to fig. 6, a timing diagram of another embodiment of a communication system is shown.
As shown in fig. 6, in step 601, when the gateway device opens the network access authority, the gateway device periodically broadcasts a second beacon frame.
In step 602, when the terminal device is about to join the network, the radio frequency switch is turned on, and the beacon is actively scanned.
In step 603, the terminal device determines whether the second beacon frame is received and whether the network access permission of the gateway device is opened.
If so, step 604 is performed, and if not, step 602 is continued.
In step 604, the terminal device sends a network access request to the gateway device.
In step 605, the gateway device receives a network entry request.
In step 606, the gateway device assigns a network address and sends the network address to the terminal device, and the gateway device further records the device information of the terminal device in the device list.
In step 607, the gateway device closes the access right.
In step 608, the terminal device receives a response from the gateway device to the network access request.
In step 609, the terminal device broadcasts the device information over the entire network.
Therefore, according to the method in the embodiment of the application, the gateway device periodically broadcasts the second beacon frame, and network access configuration of the terminal device is executed according to the network access request sent by the terminal device, so that the power consumption of the terminal device is reduced, and the power consumption is reduced.
With further reference to fig. 7, as an implementation of the methods shown in some of the above figures, the present application provides an embodiment of a communication apparatus, which corresponds to the method embodiment shown in fig. 1, and which may be specifically applied in a gateway device.
As shown in fig. 7, the communication apparatus 700 of the present embodiment includes: a broadcast module 701 and a transmission module 703. The broadcasting module 701 is configured to, in response to that the gateway device is in a data communication state, broadcast a first beacon frame according to a set data communication rule in each period, where the first beacon frame includes first indication information indicating whether there is data to be transmitted to the terminal device. The transmitting module 703 is configured to transmit data to the terminal device specified by the first indication information in response to the first indication information indicating that there is data to be transmitted to the terminal device.
In this embodiment, the detailed processing of the broadcast module 701 and the transmission module 703 and the technical effects brought by the processing can refer to the related descriptions of the embodiment corresponding to step 101 and step 102 in the embodiment of fig. 1, which are not repeated herein.
In some embodiments, each cycle includes a plurality of time slots.
In some embodiments, when the gateway device is connected with at least one terminal device, at least one of the plurality of time slots respectively corresponds to the at least one terminal device for data interaction.
In some embodiments, the transmitting module 703 is further configured to transmit the data to the terminal device in a time slot corresponding to the terminal device specified by the first indication information, in response to the first indication information indicating that there is data to transmit to the terminal device.
In some embodiments, the broadcasting module 701 is further configured to determine at least one time slot from the plurality of time slots in each cycle, and broadcast the first beacon frame in each of the at least one time slot.
In some embodiments, the broadcasting module 701 is further configured to broadcast a first beacon frame at a first time slot of each cycle.
In some embodiments, the first beacon frame further comprises slot information for determining a wake-up time of the terminal device.
In some embodiments, each of the at least one time slot is divided into a first time period and a second time period, and the first time period is a time period for data interaction with the terminal device; and the second time interval is the time interval for stopping data interaction with the terminal equipment.
In some embodiments, the apparatus further comprises a receiving module and an executing module. The broadcasting module 701 is further configured to, in response to that the gateway device is in the networking state, broadcast a second beacon frame according to a set network access rule in each period, where the second beacon frame includes third indication information indicating a network access permission state; the receiving module is used for receiving a network access request sent by the terminal equipment, wherein the network access request is used for requesting the gateway equipment to execute network access configuration on the terminal equipment; and the execution module is used for executing network access configuration of the terminal equipment.
In some embodiments, the network access request further carries device information of the terminal device, and the execution module is further configured to: determining a network address to be allocated to the terminal equipment, and sending the network address to the terminal equipment; and/or recording the equipment information of the terminal equipment in the equipment list.
It should be noted that the communication apparatus 700 may be a chip, a component or a module, the communication apparatus 700 may include a processor and a memory, the broadcasting module 701, the transmitting module 703, the receiving module, the executing module, and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
According to the communication device provided by the embodiment of the application, the first beacon frame is periodically broadcast through the gateway device, wherein the first beacon frame comprises the first indication information indicating whether data are transmitted to the terminal device, the first indication information indicates that the data are transmitted to the terminal device, and the data are transmitted to the terminal device specified by the first indication information.
With further reference to fig. 8, as an implementation of the methods shown in some of the above figures, the present application provides an embodiment of a communication apparatus, which corresponds to the method embodiment shown in fig. 3, and which may be specifically applied in a terminal device.
As shown in fig. 8, the communication apparatus 800 of the present embodiment includes a receiving module 801 and a determining module 803. The receiving module 801 is configured to receive, every period, a first beacon frame broadcast by a gateway device when a terminal device is connected to the gateway device, where the first beacon frame includes first indication information indicating whether there is data to be transmitted to the terminal device; the determining module 803 is configured to determine that there is data to be transmitted to the terminal device according to the first indication information; and the receiving module 801 is configured to receive data transmitted by the gateway device.
In this embodiment, the detailed processing of the receiving module 801 and the determining module 803 and the technical effects brought by the processing may refer to the related descriptions of the embodiments of step 301, step 302 and step 303 in the corresponding embodiment of fig. 3, which are not repeated herein.
In some embodiments, the apparatus further comprises a transmission module to transmit the data to the gateway device in response to there being data to transmit to the gateway device.
In some embodiments, each cycle includes a plurality of time slots.
In some embodiments, the receiving module 801 is further configured to, in response to that the first indication information indicates that there is data to be transmitted to the terminal device, receive, in a timeslot corresponding to the terminal device among the multiple timeslots, the data transmitted by the gateway device.
In some embodiments, the determining module 803 is further configured to, before receiving the first beacon frame broadcast by the gateway device, determine to enter a timeslot corresponding to the terminal device among the multiple timeslots, and wake up the terminal device to receive the first beacon frame.
In some embodiments, the determining module 803 is further configured to determine a first time slot of each period before receiving the first beacon frame broadcast by the gateway device, and wake up the terminal device to receive the first beacon frame.
In some embodiments, the first beacon frame further includes timeslot information, where the timeslot information is used to determine a wake-up time of the terminal device, and the determining module 803 is further configured to determine a time when the terminal device wakes up next time according to the first beacon frame.
In some embodiments, a first time slot of the multiple time slots or a time slot corresponding to the terminal device is divided into a first period and a second period, where the first period is a period in which data interaction with the gateway device is performed, and the second period is a period in which data interaction with the gateway device is stopped. And in the second period, the terminal equipment enters a low power consumption state.
In some embodiments, the apparatus further comprises a scanning module and a transmitting module. The scanning module is used for responding to a networking command when the terminal equipment is not connected with the gateway equipment and scanning a second beacon frame broadcast by the gateway equipment, wherein the second beacon frame comprises third indication information indicating the network access authority state of the gateway equipment; a receiving module 801, configured to receive a second beacon frame; the sending module is used for responding to the third indication information indicating that the network access authority of the gateway device is in an open state, and sending a network access request to the gateway device, wherein the network access request is used for requesting the gateway device to execute network access configuration on the terminal device.
It should be noted that the communication apparatus 800 may be a chip, a component or a module, the communication apparatus 800 includes a processor and a memory, the receiving module 801, the determining module 803, the scanning module, the sending module, and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
According to the communication device provided by the embodiment of the application, the first beacon frame broadcasted by the gateway equipment is received through the terminal equipment, the first beacon frame comprises the first indication information indicating whether data are transmitted to the terminal equipment or not, and the data transmitted by the gateway equipment are received if the data are determined to be transmitted to the terminal equipment according to the first indication information, so that the power consumption of the terminal equipment is reduced, the power consumption is reduced, the data conflict is reduced, the network is enabled not to be blocked, the downlink data of the gateway can be transmitted in time, the response speed of the network is effectively improved, and a system with higher requirement on response time has a good optimization effect.
Referring now to fig. 9, shown is a schematic diagram of an electronic device 900 (e.g., a gateway device or a terminal device) suitable for use in implementing some embodiments of the present application. The electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 9, electronic device 900 may include a processor 901, memory 902, a communication interface 903, and a communication bus 906. Wherein the processor 901 and the memory 902 are connected to each other by a communication bus 906. A communications interface 903 is also connected to communications bus 906.
The communication interface 903 may be an interface of a communication module, such as an interface of a GSM module.
In the embodiment of the present application, the processor 901 may be a Central Processing Unit (CPU), an application-specific integrated circuit (ASIC), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic devices.
In one possible implementation, the memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, and the like), and the like; the storage data area may store data created during use of the computer, such as user data, user access data, audio data, and the like.
Further, the memory 902 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device or other volatile solid state storage device.
The processor 901 may call a program stored in the memory 902, and in particular, the processor 901 may perform the operations performed by the gateway device or the terminal device in fig. 5 to 6/the communication method shown in any one of the embodiments in fig. 1 to 4.
The memory 902 is used for storing one or more programs, the program may include program codes, the program codes include computer operation instructions, in this embodiment, the memory 902 of the gateway device stores at least the program for implementing the following functions:
responding to the situation that the gateway equipment is in a data communication state, broadcasting a first beacon frame according to a set data communication rule in each period, wherein the first beacon frame comprises first indication information indicating whether data are transmitted to the terminal equipment or not; and
and in response to the first indication information indicating that data is to be transmitted to the terminal device, transmitting the data to the terminal device specified by the first indication information.
In the embodiment of the present application, at least a program for realizing the following functions is stored in the memory 902 of the terminal device:
when the terminal equipment is connected with the gateway equipment, receiving a first beacon frame broadcast by the gateway equipment in each period, wherein the first beacon frame comprises first indication information indicating whether data are transmitted to the terminal equipment;
determining that data is transmitted to the terminal equipment according to the first indication information; and
and receiving the data transmitted by the gateway equipment.
Of course, the structure of the electronic device 900 shown in fig. 7 is not limited to the electronic device in the embodiment of the present application, and the electronic device may include more or less components than those shown in fig. 7 or some components in combination in practical applications.
The present application provides a computer readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the communication method described in the above method embodiments.
The embodiment of the present application provides a processor, which is configured to execute a program, where the program executes to implement the communication method described in the above method embodiments.
The present application also provides a computer program product which, when executed on a data processing apparatus, causes the data processing apparatus to implement the communication method described in the above method embodiments.
In addition, the electronic device, the processor, the computer-readable medium, or the computer program product provided in the foregoing embodiments of the present application may be all used for executing the corresponding method provided above, and therefore, the beneficial effects achieved by the electronic device, the processor, the computer-readable medium, or the computer program product may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media include permanent and non-permanent, removable and non-removable media and may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information and/or information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The above description is only for the purpose of illustrating the preferred embodiments of the present application and the technical principles applied, and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. The scope of the invention according to the present application is not limited to the specific combinations of the above-described features, and may also cover other embodiments in which the above-described features or their equivalents are arbitrarily combined without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (21)

1. A communication method, applied to a gateway device, the method comprising:
responding to the fact that the gateway device is in a data communication state, broadcasting a first beacon frame according to a set data communication rule in each period, wherein the first beacon frame comprises first indication information indicating whether data are transmitted to a terminal device or not; and
in response to the first indication information indicating that there is data to be transmitted to the terminal device, transmitting the data to the terminal device specified by the first indication information;
the method further comprises the following steps:
responding to the gateway equipment in a networking state, and broadcasting a second beacon frame according to a set network access rule in each period, wherein the second beacon frame comprises third indication information indicating a network access authority state;
receiving a network access request sent by the terminal equipment, wherein the network access request is used for requesting the gateway equipment to execute network access configuration on the terminal equipment; and
and executing network access configuration of the terminal equipment.
2. The method of claim 1, wherein each cycle comprises a plurality of time slots.
3. The method of claim 2, wherein when at least one terminal device is connected to the gateway device, at least one of the plurality of timeslots respectively corresponds to the at least one terminal device for data interaction.
4. The method of claim 3, wherein the transmitting data to the terminal device specified by the first indication information in response to the first indication information indicating that there is data to transmit to the terminal device comprises:
and responding to the first indication information indicating that data are transmitted to the terminal equipment, and transmitting the data to the terminal equipment in a time slot corresponding to the terminal equipment specified by the first indication information.
5. The method according to claim 2 or 3, wherein the broadcasting the first beacon frame according to the set data communication rule in each period comprises:
at least one time slot is determined from the plurality of time slots at each of the periods, and the first beacon frame is broadcast at each of the at least one time slot.
6. The method according to claim 2 or 3, wherein the broadcasting the first beacon frame according to the set data communication rule in each period comprises:
broadcasting the first beacon frame at a first time slot of each of the periods.
7. The method of claim 2 or 3, wherein each of the at least one time slot is divided into a first period and a second period,
the first time interval is a time interval for data interaction with the terminal equipment; and
and the second time interval is a time interval for stopping data interaction with the terminal equipment.
8. The method of claim 1, wherein the first beacon frame further comprises slot information, and wherein the slot information is used for determining the wake-up time of the terminal device.
9. The method according to claim 1, wherein the network access request further carries device information of the terminal device, and the performing network access configuration on the terminal device comprises:
determining a network address to be allocated to the terminal equipment, and sending the network address to the terminal equipment; and/or
And recording the equipment information of the terminal equipment in an equipment list.
10. A communication method is applied to a terminal device, and comprises the following steps:
when the terminal equipment is connected with gateway equipment, receiving a first beacon frame broadcast by the gateway equipment every period, wherein the first beacon frame comprises first indication information indicating whether data are transmitted to the terminal equipment;
determining that data are transmitted to the terminal equipment according to the first indication information; and
receiving data transmitted by the gateway equipment;
the method further comprises the following steps:
when the terminal equipment is not connected with the gateway equipment, responding to a networking command, and scanning a second beacon frame broadcasted by the gateway equipment, wherein the second beacon frame comprises third indication information indicating the network access authority state of the gateway equipment;
receiving the second beacon frame;
and responding to the third indication information indicating that the network access authority of the gateway equipment is in an open state, and sending a network access request to the gateway equipment, wherein the network access request is used for requesting the gateway equipment to execute network access configuration on the terminal equipment.
11. The method of claim 10, further comprising:
in response to there being data to transmit to the gateway device, transmitting the data to the gateway device.
12. The method of claim 10, wherein each of the periods comprises a plurality of time slots, and wherein, in response to the first indication information indicating that there is data to be transmitted to the terminal device, receiving the data transmitted by the gateway device comprises:
and responding to the first indication information indicating that the data is transmitted to the terminal equipment, and receiving the data transmitted by the gateway equipment in the time slot corresponding to the terminal equipment in the plurality of time slots.
13. The method of claim 10, wherein each of the periods comprises a plurality of time slots, and wherein prior to receiving a first beacon frame broadcast by a gateway device, the method further comprises:
and determining to enter a time slot corresponding to the terminal equipment in the plurality of time slots, and waking up the terminal equipment to receive the first beacon frame.
14. The method of claim 10, wherein each of the periods comprises a plurality of time slots, and wherein prior to receiving a first beacon frame broadcast by a gateway device, the method further comprises:
and determining the first time slot of each period, and waking up the terminal equipment to receive the first beacon frame.
15. The method of any of claims 10-14, wherein the first beacon frame further comprises slot information for determining a wake-up time of the terminal device, the method further comprising:
and determining the time of the next awakening of the terminal equipment according to the first beacon frame.
16. The method according to claim 10, wherein each of the cycles includes a plurality of time slots, and wherein a first time slot of the plurality of time slots or a time slot corresponding to the terminal device is divided into a first period and a second period, the first period is a period in which data interaction with the gateway device is performed, and the second period is a period in which data interaction with the gateway device is stopped, the method further comprising:
and in the second time period, the terminal equipment enters a low power consumption state.
17. A communication apparatus, applied to a gateway device, the apparatus comprising:
the gateway device comprises a broadcast module, a first receiving module and a second receiving module, wherein the broadcast module is used for responding to the condition that the gateway device is in a data communication state, and broadcasting a first beacon frame according to a set data communication rule in each period, and the first beacon frame comprises first indication information indicating whether data are transmitted to a terminal device; and
a transmission module, configured to respond to that the first indication information indicates that there is data to be transmitted to the terminal device, and transmit data to the terminal device specified by the first indication information;
wherein the device also comprises a receiving module and an executing module,
the broadcast module is further configured to respond to that the gateway device is in a networking state, and broadcast a second beacon frame according to a set network access rule in each period, where the second beacon frame includes third indication information indicating a network access permission state;
the receiving module is configured to receive a network access request sent by the terminal device, where the network access request is used to request the gateway device to execute network access configuration on the terminal device; and
the execution module is used for executing network access configuration of the terminal equipment.
18. A communication device is applied to terminal equipment and comprises a receiving module and a determining module, wherein,
the receiving module is configured to receive, every period, a first beacon frame broadcasted by a gateway device when the terminal device is connected to the gateway device, where the first beacon frame includes first indication information indicating whether there is data to be transmitted to the terminal device;
the determining module is configured to determine that there is data to be transmitted to the terminal device according to the first indication information; and
the receiving module is used for receiving the data transmitted by the gateway equipment;
wherein the device also comprises a scanning module and a sending module,
the scanning module is configured to scan a second beacon frame broadcast by the gateway device in response to a networking command when the terminal device is not connected to the gateway device, where the second beacon frame includes third indication information indicating a network access permission state of the gateway device;
the receiving module is configured to receive the second beacon frame;
the sending module is configured to send a network access request to the gateway device in response to that the third indication information indicates that the network access permission of the gateway device is in an open state, where the network access request is used to request the gateway device to execute network access configuration on the terminal device.
19. A gateway device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-9.
20. A terminal device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 10-16.
21. A computer readable medium, having a computer program stored thereon, wherein the program, when executed by a processor, implements the method of any of claims 1-9 or the method of any of claims 10-16.
CN202210115355.XA 2021-07-07 2022-02-07 Communication method and device Active CN114143864B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210115355.XA CN114143864B (en) 2022-02-07 2022-02-07 Communication method and device
PCT/CN2022/104420 WO2023280277A1 (en) 2021-07-07 2022-07-07 Control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210115355.XA CN114143864B (en) 2022-02-07 2022-02-07 Communication method and device

Publications (2)

Publication Number Publication Date
CN114143864A CN114143864A (en) 2022-03-04
CN114143864B true CN114143864B (en) 2022-07-15

Family

ID=80381834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210115355.XA Active CN114143864B (en) 2021-07-07 2022-02-07 Communication method and device

Country Status (1)

Country Link
CN (1) CN114143864B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023280277A1 (en) * 2021-07-07 2023-01-12 云丁网络技术(北京)有限公司 Control method and system

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100477852C (en) * 2006-04-25 2009-04-08 联发科技股份有限公司 Method for controlling wireless device, and wireless device thereof
CN101222388B (en) * 2007-01-12 2013-01-16 华为技术有限公司 Method and system for confirming existence of broadcast/multicast caching frame at access point
CN102546792B (en) * 2011-12-30 2016-03-30 华为终端有限公司 A kind of service information pushing and method of reseptance, relevant apparatus and system
CN103298064B (en) * 2012-03-02 2017-06-27 华为终端有限公司 Downlink data transmission method and relevant device and communication system
CN103298038A (en) * 2013-06-05 2013-09-11 浙江工业大学 IEEE 802.11 WLAN (wireless local area network) low-delay energy-saving method
WO2015105390A1 (en) * 2014-01-10 2015-07-16 엘지전자 주식회사 Method and apparatus for operating based on power save mode in wireless lan
CN108541047B (en) * 2017-03-03 2021-07-16 华为技术有限公司 Indication method and device of downlink service data
CN109302736B (en) * 2017-07-24 2021-06-25 展讯通信(上海)有限公司 Sleep control method and device for wireless local area network, storage medium, workstation and terminal
CN109309936A (en) * 2017-07-28 2019-02-05 珠海市魅族科技有限公司 Communication means, device, access point apparatus and the site apparatus of WLAN
CN107835527B (en) * 2017-12-19 2020-05-05 河海大学 Wireless sensor network communication method based on time-sharing dormancy
WO2021035411A1 (en) * 2019-08-23 2021-03-04 北京小米移动软件有限公司 Downlink data cache indication method and apparatus, and downlink data acquisition method and apparatus
CN111132287B (en) * 2019-12-19 2023-03-31 中科芯集成电路有限公司 Lora-based low-delay low-power-consumption downlink communication mechanism
CN111132291B (en) * 2020-01-03 2022-09-27 中科芯集成电路有限公司 LPWAN synchronous awakening method based on LoRa
CN111614442B (en) * 2020-05-21 2022-12-20 深圳市华智芯联科技有限公司 Network communication method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114143864A (en) 2022-03-04

Similar Documents

Publication Publication Date Title
US20220272632A1 (en) Method For Indicating Downlink Service Data and Device
CN103650371B (en) The scheduling of resource of machine-to-machine equipment
US7636577B2 (en) Method and apparatus to implement efficient paging in a wireless network
JP2019535152A (en) Method and apparatus for on-demand mobile device access
US20230082270A1 (en) Communication Method Based on Nonsimultaneous Transmit and Receive Multi-Link Device, and Apparatus
US20220394594A1 (en) Access Method and Apparatus
CN114143864B (en) Communication method and device
WO2023284271A1 (en) Communication sensing method and device for terminal in unactivated state
WO2016187851A1 (en) Obtaining and determining method of system message and terminal device thereof
US20230056906A1 (en) Signal transmission method and device
CN113347691B (en) Data transmission method and device
US20230007590A1 (en) Communication method and apparatus
WO2023193508A1 (en) Wake-up signal (wus) receiving method and sending method
CN114449632B (en) Method, apparatus, chip and computer readable storage medium for receiving beacon frame
CN113207160B (en) Terminal awakening method and device, computer equipment and storage medium
US20230319778A1 (en) Paging Method and Apparatus
CN112383386B (en) Data transmission method, device, computer equipment and computer readable storage medium
CN116233977A (en) Network equipment management method, device and storage medium
CN105557033A (en) Discovery signal transmission method, user device, and base station
KR102521176B1 (en) Method and apparatus for receiving tone signal in synchronous distributed wireless communication systems
EP3927021A1 (en) Signal processing method and apparatus, and device
CN112469111B (en) Wireless communication method and device based on LoRa and gateway equipment
CN117575544B (en) Distribution area equipment management method and device, storage medium and electronic equipment
WO2024082226A1 (en) Time domain determination method and apparatus
WO2023024891A1 (en) Monitoring method, communication apparatus, chip and module device thereof

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
CP01 Change in the name or title of a patent holder

Address after: 100094 room 1101, 11 / F, building 1, zone 2, 81 Beiqing Road, Haidian District, Beijing

Patentee after: Yunding Network Technology (Beijing) Co.,Ltd.

Address before: 100094 room 1101, 11 / F, building 1, zone 2, 81 Beiqing Road, Haidian District, Beijing

Patentee before: YUN DING NETWORK TECHNOLOGY (BEIJING) Co.,Ltd.

CP01 Change in the name or title of a patent holder