CN111132286B - Data issuing method and device, electronic equipment and computer readable storage medium - Google Patents
Data issuing method and device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN111132286B CN111132286B CN201911313051.9A CN201911313051A CN111132286B CN 111132286 B CN111132286 B CN 111132286B CN 201911313051 A CN201911313051 A CN 201911313051A CN 111132286 B CN111132286 B CN 111132286B
- Authority
- CN
- China
- Prior art keywords
- target
- gateway
- terminals
- time
- time slice
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0212—Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
- H04W52/0219—Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave where the power saving management affects multiple terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
- H04W52/0248—Power 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
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application provides a data issuing method, a data issuing device, electronic equipment and a computer readable storage medium. The method comprises the following steps: when the awakening time corresponding to the target time slice of the target gateway is reached, acquiring all terminals distributed with the target time slice under the target gateway; adjusting the states of all the terminals from a dormant state to an awakening state; and issuing corresponding data to all the terminals according to the target tasks corresponding to the target time slices. According to the method and the device, the time slice distribution mode is used, the terminals can finish multicast awakening time distribution in one-time interaction mode under the condition that the participation of the server side is not needed, and the fact that a large amount of data of multiple terminals are issued under the condition that the terminals are in long-term dormancy is guaranteed.
Description
Technical Field
The present application relates to the field of wireless communication technologies, and in particular, to a data issuing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
The communication between terminals of the internet of things generally adopts low-power wireless communication, such as Lora, sub-1G and the like. These wireless communication technologies are typically characterized by low power consumption, low rate, large number, and the like. The terminal is also powered by a battery, and low power consumption is guaranteed by long-time dormancy.
Usually, the terminal is connected with the gateway in a periodic heartbeat manner at one time, and when data needs to be sent to the terminal, the gateway can send the data in heartbeat response. In the existing mechanism, the heartbeat period is usually longer (e.g. 1 hour, etc.), and the gateway task in the gateway group is executed while monopolizing the channel, so that an execution time allocation mechanism needs to be set to implement the mutual exclusion constraint. After all terminals are connected to the gateway, the gateway sends the connection request of the terminals to the server side, and the server side distributes awakening time to the terminals according to the task execution condition in the gateway group.
The existing communication mechanism lengthens a communication link and increases the response waiting time of the heartbeat of the terminal, namely, the terminal needs a longer time to wait for the response of the server after sending the heartbeat, thereby invisibly increasing the power consumption of the terminal.
Disclosure of Invention
The application provides a data issuing method, a data issuing device, electronic equipment and a computer readable storage medium, which are used for solving the problems that the existing communication mechanism in the prior art lengthens a communication link and increases the response waiting time of terminal heartbeat, namely, the terminal needs a longer time to wait for the response of a server after sending the heartbeat, and the power consumption of the terminal is increased invisibly.
In order to solve the above problem, the present application discloses a data issuing method, which is applied to a target gateway, and includes:
when the awakening time corresponding to the target time slice of the target gateway is reached, acquiring all terminals distributed with the target time slice under the target gateway;
adjusting the states of all the terminals from a dormant state to an awakening state;
and issuing corresponding data to all the terminals according to the target tasks corresponding to the target time slices.
Optionally, before the acquiring all terminals allocated with the target time slice under the target gateway, the method further includes:
receiving the gateway number of all gateways which need to execute the target task in a gateway group sent by a server and the gateway ID of each gateway; the target gateway is one gateway in all the gateways;
generating the target time slice according to the number of the gateways;
determining a target awakening priority corresponding to the target time slice according to each gateway ID and the target gateway ID of the target gateway;
and distributing the target time slices to all terminals needing to execute the target task under the target gateway.
Optionally, the obtaining all the terminals allocated with the target time slice under the target gateway when the wake-up time corresponding to the target time slice of the target gateway is reached includes:
determining whether the awakening time of the target time slice is reached or not according to the target awakening priority;
and acquiring all the terminals when the awakening time is reached.
Optionally, the determining whether the wake-up time of the target time slice is reached according to the target wake-up priority includes:
determining that the wake-up time is reached when the target wake-up priority is the highest wake-up priority;
and when the target tasks of the gateways corresponding to the awakening priorities higher than the target awakening priority exist and are all executed and completed, determining that the awakening time is reached.
Optionally, the allocating the target time slice to all terminals that need to execute the target task under the target gateway includes:
under the condition that the number of the terminals of all the terminals reaches the set number of the terminals, distributing the target time slices to the terminals with the set number of the terminals in all the terminals;
generating a next time slice;
and allocating the next time slice to other terminals except the terminal with the set number of terminals in all the terminals.
Optionally, the method further comprises:
when all terminals executing the target task in the gateway group are positioned under the target gateway, receiving a plurality of time slices with the same time generated by the server according to the gateway IDs and the total time of all the gateways; the total time refers to the preset time required for executing the target task;
and randomly distributing the time slices with the same time to all the terminals.
In order to solve the above problem, the present application discloses a data issuing apparatus, which is applied to a target gateway, and includes:
the all-terminal acquisition module is used for acquiring all terminals distributed with the target time slice under the target gateway when the awakening time corresponding to the target time slice of the target gateway is reached;
the terminal state adjusting module is used for adjusting the states of all the terminals from a dormant state to an awakening state;
and the terminal data issuing module is used for issuing corresponding data to all the terminals according to the target tasks corresponding to the target time slices.
Optionally, the method further comprises:
the gateway information receiving module is used for receiving the number of gateways of all gateways which need to execute the target task in a gateway group sent by a server and the gateway ID of each gateway; the target gateway is one gateway in all the gateways;
a target time slice generation module, configured to generate the target time slices according to the number of the gateways;
a target priority determining module, configured to determine a target wake-up priority corresponding to the target time slice according to each gateway ID and a target gateway ID of the target gateway;
and the target time slice distribution module is used for distributing the target time slices to all terminals needing to execute the target task under the target gateway.
Optionally, the all terminal acquiring modules include:
a wakeup time determining unit, configured to determine whether the wakeup time of the target time slice is reached according to the target wakeup priority;
and the all-terminal acquisition unit is used for acquiring all the terminals when the awakening time is up.
Optionally, the wake-up time determining unit includes:
a first wake-up time determining subunit, configured to determine that the wake-up time is reached when the target wake-up priority is the highest wake-up priority;
and the second awakening time determining subunit is used for determining that the awakening time is reached when the awakening priority higher than the target awakening priority exists and the target tasks of the gateways corresponding to the awakening priority higher than the target awakening priority are executed completely.
Optionally, the target time slice allocation module includes:
a target time slice allocation unit, configured to allocate the target time slices to the terminals with the set number of terminals in all the terminals when the number of terminals in all the terminals reaches the set number of terminals;
a next time slice generation unit for generating a next time slice;
and the next time slice allocation unit is used for allocating the next time slice to other terminals except the terminal with the set number of terminals in all the terminals.
Optionally, the apparatus further comprises:
a time slice receiving module, configured to receive a plurality of time slices with the same time generated by the server according to the gateway IDs and the total time of all gateways when all terminals that execute the target task in the gateway group are located under the target gateway; the total time refers to the preset time required for executing the target task;
and the random distribution module is used for distributing the time slices with the same time to all the terminals at random.
In order to solve the above problem, the present application discloses an electronic device including:
the system comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the data issuing method of any one of the above items when executing the program.
In order to solve the above problem, the present application discloses a computer readable storage medium storing computer instructions, which when executed by a processor of an electronic device, enable the electronic device to execute any one of the above data issuing methods.
Compared with the prior art, the method has the following advantages:
the embodiment of the application provides a data issuing method, a data issuing device, electronic equipment and a computer readable storage medium. According to the method and the device, the time slice distribution mode is used, the terminals can finish multicast awakening time distribution in one-time interaction mode under the condition that the participation of the server side is not needed, and the fact that a large amount of data of multiple terminals are issued under the condition that the terminals are in long-term dormancy is guaranteed.
Drawings
Fig. 1 is a flowchart illustrating steps of a data sending method according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a data issuing system according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a task allocation manner provided by an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a time slice allocation provided by an embodiment of the present application;
FIG. 5 is a diagram illustrating a random sequence generation method provided by an embodiment of the present application;
fig. 6 shows a schematic structural diagram of a data issuing apparatus according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Example one
Referring to fig. 1, a flowchart of steps of a data issuing method provided in an embodiment of the present application is shown, where the data issuing method may be applied to a target gateway, and specifically may include the following steps:
step 101: and when the awakening time corresponding to the target time slice of the target gateway is reached, acquiring all terminals distributed with the target time slice under the target gateway.
The embodiment of the application can be applied to a scene of communication between the gateway and the terminal of the Internet of things.
The data issuing system related to the present application may be described as follows with reference to fig. 2.
Referring to fig. 2, a schematic diagram of a data issuing system provided in an embodiment of the present application is shown.
As shown in fig. 2, the data issuing system may include: the gateway and the terminal can be connected through an Ethernet, and sub-1G wireless (low-power wireless communication) connection can be used between the gateway and the terminal. The terminal may be an electronic device powered by a battery.
The gateway and the terminal are in the same communication field, that is, the communication between the gateway and the terminal can interfere with each other. The server will group the gateways before the topology is established. The gateways which will generate communication interference are divided into the same group, and only one gateway in the same group is transmitting big data at the same time.
All terminals send heartbeats every hour and randomly join any gateway.
Each data issuing task corresponds to 100 terminals, and each terminal corresponds to one task. The server receives a create task request sent by the terminal and generates a task group, as shown in table 1 below.
Table 1:
task id |
Execution time period |
Corresponding terminal id list |
The execution time period in the task is coarse time, and represents the life cycle of the task. The corresponding terminal id list includes a terminal id corresponding to the task. When the terminal connects to the gateway, it searches the id list to see if there is a need to perform this task.
Because the terminal can be randomly added into any gateway, the created task group needs to be issued to all members in the gateway group, and the terminal request is ensured not to be missed.
Next, the scheme provided by the embodiments of the present application is described as follows.
The target gateway is a gateway that needs to execute a target task in the system, and as shown in fig. 2, when the gateway that needs to execute the target task is gateway a, gateway a is taken as the target gateway.
All terminals refer to terminals that need to execute a target task under a target gateway, for example, as shown in fig. 2, when a gateway a is a target gateway, the terminals that need to execute the target task under the gateway a are: and the terminal 1 and the terminal 2, then, all the terminals which need to execute the target task are the terminal 1 and the terminal 2, and the target gateway allocates the target time slice to the terminal 1 and the terminal 2 in advance.
The target time slice refers to a time slice corresponding to the target gateway, and the target time slice is used for waking up all terminals needing to execute the target task under the target gateway.
The generation process of the target time slice can be described in detail with reference to the following specific implementation manner.
In a specific implementation of the present application, before the step 101, the method may further include:
step A1: receiving the number of gateways of all gateways which need to execute the target task in a gateway group issued by a server and the gateway ID of each gateway; the target gateway is one gateway in all the gateways.
In this embodiment of the present application, all gateways refer to all gateways that need to execute a target task under a server, as shown in fig. 2, all gateways under the server include a gateway a, a gateway B, and a gateway C, and the gateways that need to execute the target task are the gateway a and the gateway C, so all gateways under the server are the gateway a and the gateway C.
The number of gateways refers to the number of all gateways which need to execute the target task under the server.
The gateway ID refers to an ID identifier assigned by the server to each gateway in the gateway group, and as shown in fig. 2, the gateway group under the server includes a gateway a, a gateway B, and a gateway C, where the gateway ID corresponding to the gateway a is 1, the gateway ID corresponding to the gateway B is 2, and the gateway ID corresponding to the gateway C is 3.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not intended to limit the embodiments of the present application.
And after the server side creates the gateway group, the gateway group information is sent to each gateway in the group, and the gateway group information comprises the number of the gateways in the gateway group and the gateway ID.
And B, after receiving the gateway number of all gateways which need to execute the target task in the gateway group sent by the server and the gateway ID of each gateway, executing the step A2.
Step A2: and generating the target time slice according to the number of the gateways.
After the target gateway receives the gateway information of all gateways sent by the server, a target time slice may be generated according to the number of gateways in the gateway information, specifically, the gateway group may generate a time slice corresponding to each gateway according to the number of gateways, for example, if all the gateways in the gateway group include 3 gateways, three time slices may be generated: time slice 1, time slice 2 and time slice 3, the time slice corresponding to gateway a is time slice 1, the time slice corresponding to gateway B is time slice 2, and the time slice corresponding to gateway C is time slice 3.
For example, referring to fig. 4, a schematic diagram of a time slice allocation manner provided in an embodiment of the present application is shown, and as shown in fig. 4, after a gateway group is created by a server, gateway group information is sent to each gateway in the group, where the gateway group information includes the number of gateways in the gateway group and a gateway ID. And each gateway lists the priority in a fixed mode according to the gateway ID, generates a time slice sequence for numbering, and can be distributed to all gateways executing target tasks in a random distribution mode after a plurality of time slices are generated in the gateway group.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation of the embodiments of the present application.
And after the target time slice of the target gateway is generated according to the number of the gateways, executing the step A3.
Step A3: and determining a target awakening priority corresponding to the target time slice according to each gateway ID and the target gateway ID of the target gateway.
After the target time slices of the target gateways are generated according to the number of the gateways, the target wake-up priority corresponding to the target time slices can be determined according to the gateway IDs and the target gateway IDs of the target gateways, for example, the gateway IDs of all the gateways are: 1. 2, 3, 4 and 5, the target gateway ID of the target gateway is 3, then the target wake-up priority of the target time slice is higher than the wake-up priority of the time slice corresponding to gateway 4 and gateway 5 and lower than the wake-up priority of the time slice corresponding to gateway 1 and gateway 2.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation of the embodiments of the present application.
And executing the step A4 after determining the target awakening priority corresponding to the target time slice according to the gateway IDs and the target gateway ID of the target gateway.
Step A4: and distributing the target time slice to all terminals needing to execute the target task under the target gateway.
And after the target time slice corresponding to the target gateway is generated, distributing the target time brand milk powder to all terminals needing to execute the target task under the target gateway by the target gateway. As shown in fig. 4, the slot allocation in the gateway uses preemptive allocation. Assuming that the terminal 1 is connected to the gateway, the task id corresponding to the terminal 1 is task number 1. And the gateway allocates the No. 1 time slice to the terminal, and marks the No. 1 time slice task as the No. 1 task. And the terminal 2 is connected to the gateway, the corresponding task id is No. 2, the gateway searches the time slice to find that the time slice No. 1 is occupied by the task 1, and then the time slice No. 2 is distributed to the terminal 2. The subsequent terminal connections are all made in this way.
The manner of acquiring all terminals according to the target wake-up priority of the target time slice may be described in detail with reference to the following specific implementation.
In another specific implementation manner of the present application, the step 101 may include:
substep B1: and determining whether the awakening time of the target time slice is reached or not according to the target awakening priority.
In the embodiment of the present application, the wake-up time refers to a wake-up time corresponding to a target time slice.
After the target wake-up priority corresponding to the target time slice is obtained, whether the wake-up time of the target time slice is reached may be determined according to the target wake-up priority, and specifically, detailed description is given in conjunction with the following specific implementation manner.
In another specific implementation manner of the present application, the sub-step B1 may include:
substep C1: and when the target awakening priority is the highest awakening priority, determining that the awakening time is reached.
In this embodiment of the present application, when the target wake-up priority is the highest wake-up priority, it may be determined that the wake-up time has been reached when the target task is executed.
And a substep C2: and when the target tasks of the gateways corresponding to the awakening priorities higher than the target awakening priority exist and are completely executed, determining that the awakening time is reached.
And when the target tasks of the gateways corresponding to the awakening priorities higher than the target awakening priority exist and are completely executed, determining that the awakening time is up.
Substep B2: and acquiring all the terminals when the awakening time is reached.
And when the awakening time is up, awakening all terminals executing the target task under the gateway by the target gateway.
Multicast is an unreliable transmission mode, and a packet-lost terminal needs to be reissued after the first transmission of big data in an allocated time slice. According to the method and the device, capacity constraint can be added on a time slice allocation mechanism, namely, after a set number of terminals obtains the time slice, the terminals with the same task are added to the terminals without allocating the time slice. In particular, the detailed description may be combined with the following specific implementations.
In another specific implementation manner of the present application, the step A4 may include:
substep D1: under the condition that the number of the terminals of all the terminals reaches the set number of the terminals, distributing the target time slices to the terminals with the set number of the terminals in all the terminals;
substep D2: generating a next time slice;
substep D3: and allocating the next time slice to other terminals except the terminal with the set number of terminals in all the terminals.
In the embodiment of the present application, the set number of terminals refers to the number of terminals that need to be allocated to a target time slice, which is preset by a service person, and the set number of terminals may be 10, 11, 15, and the like, and specifically, may be determined according to a service requirement, which is not limited in this embodiment of the present application.
The next slot is a slot that needs to be allocated to all terminals except for the terminal with the set number.
In the present application, as shown in fig. 4, after 10 terminals of task 1 acquire time slice No. 1, a terminal of the next task 1 allocates a new time slice 3. The method can convert the terminal with indefinite quantity into the terminal with fixed quantity, and has the advantages that the time slice length can be prepared and determined; and secondly, the packet loss state of each terminal can be inquired by using modes such as polling and the like in the packet supplementing stage, and the packet supplementing time is agreed in a unified manner.
In the present application, it is also possible to avoid an extreme situation, such as that all terminals performing the target task access to one gateway, and in particular, the detailed description may be made in conjunction with the following specific implementation.
In another specific implementation of the present application, the method may further include:
step E1: when all terminals executing the target task in the gateway group are positioned under the target gateway, receiving a plurality of time slices with the same time generated by the server according to the gateway IDs and the total time of all the gateways; the total time refers to the preset time required for executing the target task;
step E2: and randomly distributing the time slices with the same time to all the terminals.
In the embodiment of the present application, as shown in fig. 3, the time slices of the gateways in the gateway group are sorted according to the fixed priority group. In an extreme case, all terminals are connected to the gateway C of the low priority group, and the time slices owned by the gateways a and B will not be utilized, and the utilization rate is only 1/3. If 10 terminals are accommodated in each time slice, and 500 terminals require 50 time slices, the maximum allocated time slice sequence number in the gateway C is 150, that is, the time for completing the execution of all tasks.
When all terminals executing the target task in the gateway group are located under the target gateway, the server may generate a plurality of time slices with the same time according to the gateway IDs of all gateways and the preset total time required for executing the target task, allocate the plurality of time slices with the same time to the target gateway, and then randomly allocate the plurality of time slices with the same time to all terminals by the target gateway.
The optimization scheme introduces a random sequence generation method, as shown in fig. 5. And randomly sequencing 150 time slices in the worst case, extracting sequence numbers from the disordered sequence according to gateway codes, and then arranging the sequence numbers from small to large to obtain a new sequence combination shown in the right diagram of the figure 3. Thereby avoiding with a certain probability that gateway C is assigned to time slice number 150 in the extreme case.
Further optimizing, the gateway reports the service condition of the time slice to the server at regular time, and the server rearranges and distributes unused time slices according to the method, adjusts the sequence number of the time slices in real time, and achieves higher utilization rate.
After all terminals assigned with the target time slice under the target gateway are acquired, step 102 is executed.
Step 102: and adjusting the states of all the terminals from a dormant state to an awakening state.
For each task, the data to be sent is the same, and in order to improve the task execution efficiency, a multicast mode needs to be adopted to uniformly update all terminals under the task. At this time, the unified wake-up time of the terminal needs to be appointed to ensure that the task data are received at the same time. When the terminal is connected to the gateway and has a task to be executed, the gateway informs the connected terminal of the appointed unified wake-up time.
After all the terminals allocated with the target time slices under the target gateway are obtained, the states of all the terminals can be adjusted from the dormant state to the awakening state.
After the states of all the terminals are adjusted from the sleep state to the awake state, step 103 is executed.
Step 103: and issuing corresponding data to all the terminals according to the target tasks corresponding to the target time slices.
After waking up all terminals, the target gateway can issue corresponding data to all terminals according to target tasks corresponding to target time slices.
According to the data issuing method provided by the embodiment of the application, when the awakening time corresponding to the target time slice of the target gateway is reached, all terminals distributed with the target time slice under the target gateway are obtained, the states of all the terminals are adjusted from the dormant state to the awakening state, and corresponding data are issued to all the terminals according to the target task corresponding to the target time slice. According to the method and the device, the time slice distribution mode is used, the terminals can finish multicast awakening time distribution in one-time interaction mode under the condition that the participation of the server side is not needed, and the fact that a large amount of data of multiple terminals are issued under the condition that the terminals are in long-term dormancy is guaranteed.
Example two
Referring to fig. 6, a schematic structural diagram of a data issuing apparatus provided in the embodiment of the present application is shown, where the data issuing apparatus may be applied to a target gateway, and specifically may include the following modules:
the all-terminal obtaining module 210 is configured to obtain all terminals allocated with a target time slice under the target gateway when the wake-up time corresponding to the target time slice of the target gateway is reached;
a terminal state adjusting module 220, configured to adjust states of all the terminals from a dormant state to an awake state;
and the terminal data issuing module 230 is configured to issue corresponding data to all the terminals according to the target task corresponding to the target time slice.
Optionally, the method further comprises:
the gateway information receiving module is used for receiving the number of all gateways which need to execute the target task in a gateway group issued by a server and the gateway ID of each gateway; the target gateway is one gateway in all the gateways;
a target time slice generation module, configured to generate the target time slices according to the number of the gateways;
a target priority determining module, configured to determine a target wake-up priority corresponding to the target time slice according to each gateway ID and a target gateway ID of the target gateway;
and the target time slice distribution module is used for distributing the target time slices to all terminals needing to execute the target task under the target gateway.
Optionally, the all-terminal obtaining module 210 includes:
a wakeup time determining unit, configured to determine whether the wakeup time of the target time slice is reached according to the target wakeup priority;
and the all-terminal acquisition unit is used for acquiring all the terminals when the awakening time is up.
Optionally, the wake-up time determining unit includes:
a first wake-up time determining subunit, configured to determine that the wake-up time is reached when the target wake-up priority is the highest wake-up priority;
and the second awakening time determining subunit is used for determining that the awakening time is reached when the awakening priority higher than the target awakening priority exists and the target tasks of the gateways corresponding to the awakening priority higher than the target awakening priority are all executed and completed.
Optionally, the target time slice allocation module includes:
a target time slice allocation unit, configured to allocate the target time slices to the terminals with the set number of terminals in all the terminals when the number of terminals in all the terminals reaches the set number of terminals;
a next time slice generating unit for generating a next time slice;
and the next time slice allocation unit is used for allocating the next time slice to other terminals except the terminal with the set number of terminals in all the terminals.
Optionally, the apparatus further comprises:
a time slice receiving module, configured to receive, when all terminals that execute the target task in the gateway group are located under the target gateway, a plurality of time slices with the same time that are generated by the server according to the gateway IDs and the total time of all gateways; the total time refers to the preset time required for executing the target task;
and the random distribution module is used for distributing the time slices with the same time to all the terminals at random.
According to the data issuing device provided by the embodiment of the application, when the awakening time corresponding to the target time slice of the target gateway is reached, all terminals distributed with the target time slice under the target gateway are obtained, the states of all the terminals are adjusted to the awakening state from the dormant state, and corresponding data are issued to all the terminals according to the target tasks corresponding to the target time slice. According to the method and the device, the time slice distribution mode is used, the terminals can finish multicast awakening time distribution in one-time interaction mode under the condition that the participation of the server side is not needed, and the fact that a large amount of data of multiple terminals are issued under the condition that the terminals are in long-term dormancy is guaranteed.
While, for purposes of simplicity of explanation, the foregoing method embodiments are presented as a series of acts or combinations, it will be appreciated by those of ordinary skill in the art that the present application is not limited by the illustrated ordering of acts, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art will recognize that the embodiments described in this specification are preferred embodiments and that acts or modules referred to are not necessarily required for this application.
Additionally, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the image processing method of any one of the above when executing the program.
An embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions, and when the computer instructions are executed by a processor of an electronic device, the electronic device is enabled to execute any one of the data issuing methods described above.
The embodiments in the present specification are all described in a progressive manner, and each embodiment focuses on differences from other embodiments, and portions that are the same and similar between the embodiments may be referred to each other.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus comprising the element.
The data issuing method, the data issuing device, the electronic device and the computer-readable storage medium provided by the present application are introduced in detail, and specific examples are applied to explain the principles and embodiments of the present application, and the descriptions of the above embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. A data issuing method is applied to a target gateway and is characterized by comprising the following steps:
when the awakening time corresponding to the target time slice of the target gateway is reached, acquiring all terminals distributed with the target time slice under the target gateway; the target time slice is a time slice corresponding to the target gateway, and the target time slice is generated according to the number of gateways of all gateways executing the target task and is used for awakening all terminals needing to execute the target task under the target gateway;
adjusting the states of all the terminals from a dormant state to an awakening state; wherein adjusting the states of all the terminals to an awake state comprises: informing, by the target gateway, the agreed unified wake-up time to all the terminals connected to the target gateway;
according to the target task corresponding to the target time slice, corresponding data are issued to all the terminals;
and all the terminals are terminals which need to execute the target task under the target gateway.
2. The method of claim 1, further comprising, before the obtaining all terminals under the target gateway to which the target time slice is allocated:
receiving the gateway number of all gateways which need to execute the target task in a gateway group sent by a server and the gateway ID of each gateway; the target gateway is one gateway in all the gateways;
generating the target time slice according to the number of the gateways;
determining a target awakening priority corresponding to the target time slice according to each gateway ID and the target gateway ID of the target gateway;
and distributing the target time slices to all terminals needing to execute the target task under the target gateway.
3. The method according to claim 2, wherein the obtaining all terminals allocated with the target time slice under the target gateway when the wake-up time corresponding to the target time slice of the target gateway is reached comprises:
determining whether the awakening time of the target time slice is reached or not according to the target awakening priority;
and when the awakening time is up, acquiring all the terminals.
4. The method of claim 3, wherein determining whether the wake-up time of the target time slice is reached according to the target wake-up priority comprises:
determining that the wake-up time is reached when the target wake-up priority is the highest wake-up priority;
and when the target tasks of the gateways corresponding to the awakening priorities higher than the target awakening priority exist and are completely executed, determining that the awakening time is reached.
5. The method according to claim 2, wherein said allocating the target time slice to all terminals under the target gateway that need to execute the target task comprises:
under the condition that the number of the terminals of all the terminals reaches the set number of the terminals, distributing the target time slices to the terminals with the set number of the terminals in all the terminals;
generating a next time slice;
and allocating the next time slice to other terminals except the terminal with the set number of terminals in all the terminals.
6. The method of claim 2, further comprising:
when all terminals executing the target task in the gateway group are positioned under the target gateway, receiving a plurality of time slices with the same time generated by the server according to the gateway IDs and the total time of all the gateways; the total time refers to the preset time required for executing the target task;
and randomly distributing the time slices with the same time to all the terminals.
7. A data issuing device is applied to a target gateway and is characterized by comprising:
the all-terminal acquisition module is used for acquiring all terminals distributed with the target time slice under the target gateway when the awakening time corresponding to the target time slice of the target gateway is reached; the target time slice is a time slice corresponding to the target gateway, and the target time slice is generated according to the number of gateways of all gateways executing the target task and is used for awakening all terminals needing to execute the target task under the target gateway;
the terminal state adjusting module is used for adjusting the states of all the terminals from a dormant state to an awakening state;
and the terminal data issuing module is used for issuing corresponding data to all the terminals according to the target tasks corresponding to the target time slices.
8. The apparatus of claim 7, further comprising:
the gateway information receiving module is used for receiving the number of gateways of all gateways which need to execute the target task in a gateway group sent by a server and the gateway ID of each gateway; the target gateway is one gateway in all the gateways;
a target time slice generating module, configured to generate the target time slice according to the number of the gateways;
a target priority determining module, configured to determine a target wake-up priority corresponding to the target time slice according to each gateway ID and a target gateway ID of the target gateway;
and the target time slice distribution module is used for distributing the target time slices to all terminals which need to execute the target task under the target gateway.
9. An electronic device, comprising:
a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing the data delivery method of any one of claims 1 to 6 when executing the program.
10. A computer readable storage medium having stored thereon computer instructions, which, when executed by a processor of an electronic device, enable the electronic device to perform the data delivery method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911313051.9A CN111132286B (en) | 2019-12-18 | 2019-12-18 | Data issuing method and device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911313051.9A CN111132286B (en) | 2019-12-18 | 2019-12-18 | Data issuing method and device, electronic equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111132286A CN111132286A (en) | 2020-05-08 |
CN111132286B true CN111132286B (en) | 2023-04-14 |
Family
ID=70498316
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911313051.9A Active CN111132286B (en) | 2019-12-18 | 2019-12-18 | Data issuing method and device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111132286B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113645681B (en) * | 2021-08-10 | 2024-01-23 | 山东普赛通信科技股份有限公司 | Low-power consumption wireless wake-up method and system |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106302616B (en) * | 2015-06-11 | 2019-12-31 | 阿里巴巴集团控股有限公司 | Network awakening method, remote server and network switching equipment |
CN105049923B (en) * | 2015-08-28 | 2019-03-01 | 小米科技有限责任公司 | Wake up the method and device of electronic equipment |
CN109041181B (en) * | 2018-07-27 | 2020-12-25 | 南方科技大学 | Wireless communication method, system and gateway equipment |
CN109862068A (en) * | 2018-12-12 | 2019-06-07 | 四川长虹电器股份有限公司 | A kind of LORA data acquisition control system based on TDMA |
CN109561493B (en) * | 2019-01-21 | 2021-11-30 | 上海鸿研物流技术有限公司 | Terminal and awakening method thereof, and data reporting method and system of logistics system |
CN110062443A (en) * | 2019-04-03 | 2019-07-26 | 东南大学 | A kind of device passively waken up under the device sleeps mode suitable for internet-of-things terminal |
CN110149369B (en) * | 2019-04-19 | 2021-11-16 | 欧普照明股份有限公司 | Rotary reporting method and remote control system of terminal equipment based on Internet of things |
-
2019
- 2019-12-18 CN CN201911313051.9A patent/CN111132286B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111132286A (en) | 2020-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8670435B2 (en) | Access and power management for centralized networks | |
CN109831753B (en) | Electronic price tag, gateway and electronic price tag system | |
US9699729B2 (en) | Methods and systems for regulating communications at a mobile communications device | |
CN108874562A (en) | Distributed high concurrent message queue supplying system | |
CN109547578B (en) | Networking method for electronic price tag system | |
US20140056193A1 (en) | System and method for machine to machine communication | |
CN112163042B (en) | Multi-variable data synchronization method and device, electronic device and storage medium | |
CN102779062A (en) | Method and device for controlling number of threads accessing system resources | |
CN104950829A (en) | Bus system power consumption control method and device | |
CN109041181A (en) | Wireless communication method, system and gateway equipment | |
US20140192694A1 (en) | Triggering downlink traffic with timing indication | |
CN103874172A (en) | Data transmission method and system in wireless body area network | |
CN114070447B (en) | Clock correction method and device based on target wake-up time | |
CN111132286B (en) | Data issuing method and device, electronic equipment and computer readable storage medium | |
US9220063B2 (en) | Power management for data transfers in network devices | |
CN102104522A (en) | Real-time communication optimizing method and equipment orienting to cyber-physical system | |
CN106471747B (en) | Method for node synchronization in frequency hopping wireless networks | |
KR101856729B1 (en) | Data transmission system and method for energy efficiency in wireless sensor network | |
CN104243110B (en) | A kind of radio sensing network data transmission method based on non real-time acknowledgement mechanism | |
CN116233200B (en) | Electric energy meter communication method and system based on subsequent frame dynamic registration | |
CN106330641B (en) | Ultra-low power consumption CAN network communication method | |
CN108307416B (en) | Internet of things terminal management method | |
CN102883312A (en) | Method, node, host and system for organizing network automatically | |
JP5636861B2 (en) | COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD | |
CN104025667B (en) | System and method for dispatching communication |
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 |