CN111200834A - Communication method, terminal, server, and computer storage medium - Google Patents

Communication method, terminal, server, and computer storage medium Download PDF

Info

Publication number
CN111200834A
CN111200834A CN201811381784.1A CN201811381784A CN111200834A CN 111200834 A CN111200834 A CN 111200834A CN 201811381784 A CN201811381784 A CN 201811381784A CN 111200834 A CN111200834 A CN 111200834A
Authority
CN
China
Prior art keywords
time
channel
terminal
server
data
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.)
Granted
Application number
CN201811381784.1A
Other languages
Chinese (zh)
Other versions
CN111200834B (en
Inventor
王文剑
蔡吉龙
张俭
李艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Kaifa Technology Co Ltd
Original Assignee
Shenzhen Kaifa 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 Kaifa Technology Co Ltd filed Critical Shenzhen Kaifa Technology Co Ltd
Priority to CN201811381784.1A priority Critical patent/CN111200834B/en
Publication of CN111200834A publication Critical patent/CN111200834A/en
Application granted granted Critical
Publication of CN111200834B publication Critical patent/CN111200834B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0453Resources in frequency domain, e.g. a carrier in FDMA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/53Allocation or scheduling criteria for wireless resources based on regulatory allocation policies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access, e.g. scheduled or random access
    • H04W74/04Scheduled or contention-free access

Abstract

The invention discloses a communication method, a terminal, a server and a computer storage medium, wherein the method comprises the following steps: the terminal sends a network access request to the server; receiving a channel parameter and a time parameter sent by a server; a fixed channel is selected for transmitting data based on the channel parameters, and the data is transmitted based on the data transmission time determined by the time parameter so as to be staggered from the data transmission time of other terminals already assigned to the same channel. The invention manages the data transmission of the terminal from two dimensions of time and channel, so that the transmission process is more efficient, the terminal is ensured not to have conflict on the time and the channel when transmitting the data, the packet loss rate is reduced, further, the server periodically issues the broadcast heartbeat packet, on one hand, the terminal can conveniently judge whether the terminal is off-network, and on the other hand, the data transmission time of the terminal can be periodically calibrated.

Description

Communication method, terminal, server, and computer storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to a communication method, a terminal, a server, and a computer storage medium.
Background
LoRa is a wireless transmission technology. In the LoRa communication, devices are divided into terminals, gateways, and servers. The terminal and the gateway use LoRa communication, and the gateway and the server use Ethernet communication.
When multiple terminals transmit data on the same channel at the same time, collision occurs, which results in that the server cannot receive the data transmitted by all the terminals at the same time. Since the terminal and the gateway are half-duplex communication, this means that the terminal and the gateway cannot receive data when transmitting data and cannot transmit data when receiving data. The time for the terminal to receive and send data is random, when the gateway sends data, if the terminal also sends data at the time, the gateway can not receive the data sent by the terminal. The same is true for the terminal. This necessarily results in data loss.
Specifically, referring to fig. 1, the gateway has 8 uplink (receive) channels, one downlink (transmit) channel, and cannot receive data when transmitting data, and the terminal has only one uplink (transmit) channel and one downlink (receive) channel, and is also half-duplex communication. After the terminal accesses the network, the terminal sends data to the gateway in random time and random channel. Although the gateway has 8 uplink (receiving) channels, it still cannot effectively avoid the collision caused by multiple terminals sending data simultaneously in the same channel.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a communication method, a terminal, a server and a computer storage medium, aiming at the above-mentioned defects of the prior art that the same channel communication at the same time causes conflict and half-duplex communication.
The technical scheme adopted by the invention for solving the technical problems is as follows:
in a first aspect, the present invention provides a communication method, comprising:
the terminal sends a network access request to the server;
receiving channel parameters and time parameters sent by a server, wherein the server is preset with a plurality of channels for the terminals to upload data, each channel can be allocated to a plurality of terminals, and each channel corresponds to one channel parameter;
selecting a fixed channel for transmitting data based on the channel parameter, and transmitting data based on the data transmission time determined by the time parameter so as to be staggered with the data transmission time of other terminals already allocated to the same channel.
Preferably, the time parameters include time T0 and time Δ T, time T0 represents time from the next transmission of the broadcast heartbeat packet by the server, time Δ T represents how long it is possible to transmit the data packet to the server after receiving the broadcast heartbeat packet, the broadcast heartbeat packet includes time T0, and all terminals allocated to the same channel correspond to different times Δ T;
the method further comprises the following steps: after waiting for time T0 each time the terminal acquires time T0, the terminal windows to prepare for receiving a broadcast heartbeat packet sent by the server, judges to leave the network when the broadcast heartbeat packet is not received, and resends a network access request to the server.
Preferably, the sending data based on the data sending time determined by the time parameter includes: the terminal calibrates the data sending time of the terminal once when acquiring the broadcast heartbeat packet every time, and periodically sends the data packet to the server after waiting for the time delta T until the terminal acquires the broadcast heartbeat packet next time so as to calibrate the data sending time again.
In a second aspect, the present invention provides a terminal, comprising:
the network access request module is used for sending a network access request to the server;
the system comprises a parameter acquisition module, a time parameter acquisition module and a time parameter acquisition module, wherein the parameter acquisition module is used for receiving channel parameters and time parameters sent by a server, the server is preset with a plurality of channels for terminals to upload data, each channel can be allocated to a plurality of terminals, and each channel corresponds to one channel parameter;
and the data sending module is used for selecting a fixed channel for sending data based on the channel parameters and sending the data based on the data sending time determined by the time parameters so as to be staggered with the data sending time of other terminals which are already allocated to the same channel.
Preferably, the time parameters include time T0 and time Δ T, time T0 represents time from the next transmission of the broadcast heartbeat packet by the server, time Δ T represents how long it is possible to transmit the data packet to the server after receiving the broadcast heartbeat packet, the broadcast heartbeat packet includes time T0, and all terminals allocated to the same channel correspond to different times Δ T;
the terminal further comprises an online check module, which is used for windowing to prepare for receiving the broadcast heartbeat packet sent by the server after waiting for the time T0 when the time T0 is obtained every time, and resending the network access request to the server when the broadcast heartbeat packet is not received.
Wherein, the data sending module comprises: a channel selection sub-module for selecting a fixed channel for transmitting data based on the channel parameters; and the data sending submodule is used for calibrating the data sending time of the terminal once when the broadcast heartbeat packet is obtained every time, and periodically sending the data packet to the server after waiting for the time delta T until the terminal obtains the broadcast heartbeat packet next time so as to calibrate the data sending time again.
In a third aspect, the present invention provides a terminal comprising a processor and a memory, said memory storing a computer program, said computer program being loadable by said processor and adapted to perform the method as described above.
In a fourth aspect, the present invention provides a communication method, the method comprising:
a server receives a network access request sent by a terminal;
determining channel parameters of a terminal so as to select a fixed channel from a plurality of preset channels to be allocated to the terminal, wherein the server is preset with a plurality of channels for the terminal to upload data, each channel can be allocated to the plurality of terminals, and each channel corresponds to one channel parameter; determining a time parameter of the terminal so as to stagger the data transmission time of the terminal from the data transmission time of other terminals which are already allocated to the same channel;
and sending the channel parameters and the time parameters to the terminal so that the terminal selects a fixed channel for sending data according to the channel parameters and sends the data according to the data sending time determined by the time parameters.
Preferably, the time parameters include time T0 and time Δ T, time T0 represents time from the next transmission of the broadcast heartbeat packet by the server, time Δ T represents how long it is possible to transmit the data packet to the server after receiving the broadcast heartbeat packet, the broadcast heartbeat packet includes time T0, and all terminals allocated to the same channel correspond to different times Δ T;
the method further comprises the following steps: the server periodically sends broadcast heartbeat packets to all terminals, so that each terminal can judge whether to leave the network and calibrate the data sending time.
In a fifth aspect, the present invention provides a server, comprising:
the network access module is used for receiving a network access request sent by the terminal;
the system comprises a parameter determining module, a channel parameter determining module and a channel parameter determining module, wherein the parameter determining module is used for determining the channel parameter of a terminal so as to select a fixed channel from a plurality of preset channels to be allocated to the terminal, the server is preset with the plurality of channels for the terminal to upload data, each channel can be allocated to the plurality of terminals, and each channel corresponds to one channel parameter; determining a time parameter of the terminal so as to stagger the data transmission time of the terminal from the data transmission time of other terminals which are already allocated to the same channel;
and the parameter issuing module is used for issuing the channel parameters and the time parameters to the terminal so that the terminal selects a fixed channel according to the channel parameters to send data and sends the data according to the data sending time determined by the time parameters.
In a sixth aspect, the invention provides a server comprising a processor and a memory, said memory storing a computer program that is loadable by said processor and adapted to perform the method as described above.
In a seventh aspect, the present invention provides a computer storage medium, where a computer program is stored, and the computer program is executed to implement the communication method according to one or more of the foregoing technical solutions.
The communication method, the terminal, the server and the computer storage medium have the following beneficial effects: the invention can realize that a server manages a plurality of terminals on communication time and channels, the server presets a plurality of channels which can be allocated to different terminals, channel parameters and time parameters are issued when the terminals access the network, the terminals select a fixed channel for sending data based on the channel parameters, and based on the time parameters, the data sending time of the terminals can be staggered with the data sending time of other terminals which are already allocated to the same channel, so the invention manages the data sending of the terminals from two dimensions of time and channel, the transmission process is more efficient, the terminals are ensured not to have conflict on the time and the channel when sending the data, and the packet loss rate is reduced; furthermore, the server periodically issues the broadcast heartbeat packet, so that the terminal can conveniently judge whether the terminal is off the network on one hand, and the data sending time of the terminal can be periodically calibrated on the other hand.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts:
FIG. 1 is a schematic diagram of a prior art communication method;
FIG. 2 is a schematic diagram of a communication method provided by an embodiment of the invention;
fig. 3 is a flowchart of a communication method according to an embodiment of the present invention;
fig. 4 is a flow chart of another communication method provided by the embodiment of the invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Exemplary embodiments of the invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
The general idea of the invention is as follows: referring to fig. 2, a channel and a data transmission time for data transmission of each terminal are planned by a server, the terminal can transmit data only in a predetermined channel and data transmission time, uplink data of each terminal is staggered according to two dimensions of time and channel, a plurality of terminals are allocated to a plurality of preset channels, the plurality of terminals are staggered from the channel, and data transmission times of the plurality of terminals allocated to the same channel are staggered.
In order to better understand the technical solutions, the technical solutions will be described in detail below with reference to the drawings and the specific embodiments of the specification, and it should be understood that the embodiments and specific features of the embodiments of the present invention are detailed descriptions of the technical solutions of the present application, and are not limited to the technical solutions of the present application, and the technical features of the embodiments and examples of the present invention may be combined with each other without conflict.
Example one
Referring to fig. 3, an embodiment of the present invention provides a communication method, where an execution subject of the method is a terminal, and the method includes the following steps:
s101, a terminal sends a network access request to a server;
s102, receiving channel parameters and time parameters sent by a server, wherein the server is preset with a plurality of channels for the terminals to upload data, each channel can be allocated to a plurality of terminals, and each channel corresponds to one channel parameter;
s103, selecting a fixed channel for sending data based on the channel parameters, and sending the data based on the data sending time determined by the time parameters so as to be staggered with the data sending time of other terminals which are already allocated to the same channel.
Wherein the channel parameters specify the channel used by the terminal to transmit (uplink) data, and the terminal can only transmit data on this channel, as shown in fig. 2, the terminal 11-41 is assigned to transmit data on channel 1, the terminal 12-42 is assigned to transmit data on channel 2, and so on, so as to stagger the data transmitted by multiple terminals from the channel. It should be noted that the number of channels is not limited to the channels 1-7 in fig. 2, which is only an example.
In order to avoid collision of data transmitted simultaneously by a plurality of terminals assigned to the same signal, data transmission times of terminals assigned to the same channel are further shifted. To this end, the time parameters include a time T0 and a time Δ T. Where time T0 represents the time until the server next sends the broadcast heartbeat packet, and time Δ T represents how long it is possible to send the data packet to the server after receiving the broadcast heartbeat packet.
The channel for the server to send the broadcast heartbeat packet is a pre-configured fixed channel, correspondingly, the channel for the terminal to receive data is also a pre-configured fixed channel, and all terminals share one channel for receiving data, so that all terminals can be embraced to synchronously acquire the broadcast heartbeat packet. In addition, the channel on which the server transmits the broadcast heartbeat packet may be selected from a preset plurality of channels. For example, if the gateway has 8 channels F0-F7, F0 may be selected as the fixed channel on which the broadcast heartbeat packet is sent. And the 8 channels F0-F7 may all or some of them may be selected for allocation to a plurality of terminals for transmitting data.
In this embodiment, each received broadcast heartbeat packet includes time T0. Since the terminal network-entry time is not fixed, the time T0 acquired when the terminal first accesses the network is related to the current time when the terminal accesses the network, and the time T0 acquired by broadcasting the heartbeat packet thereafter is fixed.
In this embodiment, there are two roles of broadcasting the heartbeat packet, and the first role is to facilitate the terminal to check whether the terminal is off-network. To this end, the method of this embodiment further includes: when the terminal acquires the time T0 each time (the first acquisition is to acquire the time T0 from the server after sending the network access request, and then acquire the time T0 through the broadcast heartbeat packet), after waiting for the time T0 (specifically, a timer may be started to time when the time T0 is acquired each time, and the time reaches T0), windowing is performed to prepare for receiving the broadcast heartbeat packet sent by the server, and when the broadcast heartbeat packet is not received, determining to leave the network and resending the network access request to the server.
The second function of the broadcast heartbeat packet in this embodiment is to calibrate the data transmission time of the terminal. In theory, once the terminal sends the first data packet to the server, the subsequent data packets may be sent periodically according to a set time interval. However, in order to avoid the problem of time synchronization between the terminal and the server occurring in a long time, in this embodiment, the terminal may send the data packet to the server after the delay time Δ T based on the reception of the broadcast heartbeat packet, that is, based on the arrival of the time T0.
Therefore, in step S103 in this embodiment, the sending data based on the data sending time determined by the time parameter includes: the terminal calibrates the data sending time of the terminal once when acquiring the broadcast heartbeat packet every time, and periodically sends the data packet to the server after waiting for the time delta T until the terminal acquires the broadcast heartbeat packet next time so as to calibrate the data sending time again. That is, the terminal starts to time when accessing the network and starts to count the time T0, the time Δ T is counted to send the data packet to the server, the data packet is periodically sent to the server at a set time interval before the next broadcast heartbeat packet is acquired, the time Δ T is counted once the terminal acquires a new broadcast heartbeat packet, the time Δ T is counted to send the data packet to the server, and then the data packet is continuously sent to the server periodically at the set time interval, and so on.
All terminals allocated to the same channel correspond to different time deltaT, so that the collision of data transmitted by the terminals of the same channel is avoided. Referring to fig. 2, taking channel 1 as an example, the time Δ T of the terminals 11-41 are specifically time Δ T1, time Δ T2, time Δ T3, and time Δ T4, that is, the terminal 11 starts to time after the time T0 reaches the time of receiving the broadcast heartbeat packet, the time Δ T1 sends the data packet to the server only when the time reaches the time Δ T2, and the terminal 21 sends the data packet to the server only when the time reaches the time Δ T2.
Note that, the terminal does not necessarily wait for the time T0 to reach the re-delay Δ T for the first packet transmission, but may push forward the time at which the packet can be transmitted according to the time interval at which the terminal transmits data. For example, if the broadcast heartbeat packet is transmitted once in 5 minutes, the data packet transmission interval of the terminal is once in 10 seconds, and if the network access time of the terminal is 9: 48: 00, the next time of broadcasting the heartbeat packet is 9: 50: 00, the time T0 issued by the server is 2 minutes, if Δ T corresponding to the terminal is 2 seconds, that is, the terminal is to be in the range of 9: 50: 02 sends data packets, if waiting until 9: 50: 02 it takes 2 minutes and 2 seconds to transmit, so it can be deduced forward, and at 10 second intervals, it can be determined that the terminal is at 9: 48: the first packet can be sent in 02 seconds.
In addition, the method for determining the channel parameter and the time parameter by the server is not limited, and theoretically, the method only needs to allocate a plurality of terminals to existing channels and then ensure that the data transmission time of different terminals in the same channel is staggered. Since the time Δ T determined by the server for the terminal is used, the server only needs to open the gateway to receive the data packet at the time Δ T after the broadcast heartbeat packet is sent. For example, in fig. 2, the time Δ T of the terminals 11-17 is the time Δ T1, the time Δ T of the terminals 21-27 is the time Δ T2, and so on, the server only needs to open the gateway once to receive the data packet at the time Δ T1, Δ T2, Δ T3, and Δ T4 after sending the data packet.
It should be noted that the present invention is not only applicable to LoRa communication, but also applicable to other situations where multiple terminals communicate in the same channel at the same time and cause collisions. When the LoRa communication is used, no matter whether the LoRaWAN protocol is used or not, the method can achieve the purposes of reducing conflicts in the communication process and reducing the packet loss rate. In addition, the invention is not only suitable for the situation that the terminal and the network are in half-duplex communication, but also suitable for the situation of full-duplex communication.
Example two
Referring to fig. 4, an embodiment of the present invention further provides another communication method, where an execution subject is a server, and the method includes:
s201, a server receives a network access request sent by a terminal;
s202, determining channel parameters of a terminal so as to select a fixed channel from a plurality of preset channels to be allocated to the terminal, wherein the server is preset with a plurality of channels for the terminal to upload data, each channel can be allocated to the plurality of terminals, and each channel corresponds to one channel parameter; determining a time parameter of the terminal so as to stagger the data transmission time of the terminal from the data transmission time of other terminals which are already allocated to the same channel; for the channel parameter and the time parameter, reference may be made to the first embodiment described above, and details are not described here.
S203, sending the channel parameter and the time parameter to the terminal, so that the terminal selects a fixed channel according to the channel parameter for sending data and sends data according to the data sending time determined by the time parameter, which may be referred to in the first embodiment.
Preferably, the method further comprises: the server periodically sends the broadcast heartbeat packet to all the terminals, so that each terminal can determine whether to leave the network and calibrate the data sending time, which may be referred to as the first embodiment.
In step S202, the determination strategy of the channel parameter and the time parameter is not limited, and theoretically, it is only necessary to allocate a plurality of terminals to existing channels and then ensure that the data transmission time of different terminals in the same channel is staggered. For example, the terminals may be sequentially allocated to a plurality of preset channels according to a network access sequence, and the time Δ T allocated to the terminals in the same channel according to the network access sequence is sequentially increased.
It is understood that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above.
EXAMPLE III
The embodiment of the invention also provides a terminal, which comprises a processor and a memory, wherein the memory stores a computer program, and the computer program can be loaded by the processor and executes the method of the first embodiment.
Example four
The embodiment of the invention also provides a server, which comprises a processor and a memory, wherein the memory stores a computer program, and the computer program can be loaded by the processor and executes the method of the second embodiment.
EXAMPLE five
The embodiment of the present invention further provides a computer storage medium, where a computer program is stored, and the computer program can implement the communication method provided in the first embodiment or implement the communication method provided in the second embodiment after being executed.
EXAMPLE six
An embodiment of the present invention further provides a terminal, including:
a network access request module 301, configured to send a network access request to a server;
a parameter obtaining module 302, configured to receive a channel parameter and a time parameter sent by a server, where the server presets multiple channels through which a terminal can upload data, and each channel may be allocated to multiple terminals, and each channel corresponds to one channel parameter;
a data sending module 303, configured to select a fixed channel for sending data based on the channel parameter, and send data based on the data sending time determined by the time parameter so as to be staggered from the data sending time of other terminals already allocated to the same channel.
The time parameters comprise time T0 and time delta T, the time T0 represents the time from the server to the next transmission of the broadcast heartbeat packet, the time delta T represents the time that the data packet can be transmitted to the server after the broadcast heartbeat packet is received, the broadcast heartbeat packet comprises time T0, and all terminals allocated to the same channel correspond to different times delta T.
Preferably, the terminal further includes an online check module 304, configured to, after waiting for a time T0 each time the time T0 is obtained, window to prepare to receive the broadcast heartbeat packet sent by the server, and resend the network access request to the server when the broadcast heartbeat packet is not received.
Wherein, the data sending module 303 includes:
a channel selection submodule 3031, configured to select a fixed channel for transmitting data based on the channel parameters;
the data sending sub-module 3032 is configured to calibrate the data sending time of the terminal once when the broadcast heartbeat packet is obtained each time, and periodically send the data packet to the server after waiting for the time Δ T until the terminal obtains the broadcast heartbeat packet next time to calibrate the data sending time again.
Since the concept of the embodiment is the same as that of the first embodiment, details thereof can be found in the first embodiment and are not described herein again.
EXAMPLE seven
An embodiment of the present invention further provides a server, including:
a network access module 401, configured to receive a network access request sent by a terminal;
a parameter determining module 402, configured to determine channel parameters of a terminal, so as to select a fixed channel from a plurality of preset channels to allocate to the terminal, where a server is preset with a plurality of channels through which the terminal can upload data, each channel may be allocated to a plurality of terminals, and each channel corresponds to one channel parameter; determining a time parameter of the terminal so as to stagger the data transmission time of the terminal from the data transmission time of other terminals which are already allocated to the same channel;
a parameter issuing module 403, configured to issue the channel parameter and the time parameter to the terminal, so that the terminal selects a fixed channel according to the channel parameter to send data and sends data according to the data sending time determined by the time parameter.
The parameter determining module 402 is not limited to the determination strategy of the channel parameter and the time parameter, and theoretically, it is only required to allocate a plurality of terminals to existing channels and then ensure that the data transmission time of different terminals in the same channel is staggered. Since the time Δ T determined by the server for the terminal is used, the server only needs to open the gateway to receive the data packet at the time Δ T after the broadcast heartbeat packet is sent.
Preferably, the server further includes a checking module 404, configured to periodically send a broadcast heartbeat packet to all terminals, so that each terminal determines whether it is off-network and calibrates the data sending time.
Since the concept of the embodiment is the same as that of the first embodiment, details thereof can be found in the first embodiment and are not described herein again.
The above description relates to various modules. These modules typically include hardware and/or a combination of hardware and software (e.g., firmware). The modules may also include computer-readable media (e.g., non-transitory media) containing instructions (e.g., software instructions) that, when executed by a processor, perform various functional features of the present invention. Accordingly, the scope of the invention is not limited by the specific hardware and/or software characteristics of the modules explicitly mentioned in the embodiments, unless explicitly claimed. As a non-limiting example, the present invention may in embodiments be implemented by one or more processors (e.g., microprocessors, digital signal processors, baseband processors, microcontrollers) executing software instructions (e.g., stored in volatile and/or persistent memory). In addition, it should be noted that the above description of various modules is divided into these modules for clarity of illustration. However, in actual implementation, the boundaries of the various modules may be fuzzy. For example, any or all of the functional modules herein may share various hardware and/or software elements. Also for example, any and/or all of the functional modules herein may be implemented in whole or in part by a common processor executing software instructions. Additionally, various software sub-modules executed by one or more processors may be shared among the various software modules. Accordingly, the scope of the present invention is not limited by the mandatory boundaries between the various hardware and/or software elements, unless explicitly claimed otherwise.
The communication method, the terminal, the server and the computer storage medium have the following beneficial effects: the invention can realize that a server manages a plurality of terminals in communication time and channels, the server sends channel parameters and time parameters when the terminals access the network, the terminals select one channel from a plurality of channels preset by the server for sending data based on the channel parameters, and the data sending time of the terminals can be staggered with the data sending time of other terminals which are already allocated to the same channel based on the time parameters, so the invention manages the data sending of the terminals from two dimensions of time and channel, thereby ensuring that the terminals can not conflict in time and channel when sending data, and reducing the packet loss rate; furthermore, the server periodically issues the broadcast heartbeat packet, so that the terminal can conveniently judge whether the terminal is off the network on one hand, and the data sending time of the terminal can be periodically calibrated on the other hand.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. A method of communication, the method comprising:
the terminal sends a network access request to the server;
receiving channel parameters and time parameters sent by a server, wherein the server is preset with a plurality of channels for the terminals to upload data, each channel can be allocated to a plurality of terminals, and each channel corresponds to one channel parameter;
selecting a fixed channel for transmitting data based on the channel parameter, and transmitting data based on the data transmission time determined by the time parameter so as to be staggered with the data transmission time of other terminals already allocated to the same channel.
2. The method of claim 1, wherein the time parameters include time T0 and time Δ T, time T0 represents the time until the server next sends the broadcast heartbeat packet, time Δ T represents how long it is possible to send the data packet to the server after receiving the broadcast heartbeat packet, the broadcast heartbeat packet includes time T0, and all terminals assigned to the same channel correspond to different times Δ T;
the method further comprises the following steps: after waiting for time T0 each time the terminal acquires time T0, the terminal windows to prepare for receiving a broadcast heartbeat packet sent by the server, judges to leave the network when the broadcast heartbeat packet is not received, and resends a network access request to the server.
3. The method of claim 2, wherein transmitting data based on the data transmission time determined by the time parameter comprises: the terminal calibrates the data sending time of the terminal once when acquiring the broadcast heartbeat packet every time, and periodically sends the data packet to the server after waiting for the time delta T until the terminal acquires the broadcast heartbeat packet next time so as to calibrate the data sending time again.
4. A terminal, comprising:
the network access request module is used for sending a network access request to the server;
the system comprises a parameter acquisition module, a time parameter acquisition module and a time parameter acquisition module, wherein the parameter acquisition module is used for receiving channel parameters and time parameters sent by a server, the server is preset with a plurality of channels for terminals to upload data, each channel can be allocated to a plurality of terminals, and each channel corresponds to one channel parameter;
and the data sending module is used for selecting a fixed channel for sending data based on the channel parameters and sending the data based on the data sending time determined by the time parameters so as to be staggered with the data sending time of other terminals which are already allocated to the same channel.
5. The terminal of claim 4, wherein the time parameters include time T0 and time Δ T, time T0 represents the time until the server next sends the broadcast heartbeat packet, time Δ T represents how long it is possible to send the data packet to the server after receiving the broadcast heartbeat packet, the broadcast heartbeat packet includes time T0, and all terminals assigned to the same channel correspond to different times Δ T;
the terminal further comprises an online check module, which is used for windowing to prepare for receiving the broadcast heartbeat packet sent by the server after waiting for the time T0 when the time T0 is obtained every time, and resending the network access request to the server when the broadcast heartbeat packet is not received.
Wherein, the data sending module comprises: a channel selection sub-module for selecting a fixed channel for transmitting data based on the channel parameters; and the data sending submodule is used for calibrating the data sending time of the terminal once when the broadcast heartbeat packet is obtained every time, and periodically sending the data packet to the server after waiting for the time delta T until the terminal obtains the broadcast heartbeat packet next time so as to calibrate the data sending time again.
6. A terminal, characterized in that it comprises a processor and a memory, said memory storing a computer program that can be loaded by said processor and that executes the method according to any one of claims 1-3.
7. A method of communication, the method comprising:
a server receives a network access request sent by a terminal;
determining channel parameters of a terminal so as to select a fixed channel from a plurality of preset channels to be allocated to the terminal, wherein the server is preset with a plurality of channels for the terminal to upload data, each channel can be allocated to the plurality of terminals, and each channel corresponds to one channel parameter; determining a time parameter of the terminal so as to stagger the data transmission time of the terminal from the data transmission time of other terminals which are already allocated to the same channel;
and sending the channel parameters and the time parameters to the terminal so that the terminal selects a fixed channel for sending data according to the channel parameters and sends the data according to the data sending time determined by the time parameters.
8. The method of claim 7, wherein the time parameters include time T0 and time Δ T, time T0 represents the time until the server next sends the broadcast heartbeat packet, time Δ T represents how long it is possible to send the data packet to the server after receiving the broadcast heartbeat packet, the broadcast heartbeat packet includes time T0, and all terminals assigned to the same channel correspond to different times Δ T;
the method further comprises the following steps: the server periodically sends broadcast heartbeat packets to all terminals, so that each terminal can judge whether to leave the network and calibrate the data sending time.
9. A server, comprising:
the network access module is used for receiving a network access request sent by the terminal;
the system comprises a parameter determining module, a channel parameter determining module and a channel parameter determining module, wherein the parameter determining module is used for determining the channel parameter of a terminal so as to select a fixed channel from a plurality of preset channels to be allocated to the terminal, the server is preset with the plurality of channels for the terminal to upload data, each channel can be allocated to the plurality of terminals, and each channel corresponds to one channel parameter; determining a time parameter of the terminal so as to stagger the data transmission time of the terminal from the data transmission time of other terminals which are already allocated to the same channel;
and the parameter issuing module is used for issuing the channel parameters and the time parameters to the terminal so that the terminal selects a fixed channel according to the channel parameters to send data and sends the data according to the data sending time determined by the time parameters.
10. A server, characterized by comprising a processor and a memory, said memory storing a computer program that can be loaded by said processor and execute the method according to any of claims 7-8.
11. A computer storage medium storing a computer program which, when executed, is capable of implementing the communication method provided in any one of claims 1 to 3, or the communication method provided in any one of claims 7 to 8.
CN201811381784.1A 2018-11-20 2018-11-20 Communication method, terminal, server, and computer storage medium Active CN111200834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811381784.1A CN111200834B (en) 2018-11-20 2018-11-20 Communication method, terminal, server, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811381784.1A CN111200834B (en) 2018-11-20 2018-11-20 Communication method, terminal, server, and computer storage medium

Publications (2)

Publication Number Publication Date
CN111200834A true CN111200834A (en) 2020-05-26
CN111200834B CN111200834B (en) 2022-12-02

Family

ID=70745801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811381784.1A Active CN111200834B (en) 2018-11-20 2018-11-20 Communication method, terminal, server, and computer storage medium

Country Status (1)

Country Link
CN (1) CN111200834B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112074014A (en) * 2020-08-28 2020-12-11 北京升哲科技有限公司 Channel selection method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821390A (en) * 2012-09-04 2012-12-12 山东省计算中心 Adaptive dynamic channel allocation method for mobile multimedia in Internet of things
CN103905520A (en) * 2012-12-30 2014-07-02 比亚迪股份有限公司 Vehicle-mounted terminal control method and system and cloud end server
CN105611489A (en) * 2016-01-20 2016-05-25 深圳市金溢科技股份有限公司 Terminal, base station and communication mechanism applied in wide area internet of things M2M (Machine to Machine) communication network
CN107396447A (en) * 2017-08-02 2017-11-24 苏州欧普照明有限公司 Slot allocation method, the apparatus and system of the star-like networkings of LoRa
CN107566990A (en) * 2017-10-09 2018-01-09 北京天狼讯业信息技术有限公司 Real time position communication equipment and slotted synchronous method
CN107567107A (en) * 2017-09-29 2018-01-09 新华三技术有限公司 A kind of method and device for transmitting data
CN107635254A (en) * 2017-09-22 2018-01-26 新华三技术有限公司 A kind of data transmission method and device
CN107682125A (en) * 2017-11-13 2018-02-09 平安科技(深圳)有限公司 A kind of data capture method, device, computer equipment and storage medium
CN108476436A (en) * 2015-11-25 2018-08-31 萨格姆康姆能源和电信公司 gateway configuration method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821390A (en) * 2012-09-04 2012-12-12 山东省计算中心 Adaptive dynamic channel allocation method for mobile multimedia in Internet of things
CN103905520A (en) * 2012-12-30 2014-07-02 比亚迪股份有限公司 Vehicle-mounted terminal control method and system and cloud end server
CN108476436A (en) * 2015-11-25 2018-08-31 萨格姆康姆能源和电信公司 gateway configuration method
CN105611489A (en) * 2016-01-20 2016-05-25 深圳市金溢科技股份有限公司 Terminal, base station and communication mechanism applied in wide area internet of things M2M (Machine to Machine) communication network
CN107396447A (en) * 2017-08-02 2017-11-24 苏州欧普照明有限公司 Slot allocation method, the apparatus and system of the star-like networkings of LoRa
CN107635254A (en) * 2017-09-22 2018-01-26 新华三技术有限公司 A kind of data transmission method and device
CN107567107A (en) * 2017-09-29 2018-01-09 新华三技术有限公司 A kind of method and device for transmitting data
CN107566990A (en) * 2017-10-09 2018-01-09 北京天狼讯业信息技术有限公司 Real time position communication equipment and slotted synchronous method
CN107682125A (en) * 2017-11-13 2018-02-09 平安科技(深圳)有限公司 A kind of data capture method, device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112074014A (en) * 2020-08-28 2020-12-11 北京升哲科技有限公司 Channel selection method and device, electronic equipment and storage medium
CN112074014B (en) * 2020-08-28 2023-11-24 北京升哲科技有限公司 Channel selection method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111200834B (en) 2022-12-02

Similar Documents

Publication Publication Date Title
CN109863708B (en) Method and apparatus for HARQ feedback for unscheduled uplink
RU2673876C1 (en) Access to channel in systems with listening before transmission
CN107624264B (en) Scheduling in grant assisted access
EP3606266B1 (en) Method and device for random access and instruction after random access rollback
EP3836687A1 (en) Information transmission method and apparatus
KR101861726B1 (en) METHODS FOR DETECTING RESOURCES IN RANDOM ACCESS, USER DEVICE, AND BASE STATION
CN107211323B (en) System and method for transmitting data in a wireless LAN multi-user transmission opportunity
US20200022174A1 (en) Control of Uplink Radio Transmissions on Semi-Persistently Allocated Resources
JP2020521346A (en) Beam configuration method and apparatus
TW201911930A (en) Method of collision handling and user equipment and base station thereof
JP6219960B2 (en) Resource reconfiguration method, base station, and user equipment
JP7041248B2 (en) Controlling autonomous UL transmission when coexisting with a scheduled UE
EP3035767B1 (en) Method, apparatus and system for channel access
US9980284B2 (en) Contention-based reservations of network resources
US9445407B2 (en) Dynamic setting of transmission time in a contention based wireless system
WO2009113623A1 (en) Wireless communication method, wireless communication system, base station, and terminal station
EP3372041A1 (en) Scheduling and accessing of uplink resources
WO2015166959A1 (en) Communication control device, radio terminal, memory card, integrated circuit, radio communication device, and radio communication method
WO2017161502A1 (en) Method for sending uplink control information, terminal, and base station
CN106165521B (en) Multi-channel access method and device
CN108811176B (en) Centralized conflict solution method for random multiple access of wireless Internet of things
CN111200834B (en) Communication method, terminal, server, and computer storage medium
CN110832934B (en) System and method for random access of UE (user equipment) on wide bandwidth with subset limitation
WO2021156071A1 (en) Dynamic processing time and dynamic blind decoding capability for nr user devices
KR20190099290A (en) PUCCH Resource Allocation for URLLC Support

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