CN112492683A - Data receiving method, data receiving device, computer equipment and storage medium - Google Patents

Data receiving method, data receiving device, computer equipment and storage medium Download PDF

Info

Publication number
CN112492683A
CN112492683A CN202011207335.2A CN202011207335A CN112492683A CN 112492683 A CN112492683 A CN 112492683A CN 202011207335 A CN202011207335 A CN 202011207335A CN 112492683 A CN112492683 A CN 112492683A
Authority
CN
China
Prior art keywords
data
channel
time
gateway
receiving
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.)
Pending
Application number
CN202011207335.2A
Other languages
Chinese (zh)
Inventor
黄华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Neoway Technology Co Ltd
Original Assignee
Shenzhen Neoway Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Neoway Technology Co Ltd filed Critical Shenzhen Neoway Technology Co Ltd
Priority to CN202011207335.2A priority Critical patent/CN112492683A/en
Publication of CN112492683A publication Critical patent/CN112492683A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a data receiving method, a data receiving device, computer equipment and a storage medium. The method comprises the following steps: and controlling at least two gateways to scan the different channels respectively allocated to the gateways in sequence at the same time, receiving a signal sent by the gateway, wherein the signal is sent when the gateway scans that data is to be sent through the channels, and controlling the gateway to receive the data sent through the channels. By adopting the method, the efficiency and the success rate of data receiving can be improved.

Description

Data receiving method, data receiving device, computer equipment and storage medium
Technical Field
The present application relates to the field of wireless communication technologies, and in particular, to a data receiving method, an apparatus, a computer device, and a storage medium.
Background
With the development of wireless communication technology, various wireless communication methods have appeared, such as: wifi, bluetooth, LoRa communications, etc. The LoRa communication technology has the characteristics of long distance, low power consumption, multiple nodes, low cost, interference resistance and the like, and therefore the LoRa communication technology has a great effect in the industry of the Internet of things.
In the conventional technology, before communication, the frequency and the data transmission rate of a known node are set in advance, and after the setting is finished, a Micro Control Unit (MCU) reads set channel parameters and then controls chips such as an SX1268 and the like to receive data.
However, the conventional technology only supports controlling one SX1268 chip to communicate with a single node, thereby resulting in inefficient data communication.
Disclosure of Invention
In view of the above, it is desirable to provide a data receiving method, an apparatus, a computer device, and a storage medium that can reduce hardware cost and efficiently implement communication with a plurality of nodes.
A method of data reception, the method comprising:
controlling at least two gateways to scan different channels respectively distributed at the same time;
receiving a signal sent by the gateway, wherein the signal is sent when the gateway scans that data is to be sent through a channel;
and controlling the gateway to receive the data transmitted through the channel.
In one embodiment, the method further comprises the following steps:
before the gateway is controlled to receive the data sent by the channel, obtaining receiving time, wherein the receiving time is obtained according to the data transmission rate of the channel;
and controlling the gateway to receive the data transmitted through the channel in the receiving time.
In one embodiment, the method further comprises the following steps:
setting initial scanning time;
and controlling at least two gateways to simultaneously and sequentially scan the different channels respectively allocated to the gateways, wherein the scanning time of each channel is the initial scanning time.
In one embodiment, the method further comprises the following steps:
recording the sending time of the data in the channel;
calculating the time difference of the sending time of the adjacent two times of data in the data which are continuously sent for at least three times according to the sending time of the data in the same channel;
when the calculated time differences are equal, acquiring the time differences as the sending period of the data transmitted in the channel;
and predicting the sending time of the next data in the channel according to the sending period, and adjusting the initial scanning time before the predicted sending time.
In one embodiment, the method further comprises the following steps:
and in the same channel, when the gateway does not receive the data transmitted according to the transmission period for at least three times continuously, resetting the initial scanning time.
A data receiving apparatus, the apparatus comprising:
the scanning module is used for controlling at least two paths of gateways to simultaneously and sequentially scan different channels respectively allocated to the gateways;
the signal receiving module is used for receiving a signal sent by the gateway, wherein the signal is sent when the gateway scans that the existing data is to be sent through a channel;
and the data receiving module is used for controlling the gateway to receive the data transmitted by the channel.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method of any of the above embodiments when the processor executes the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any of the above embodiments.
According to the data receiving method, the data receiving device, the computer equipment and the storage medium, the gateway can dynamically receive the data from the channels by controlling the at least two gateways to scan the channels, so that the frequency and the data transmission rate of the related channels do not need to be known in advance, and the data receiving efficiency is greatly improved.
Drawings
Fig. 1 is a diagram of an application environment of a data receiving method in one embodiment;
fig. 2 is a schematic flow chart of a data receiving method according to an embodiment;
FIG. 3 is a flow chart illustrating step 202 in one embodiment;
FIG. 4 is a flowchart illustrating an initial scan time adjustment step according to one embodiment;
FIG. 5 is a graph of receive time lengths corresponding to 8 levels of data transmission rates in one embodiment;
FIG. 6 is a block diagram showing the structure of a data receiving apparatus according to an embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data receiving method provided by the application can be applied to the application environment shown in fig. 1. The mcu 102 is connected to the gateway 104 through the pins of the chip, and the gateway 104 is connected to the node 106 through a channel. The mcu 102 controls at least two gateways 102 to scan different channels respectively allocated to them, and receives data sent by the node 106 to the gateway 104 through the channels and sent to the mcu 102 through the gateway 104, and adjusts the scanning and receiving strategies according to actual conditions. The gateway 104 directly scans the channel and receives data from the node, and after converting information that the scanned channel is to transmit data into a signal, transmits the signal to the mcu 102. Node 106 sends data to gateway 104 over the channel for reception. The micro control unit 102 may be various single-chip microcomputers such as STM32 or AVR 32. Gateway 104 may be a radio chip such as SX1268, SX1278, SX1276, or SX 1262. The node 106 can be various internet of things terminals such as an intelligent water meter, an intelligent garbage can, intelligent furniture and a vending machine.
In one embodiment, as shown in fig. 2, a data receiving method is provided, which is described by taking the example that the method is applied to the micro control unit in fig. 1, and includes the following steps:
step S202, at least two gateways are controlled to scan the different channels respectively distributed at the same time.
Specifically, in this embodiment, the gateway may be an LoRa radio frequency chip, and the model may include SX1268, SX1278, SX1276, SX1262, and the like.
Specifically, in this embodiment, the control unit may be a micro control unit, and may include a single chip microcomputer such as STM32 or AVR 32.
Specifically, the micro control unit may control at least two gateways to scan different channels, and specifically, the number of the gateways may be determined according to actual needs, for example, selected based on a balance between efficiency and cost. In practical application, due to the cost problem, a user can only select two paths of gateways. And at least two gateways are scanned in parallel, and each gateway scans the channels distributed by the gateway in sequence.
Specifically, the channels scanned by the gateway may be preset before scanning or may be dynamically configured during the scanning process. For example, before the at least two gateways start scanning, the user may allocate channels to be scanned to different gateways for scanning, for example, to allocate channels evenly, or to allocate channels differently based on different chips used by the gateways. In addition, the user may also set a channel allocation policy of the micro control unit in advance, where the channel allocation policy causes the micro control unit to dynamically allocate a channel to be scanned to different gateways for scanning in the process of controlling the gateways to scan the channel, for example, based on whether the gateway has a fault or the processing efficiency of the gateway.
In particular, the user may also group channels at different frequencies, so that the micro control unit is dynamically assigned to different gateways before or during scanning by the gateways.
Step S204, receiving a signal sent by the gateway, wherein the signal is sent when the gateway scans that the existence data is to be sent through the channel.
Wherein the signal may be an interrupt pulse signal that is used to alert the micro-control unit that it is ready to receive data. In practical application, the interrupt pulse signal carries a channel identifier of a channel where data to be transmitted is located, so that the micro control unit can determine the channel of the data to be transmitted according to the channel identifier.
The channel identification may be a label for uniquely determining the channel, such as a channel number previously assigned by the user. It is noted that the frequency and data transmission rate of each channel are specific, and at least one of the frequency and data transmission rate of the different channels is different. The number of each channel may correspond to a combination of frequency and data transmission rate.
Specifically, when the gateway scans that a node is ready to send data, the gateway sends an interrupt pulse signal to the micro control unit, and the micro control unit determines a channel of the data to be sent according to the channel identifier and prepares for receiving the data, for example: the micro-control unit first determines the frequency and data transmission rate of the channel.
Step S206, the control gateway receives the data transmitted through the channel.
Specifically, the micro control unit finds the corresponding gateway according to the previous interrupt pulse signal and sends a start receiving signal to the gateway. After receiving the start receiving signal, the gateway suspends the current scanning action or expands the data receiving work of the corresponding channel in the scanning interval, and completes the data receiving after a period of time. In other embodiments, the gateway may also open other threads to receive data of the corresponding channel, for example, the gateway continues scanning the channel through one thread and receives data sent by the channel through another thread.
In the data receiving method, the micro control unit controls the at least two gateways to simultaneously and sequentially scan the different channels respectively allocated to the gateways, so that the technical problem that the single gateway can only receive the data of the single channel at one time is solved, the multi-channel gateways simultaneously receive the data of the multi-channel channels, and the data receiving efficiency is greatly improved.
In one embodiment, before the control gateway receives the data transmitted through the channel, the corresponding receiving time is obtained according to the data transmission rate of the channel. Thus, the control gateway receives data transmitted over a channel, comprising: the control gateway receives data transmitted through the channel during the reception time.
The data transmission rate of the channel may have N total levels, for example, 8 levels, from high to low, which are respectively: SF5, SF6, SF7, SF8, SF9, SF10, SF11, and SF 12. The micro control unit may obtain the receiving time corresponding to the data transmission rate of 8 levels by calculating the data amount divided by the data transmission rate, as shown in fig. 5, from short to long, respectively: tsf5, Tsf6, Tsf7, Tsf8, Tsf9, Tsf10, Tsf11, and Tsf 12.
Specifically, before the gateway receives data from the channel with the data transmission rate SF7, the micro control unit obtains a receiving time Tsf7 corresponding to the data transmission rate SF 7.
And the micro control unit controls the gateway to receive the data transmitted by the channel within the acquired receiving time.
Specifically, after obtaining the receiving time Tsf7, the mcu sends a receiving start signal and a receiving time Tsf7 to the gateway, and the gateway starts receiving data after receiving the receiving start signal. Meanwhile, the gateway starts timing and receives data. When the timer unit in the gateway detects that the receiving time Tsf7 has elapsed, the gateway completes receiving the data and starts scanning the channel again.
In the embodiment, the corresponding receiving time is obtained by calculating according to different data transmission rates, so that the data can be efficiently received, and the success rate of data receiving is improved because the receiving time is matched with the data transmission rate.
In an embodiment, as shown in fig. 3, fig. 3 is a schematic flowchart of a step S202 in the embodiment shown in fig. 2, in this embodiment, the step S202 is to control at least two gateways to scan different channels respectively allocated to the gateways at the same time, and includes:
step S302, an initial scanning time is set.
The initial scanning time refers to the time spent by each gateway from the beginning of scanning to the end of scanning in the process of scanning a single channel.
Specifically, the initial scanning time may be set by combining the number of channels of the gateway, the number of channels to be scanned, and the period for the node to send data, and after a series of repeated experiments, a time with the best scanning effect is set according to the actual situation. If the performance parameters of each gateway are different, the user can also set different scanning time respectively so as to achieve the optimal scanning effect.
Step S304, controlling at least two gateways to scan the different channels respectively allocated to them at the same time, and the scanning time of each channel is the initial scanning time in S302.
Specifically, the time for each gateway to scan each channel should be as short as possible, and may be 50 milliseconds.
In the above embodiment, the micro control unit sets the initial scanning time in advance, and the initial scanning time is as short as possible, thereby ensuring the scanning efficiency.
In an embodiment, referring to fig. 4, fig. 4 is a flowchart of an initial scan time adjusting step in an embodiment, where the initial scan time adjusting step may include:
step S402 records the transmission time of the data in the channel.
Specifically, when the gateway scans that data is about to be sent through a channel, the micro control unit records the current time of the clock chip, the frequency of the channel and the data transmission rate, and stores the parameters.
Step S404, according to the sending time of the data in the same channel, calculating the time difference of the sending time of the two adjacent data in the data sent at least three times continuously.
Specifically, when a certain channel transmits data, the time points of transmitting the data three times in succession are a, b, and c, and the time difference is b-a and c-b. In other embodiments, the time difference between the transmission time of two adjacent data in the data transmitted by the same channel for at least four times can be calculated, so that several time differences are calculated to improve the accuracy of the determination of the transmission period.
Preferably, the micro control unit may perform calculation immediately before the first three times of transmission of the data in the channel, and if the time difference is not equal, the micro control unit may continue to calculate for the fourth time until the time difference between the transmission time of two adjacent data in the data transmitted by at least three consecutive times is equal.
In step S406, when the time differences calculated in S404 are equal, the time differences are acquired as the transmission cycles of the data transmitted in the channel.
Specifically, as in the above example, if b-a is equal to c-b, it indicates that data is regularly transmitted, and therefore, the time difference, such as b-a or c-b, can be obtained as the transmission period of data transmitted in the channel.
In step S408, the transmission time of the next transmission data in the channel is predicted based on the data transmission cycle in the channel calculated in step S406, and the initial scanning time is adjusted before the predicted transmission time.
Specifically, before the node 1 sends data next time, the micro control unit shortens the scanning time of the gateway on the channel 1: for example, the initial scanning time of 50 ms is adjusted to 20 ms.
The micro control unit screens out the nodes with fixed sending periods, then allocates shorter scanning time, and the gateway can save more time for scanning other nodes, so that the data receiving efficiency is improved.
In an embodiment, the data receiving method further includes: and in the same channel, when the gateway does not receive the data transmitted according to the transmission period for at least three times, the micro control unit resets the scanning time of the gateway to the initial scanning time.
Specifically, a period of previous data transmission by a node is t, and a time when the node last transmitted data is a. According to calculation, the following three data transmission moments of the node are presumed as follows: a + t, a +2t and a +3 t. If the gateway does not receive data from the node at the next three transmission moments, the micro control unit will reset the scanning time of the gateway for the node to the initial scanning time.
The micro control unit can find the change of the data transmitted by the node in time by continuously tracking the node with a fixed transmission period, so that the time for scanning the node by the gateway can be adjusted more flexibly, and the receiving efficiency and the success rate of the data are improved.
In order to make the data receiving method in the present application sufficiently known to those skilled in the art, the following provides a specific embodiment of the data receiving method:
specifically, as shown in fig. 1, the micro control unit is connected to two gateway chips through pins, and performs LoRa communication with a plurality of nodes through different channels and two gateways. And the micro control unit controls the two gateways to scan two groups of channels with different frequencies respectively. The gateway 1 scans the channel group with frequency a, and respectively has: channel a1, channels a2, … …, and channel An. The gateway 2 scans the channel group with frequency B, and respectively has: channel B1, channel B2, … … channel Bm. The data transmission rate of each channel in each group of channels is different, and there are 8 different levels, which may increase or decrease in the future, from high to low: SF5, SF6, SF7, SF8, SF9, SF10, SF11, and SF 12. The micro control unit can obtain the receiving time corresponding to the data transmission rate of 8 levels by calculating the data quantity divided by the data transmission rate, and the receiving time is respectively as follows from short to long: tsf5, Tsf6, Tsf7, Tsf8, Tsf9, Tsf10, Tsf11, and Tsf 12. The micro-control unit records in advance the correspondence between each reception time and the different channels.
Before starting the scanning, the mcu sets the same initial scanning time for both gateways for 50 ms. Gateway 1 and gateway 2 then simultaneously begin scanning the respectively assigned channel groups. The gateway 1 cyclically scans channel a1, channels a2, … … and channel An in turn.
In this embodiment, it is assumed that node a1 transmits data to gateway 1 through channel a 1. When the gateway 1 scans that the node A1 is about to send data through the channel A1, the gateway 1 sends an interrupt pulse signal to the micro control unit, so that the micro control unit finds the receiving time corresponding to the channel A1 according to the corresponding relation between the pre-recorded channel and the receiving time. The receive time corresponding to channel a1 in this example is Tsf 5. After acquiring the receiving time Tsf5, the mcu sends a receiving start signal and a receiving time Tsf5 to the gateway 1, and the gateway 1 starts receiving data after receiving the receiving start signal and completes receiving data within the receiving time Tsf 5. Gateway 1 then continues to scan channel a2 in order.
In this embodiment, when the gateway 1 scans that data is about to be transmitted through the channel a1, the mcu records the current time of the clock chip, the frequency of the channel a1, and the data transmission rate, and stores the above parameters. Assuming that the transmission time instants a, b and c of the channel a1 recorded three consecutive times, the time difference is b-a and c-b. If b-a is equal to c-b, it means that the data is transmitted regularly, so that the time difference, e.g., b-a or c-b, can be obtained as the transmission period of the data transmitted in channel a 1.
In this embodiment, before the node a1 sends data next time, the mcu shortens the scanning time of the gateway on the channel a 1: for example, the initial scanning time of 50 ms is adjusted to 20 ms.
In this embodiment, it is assumed that the period in which the node a1 previously transmitted data is t, and the time at which the node a1 last transmitted data is a. According to the calculation, the next three data transmission times of the node a1 are assumed to be: a + t, a +2t, a +3 t. If the gateway 1 did not receive data from node A1 at any of the next three transmit times, the mcu will reset the gateway 1 scan time for node A1 to the initial scan time of 50 ms.
In this embodiment, the micro control unit scans multiple channels by controlling the two gateways, flexibly selects the data receiving time, allocates a smaller scanning time to a node with a fixed sending period, and the like, thereby greatly improving the efficiency and success rate of data reception.
It should be understood that although the various steps in the flow diagrams of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 6, there is provided a data receiving apparatus including: a scanning module 100, a signal receiving module 200 and a data receiving module 300, wherein:
the scanning module 100 is configured to control at least two gateways to scan different channels respectively allocated to the gateways at the same time.
The signal receiving module 200 is configured to receive a signal sent by the gateway, where the signal is sent when the gateway scans that there is data to be sent through a channel.
A data receiving module 300, configured to control the gateway to receive data sent through the channel.
In one embodiment, the different channels differ in at least one of frequency or data transmission rate.
In one embodiment, the data receiving apparatus further includes:
and the receiving time acquisition module is used for acquiring corresponding receiving time according to the data transmission rate of the channel before the control gateway receives the data transmitted by the channel.
The data receiving module 300 is further configured to control the gateway to receive data transmitted through the channel during the receiving time.
In one embodiment, the scanning module 100 comprises:
and the initial scanning time setting unit is used for setting the initial scanning time.
And the scanning unit is used for controlling the at least two gateways to simultaneously and sequentially scan the different channels which are respectively distributed, and the scanning time of each channel is the initial scanning time.
In one embodiment, the data receiving apparatus further includes:
and the sending time recording module is used for recording the sending time of the data in the channel.
And the sending time difference calculating module is used for calculating the time difference of the sending time of the adjacent two times of data in the data which are continuously sent for at least three times according to the sending time of the data in the same channel.
And the sending period calculating module is used for acquiring the time difference as the sending period of the data transmitted in the channel when the calculated time differences are equal.
And the sending time prediction module is used for predicting the sending time of the next data according to the sending period obtained by calculation.
And the scanning time adjusting module is used for adjusting the initial scanning time before the predicted sending time.
In one embodiment, the data receiving apparatus further includes:
and the scanning time resetting module is used for resetting the scanning time of the gateway as the initial scanning time when the gateway does not receive the data sent according to the sending period for at least three times continuously in the same channel.
For specific limitations of the data receiving apparatus, reference may be made to the above limitations of the data receiving method, which are not described herein again. The respective modules in the data receiving apparatus may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a data receiving method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: controlling at least two gateways to scan different channels respectively distributed at the same time; receiving a signal sent by a gateway, wherein the signal is sent when the gateway scans that data is to be sent through a channel; the control gateway receives data transmitted over the channel.
In an embodiment the processor executes the computer program with respect to at least one of a frequency or a data transmission rate of said different channels.
In one embodiment, the implementation of the computer program when executed by the processor further comprises, prior to the control gateway receiving the data transmitted over the channel: acquiring receiving time, wherein the receiving time is obtained according to the data transmission rate of a channel; a control gateway implemented when a processor executes a computer program receives data transmitted over a channel, comprising: the control gateway receives data transmitted through the channel during the reception time.
In one embodiment, the controlling of the at least two gateways to scan the different channels allocated to each gateway at the same time when the processor executes the computer program includes: setting initial scanning time; and controlling at least two gateways to simultaneously and sequentially scan the different channels respectively allocated to the gateways, wherein the scanning time of each channel is the set initial scanning time.
In one embodiment, the processor, when executing the computer program, further performs the steps of: recording the sending time of the sent data in the channel; calculating the time difference of the sending time of the adjacent two times of data in the data which are continuously sent for at least three times according to the sending time of the data in the same channel; when the calculated time difference is equal, acquiring the time difference as a sending period of data transmitted in the channel; and predicting the time of next data transmission in the channel according to the transmission period, and adjusting the scanning time of the gateway on the channel before the predicted transmission time.
In one embodiment, the processor, when executing the computer program, further performs the steps of: in the same channel, when the gateway does not receive the data transmitted according to the transmission cycle at least three times continuously, the scanning time is reset to the initial scanning time.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: controlling at least two gateways to scan different channels respectively distributed at the same time; receiving a signal sent by a gateway, wherein the signal is sent when the gateway scans that data is to be sent through a channel; the control gateway receives data transmitted over the channel.
In an embodiment the computer program, when executed by the processor, is adapted to cause at least one of a difference in frequency or data transmission rate of said different channels.
In one embodiment, the computer program when executed by the processor further comprises, prior to the control gateway receiving the data transmitted over the channel: acquiring receiving time, wherein the receiving time is obtained according to the data transmission rate of a channel; a control gateway implemented when a processor executes a computer program receives data transmitted over a channel, comprising: the control gateway receives data transmitted through the channel during the reception time.
In one embodiment, the controlling of the at least two gateways to scan respectively allocated different channels sequentially at the same time when the computer program is executed by the processor includes: setting initial scanning time; and controlling at least two gateways to simultaneously and sequentially scan the different channels respectively allocated to the gateways, wherein the scanning time of each channel is the set initial scanning time.
In one embodiment, the computer program when executed by the processor further performs the steps of: recording the sending time of the sent data in the channel; calculating the time difference of the sending time of the adjacent two times of data in the data which are continuously sent for at least three times according to the sending time of the data in the same channel; when the calculated time difference is equal, acquiring the time difference as a sending period of data transmitted in the channel; and predicting the time of next data transmission in the channel according to the transmission period, and adjusting the scanning time of the gateway on the channel before the predicted transmission time.
In one embodiment, the computer program when executed by the processor further performs the steps of: in the same channel, when the gateway does not receive the data transmitted according to the transmission cycle at least three times continuously, the scanning time is reset to the initial scanning time.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A data receiving method, comprising:
controlling at least two gateways to scan different channels respectively distributed at the same time;
receiving a signal sent by the gateway, wherein the signal is sent when the gateway scans that data is to be sent through a channel;
and controlling the gateway to receive the data transmitted through the channel.
2. The method of claim 1, wherein at least one of the frequency or the data transmission rate of the different channels is different.
3. The method according to claim 1 or 2, wherein before the controlling the gateway to receive the data transmitted through the channel, further comprising:
acquiring receiving time, wherein the receiving time is obtained according to the data transmission rate of the channel;
the controlling the gateway to receive the data transmitted through the channel includes:
and controlling the gateway to receive the data transmitted through the channel in the receiving time.
4. The method according to claim 1 or 2, wherein the controlling of the at least two gateways to scan respectively allocated different channels sequentially at the same time comprises:
setting initial scanning time;
and controlling at least two gateways to simultaneously and sequentially scan the different channels respectively allocated to the gateways, wherein the scanning time of each channel is the initial scanning time.
5. The method of claim 4, further comprising:
recording the sending time of the data in the channel;
calculating the time difference of the sending time of the adjacent two times of data in the data which are continuously sent for at least three times according to the sending time of the data in the same channel;
when the calculated time differences are equal, acquiring the time differences as a sending period of data transmitted in the channel;
and predicting the sending time of the next data in the channel according to the sending period, and adjusting the initial scanning time before the predicted sending time.
6. The data receiving method according to claim 5, characterized in that the method further comprises:
and in the same channel, when the gateway does not receive the data transmitted according to the transmission period for at least three times continuously, resetting the initial scanning time.
7. A data receiving apparatus, the apparatus comprising:
the scanning module is used for controlling at least two paths of gateways to simultaneously and sequentially scan different channels respectively allocated to the gateways;
the signal receiving module is used for receiving a signal sent by the gateway, wherein the signal is sent when the gateway scans that the existing data is to be sent through a channel;
and the data receiving module is used for controlling the gateway to receive the data transmitted by the channel.
8. The data receiving apparatus according to claim 7, wherein said apparatus further comprises:
a receiving time obtaining module, configured to obtain receiving time before the gateway is controlled to receive the data sent through the channel, where the receiving time is obtained according to different data transmission rates of the channel;
the data receiving module is further configured to control the gateway to receive the data sent through the channel within the receiving time.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202011207335.2A 2020-11-03 2020-11-03 Data receiving method, data receiving device, computer equipment and storage medium Pending CN112492683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011207335.2A CN112492683A (en) 2020-11-03 2020-11-03 Data receiving method, data receiving device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011207335.2A CN112492683A (en) 2020-11-03 2020-11-03 Data receiving method, data receiving device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112492683A true CN112492683A (en) 2021-03-12

Family

ID=74927936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011207335.2A Pending CN112492683A (en) 2020-11-03 2020-11-03 Data receiving method, data receiving device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112492683A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007300170A (en) * 2006-04-27 2007-11-15 Mitsubishi Electric Corp In-vehicle broadcast receiver
CN101309102A (en) * 2007-05-16 2008-11-19 三星电子株式会社 Method and apparatus for scanning for an idle channel in a frequency environment
CN102742309A (en) * 2010-02-24 2012-10-17 交互数字专利控股公司 Method and apparatus for sending an aggregated beacon
CN108650686A (en) * 2018-08-22 2018-10-12 苏州凌犀物联网技术有限公司 A kind of Ping-Pong test methods, terminal and the server of frequency sweep
CN111132287A (en) * 2019-12-19 2020-05-08 中科芯集成电路有限公司 Lora-based low-delay low-power-consumption downlink communication mechanism
CN111294906A (en) * 2020-02-26 2020-06-16 京东方科技集团股份有限公司 Terminal, communication system and communication method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007300170A (en) * 2006-04-27 2007-11-15 Mitsubishi Electric Corp In-vehicle broadcast receiver
CN101309102A (en) * 2007-05-16 2008-11-19 三星电子株式会社 Method and apparatus for scanning for an idle channel in a frequency environment
CN102742309A (en) * 2010-02-24 2012-10-17 交互数字专利控股公司 Method and apparatus for sending an aggregated beacon
CN108650686A (en) * 2018-08-22 2018-10-12 苏州凌犀物联网技术有限公司 A kind of Ping-Pong test methods, terminal and the server of frequency sweep
CN111132287A (en) * 2019-12-19 2020-05-08 中科芯集成电路有限公司 Lora-based low-delay low-power-consumption downlink communication mechanism
CN111294906A (en) * 2020-02-26 2020-06-16 京东方科技集团股份有限公司 Terminal, communication system and communication method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
STARENT, VERIZON, MOTOROLA, NOKIA SIEMENS NETWORKS, ALCATEL-LUCENT, CAMIANT: "S2-086409 "23.203 CR0212R3: Clarification on Gateway Control Session"", 3GPP TSG_SA\\WG2_ARCH, no. 2, 4 September 2008 (2008-09-04) *

Similar Documents

Publication Publication Date Title
JP3419355B2 (en) Scheduling control device and method
CN104322132A (en) Method for controlling request on uplink authorization resource, user equipment and base station
CN104053239B (en) A kind of time-domain resource distribution method and device
JP2021520089A (en) Methods and terminal devices for random access
CN105813176A (en) Wireless local area network scanning method and terminal
CN111512673B (en) Network node awakening method and equipment
CN105009623A (en) Method and apparatus for controlling discontinuous reception
CN112492683A (en) Data receiving method, data receiving device, computer equipment and storage medium
CN109769304A (en) Method, terminal, electronic equipment and the storage medium that scheduling request is sent
CN112650566A (en) Timed task processing method and device, computer equipment and storage medium
CN115226228B (en) Time slot allocation method, time slot allocation device, master station equipment and storage medium
CN112769663B (en) Communication method, communication apparatus, computer device, and storage medium
JPH09219715A (en) Communication system
JP6648276B2 (en) Scheduling device, scheduled device, resource scheduling method and device
KR101046294B1 (en) Method of selecting transmission channel in TMD protocol and communication system using the method
CN114337966A (en) Wireless resource allocation method, device, computer equipment and storage medium
Bauwens et al. Coexistence between IEEE802. 15.4 and IEEE802. 11 through cross-technology signaling
CN118042650B (en) Method and apparatus for wireless communication network terminal to extend discontinuous reception period configuration
WO2024016237A1 (en) Switching methods, apparatus, device and storage medium
CN112399451B (en) Operation control method and device for wireless communication device of ultra-dense heterogeneous network
CN116233896B (en) Method and system for transmitting message by user equipment in wireless communication system
CN108512639B (en) Method and device for sending leader sequence
CN112566151B (en) Message sending method and base station
WO2024033690A1 (en) Non-monotonic control channel monitoring
JP3848178B2 (en) Control apparatus and communication resource allocation method in code division multiple access communication system

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