CN112769962B - Parameter distribution method, equipment and storage medium for application of Internet of things - Google Patents

Parameter distribution method, equipment and storage medium for application of Internet of things Download PDF

Info

Publication number
CN112769962B
CN112769962B CN202110369760.XA CN202110369760A CN112769962B CN 112769962 B CN112769962 B CN 112769962B CN 202110369760 A CN202110369760 A CN 202110369760A CN 112769962 B CN112769962 B CN 112769962B
Authority
CN
China
Prior art keywords
communication
uplink
communication node
frequency
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110369760.XA
Other languages
Chinese (zh)
Other versions
CN112769962A (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.)
Shanghai Shuncom Smart Technology Co ltd
Original Assignee
Shanghai Shuncom Smart 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 Shanghai Shuncom Smart Technology Co ltd filed Critical Shanghai Shuncom Smart Technology Co ltd
Priority to CN202110369760.XA priority Critical patent/CN112769962B/en
Publication of CN112769962A publication Critical patent/CN112769962A/en
Application granted granted Critical
Publication of CN112769962B publication Critical patent/CN112769962B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Abstract

The invention discloses a parameter distribution method, equipment and a storage medium for application of the Internet of things. The method comprises the following steps: receiving downlink communication frequency automatically allocated by the cloud platform according to a near-non-allocation near-frequency criterion; under the condition of receiving a network access request sent by a second communication node, acquiring a communication key corresponding to the second communication node from a cloud platform according to a first communication protocol; under the condition that the communication key is legal, a network access success message and the communication key are sent to the second communication node according to the downlink communication frequency; and dynamically distributing the communication parameters to the second communication node according to a preset distribution criterion. According to the embodiment of the invention, the communication parameters of the second communication node are dynamically allocated through the cooperation among the first communication node, the second communication node and the cloud platform, so that the second communication node can allocate the optimal uplink communication frequency and uplink communication rate, bandwidth resources are fully utilized, and the communication efficiency is ensured.

Description

Parameter distribution method, equipment and storage medium for application of Internet of things
Technical Field
The embodiment of the invention relates to a communication technology, in particular to a parameter distribution method, equipment and a storage medium for application of the Internet of things.
Background
In engineering application, if a large number of terminal devices receive or transmit data in a similar time of the same frequency band in a LoRaWAN network, mutual interference may be caused, and the communication effect may be affected. If communication-related parameters such as frequency and speed are manually configured for each terminal device during engineering deployment, a great deal of manpower is consumed. And due to the complexity of field conditions, the optimal affiliation between the equipment and the gateway cannot be accurately found.
Disclosure of Invention
In view of this, the present invention provides a method, a device and a storage medium for allocating parameters of an application of the internet of things, so as to achieve an effect of dynamically allocating communication parameters to the device.
In a first aspect, an embodiment of the present invention provides a parameter allocation method for an internet of things application, which is applied to a first communication node, and includes:
receiving downlink communication frequency automatically allocated by the cloud platform according to a near-non-allocation near-frequency criterion;
under the condition of receiving a network access request sent by a second communication node, acquiring a communication key corresponding to the second communication node from the cloud platform according to a first communication protocol;
under the condition that the communication key is legal, a network access success message and the communication key are sent to a second communication node according to the downlink communication frequency;
and dynamically distributing the communication parameters to the second communication node according to a preset distribution criterion.
In a second aspect, an embodiment of the present invention further provides a parameter allocation method for an application of the internet of things, which is applied to a second communication node, and includes:
under the condition that a power-on trigger instruction is received and an OTAA mode is activated in the air, a network access request is sent to a first communication node at a randomly selected uplink communication rate;
under the condition of receiving the successful network access message and the communication key fed back by the first communication node, receiving the communication parameters dynamically distributed by the first communication node;
and automatically switching from the OTAA mode to a manually activated ABP mode according to the communication parameters.
In a third aspect, an embodiment of the present invention provides a parameter allocation apparatus for an internet of things application, where the apparatus is applied to a first communication node, and the apparatus includes:
the receiving module is used for receiving the downlink communication frequency automatically allocated by the cloud platform according to the adjacent non-allocation similar frequency criterion;
the acquisition module is used for acquiring a communication key corresponding to a second communication node from the cloud platform according to a first communication protocol under the condition of receiving a network access request sent by the second communication node;
a sending module, configured to send a network access success message and the communication key to a second communication node according to the downlink communication frequency when the communication key is legal;
and the distribution module is used for dynamically distributing the communication parameters to the second communication node according to a preset distribution criterion.
In a fourth aspect, an embodiment of the present invention further provides a parameter allocation apparatus for an application of the internet of things, where the apparatus is applied to a second communication node, and the apparatus includes:
the sending module is used for sending a network access request to the first communication node at a randomly selected uplink communication rate under the condition that a power-on trigger instruction is received and the OTAA mode is activated in the air;
the receiving module is used for receiving the communication parameters dynamically distributed by the first communication node under the condition of receiving the network access success message and the communication key fed back by the first communication node;
and the first switching module is used for automatically switching from the OTAA mode to a manually activated ABP mode according to the communication parameters.
In a fifth aspect, an embodiment of the present invention further provides a parameter allocation device for an application of the internet of things, where the parameter allocation device includes: a memory, and one or more processors;
the memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the parameter allocation method for the internet of things application according to any one of the embodiments of the present invention.
In a sixth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the parameter allocation method for an application of the internet of things according to any one of the embodiments of the present invention.
The embodiment of the invention receives the downlink communication frequency automatically distributed by the cloud platform according to the adjacent non-distribution similar frequency criterion; under the condition of receiving a network access request sent by a second communication node, acquiring a communication key corresponding to the second communication node from the cloud platform according to a first communication protocol; under the condition that the communication key is legal, a network access success message and the communication key are sent to a second communication node according to the downlink communication frequency; and dynamically distributing the communication parameters to the second communication node according to a preset distribution criterion. According to the embodiment of the invention, the communication parameters of the second communication node are dynamically allocated through the cooperation among the first communication node, the second communication node and the cloud platform, so that the second communication node can allocate the optimal uplink communication frequency and uplink communication rate, bandwidth resources are fully utilized, and the communication efficiency is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart of a parameter allocation method for an application of the internet of things according to an embodiment of the present invention;
fig. 2 is a flowchart of another parameter allocation method for an application of the internet of things according to an embodiment of the present invention;
fig. 3 is a flowchart of a parameter allocation method for an application of the internet of things according to another embodiment of the present invention;
fig. 4 is a flowchart of a parameter allocation method for an application of the internet of things according to another embodiment of the present invention;
fig. 5 is a flowchart of a parameter allocation method for an application of the internet of things according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a parameter allocation device for an application of the internet of things according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another parameter allocation device for an application of the internet of things according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a parameter distribution device for an application of the internet of things according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the LoRaWAN protocol, the network access method of the second communication node (i.e., the terminal device) includes two types: an Over-The-Air Activation (OTAA) mode and an Activation By Privacy (ABP) mode. Wherein, the OTAA mode: the terminal equipment establishes connection with the server through a wireless activation step after deployment or disconnection with the server. From the perspective of the terminal device, the process of joining the network includes: two Media Access Control (MAC) messages are exchanged with the server, which are a network Access request radio frame (Join request) and a network Access success message (Join accept), and the network Access success message includes: and the terminal equipment derives a network session key and an application session key according to the application layer random number and a preset application key. ABP mode: the terminal address, the network session key and the application session key need to be directly stored in the terminal device in advance.
In an embodiment, fig. 1 is a flowchart of a parameter allocation method for an application of the internet of things according to an embodiment of the present invention, where the embodiment is applicable to a case where communication parameters are dynamically allocated to a second communication node, and the method may be executed by a parameter allocation device for an application of the internet of things according to an embodiment of the present invention, and the device may be implemented in a software and/or hardware manner. The parameter distribution device applied to the Internet of things can be integrated in the parameter distribution equipment applied to the Internet of things. For example, the parameter distribution device applied to the internet of things can be a terminal device such as a personal computer, an iPad, a notebook computer, and a smart phone. It should be noted that, in this embodiment, the parameter allocation method for the application of the internet of things is executed by the first communication node. The first communication node is a network side (e.g., a base station). As shown in fig. 1, the method specifically includes S110 to S140:
and S110, receiving the downlink communication frequency automatically allocated by the cloud platform according to the adjacent non-allocation similar frequency criterion.
In an embodiment, the cloud platform refers to a data management platform for managing data of the first communication node and the second communication node. In an embodiment, after the first communication node is installed and deployed, a constructor (i.e., a worker related to data entry, viewing, and the like for the cloud platform) may enter coordinates (referring to actual coordinates of the first communication node in a geographic location) of the first communication node into the cloud platform, so that the cloud platform allocates downlink communication frequencies of the first communication node according to a criterion of proximity and non-allocation of similar frequencies. The adjacent non-assignment of the similar frequency criterion means that the two adjacent first communication nodes are not assigned with similar downlink communication frequencies. Illustratively, assuming that downlink communication frequencies are allocated to three first communication nodes (node a, node B, and node C, respectively), and the coordinates of node a and the coordinates of node B are adjacent, the downlink communication frequencies allocated to node a and node B are not adjacent. The downlink communication frequencies allocated to the two adjacent first communication nodes are not similar, which means that the downlink communication frequencies allocated to the two adjacent first communication nodes do not belong to the same downlink communication frequency.
In an embodiment, a downlink communication frequency is dynamically allocated to each first communication node according to a criterion of not allocating adjacent frequencies in the vicinity of the first communication node on the cloud platform, so that the downlink communication frequency of each first communication node is guaranteed to be staggered. It should be noted that the number of downlink communication frequencies is related to the communication frequency band, that is, when different communication frequency bands are adopted, the number of downlink communication frequencies is also different. Of course, the number of the first communication nodes must be greater than the number of the downlink communication frequencies, that is, the number of the downlink communication frequencies cannot guarantee that the downlink communication frequencies used by all the first communication nodes are unique. In the actual distribution process, the distribution of the downlink communication frequencies of all the first communication nodes can be completed according to the adjacent non-distribution similar frequency criterion, so that the mutual interference between two adjacent first communication nodes is ensured in the downlink data transmission process.
And S120, under the condition that a network access request sent by the second communication node is received, acquiring a communication key corresponding to the second communication node from the cloud platform according to the first communication protocol.
Wherein the second communication node refers to a terminal side (e.g., a terminal device). In the embodiment, after the second communication node is powered on for the first time, the second communication node enters a network searching state in an OTAA mode and sends a network access request to the first communication node according to a preselected uplink communication rate; and after the first communication node receives the network access request, acquiring a communication key corresponding to the second communication node from the cloud platform according to the first communication protocol. The first communication protocol may be a LoRaWAN protocol. It is to be understood that the second communication node may be a LoRaWAN device. It is understood that the first communication node and the second communication node communicate data therebetween using the LoRaWAN protocol.
It should be noted that, in order to ensure the validity of the communication key, the communication key of each second communication node is stored in advance in the database of the cloud platform. It is understood that each second communication node corresponds to a communication key, and the communication key is stored in a database of the cloud platform for later retrieval.
And S130, under the condition that the communication key is legal, sending a network access success message and the communication key to the second communication node according to the downlink communication frequency.
Wherein the communication key is used for establishing communication connection information between the first communication node and the second communication node. It is understood that the first communication node may establish a communication connection with the second communication node only if the communication key is legal. It should be noted that the validity of the communication key is related to whether the communication key corresponding to the second communication node is stored in the database of the cloud platform, that is, if the communication key corresponding to the second communication node is stored in the database of the cloud platform, the communication key corresponding to the second communication node is valid; otherwise, it is illegal.
Under the condition that the communication key of the second communication node is legal, a network access success message is replied to the second communication node according to the pre-allocated downlink communication frequency; and sending the communication key to the second communication node in order to be able to establish a communication connection between the first communication node and the second communication node.
And S140, dynamically distributing the communication parameters to the second communication node according to a preset distribution criterion.
In an embodiment, the preset allocation criterion is related to whether a communication parameter allocation record exists in a parameter database of the first communication node in advance, that is, when the communication parameter allocation record exists in the parameter database, the preset allocation criterion corresponds to an allocation criterion; and when the communication parameter distribution record does not exist in the parameter database, the communication parameter distribution record corresponds to another distribution criterion.
According to the technical scheme of the embodiment, the communication parameters of the second communication node are dynamically allocated through cooperation among the first communication node, the second communication node and the cloud platform, so that the second communication node can allocate the optimal uplink communication frequency and uplink communication rate, bandwidth resources are fully utilized, and communication efficiency is guaranteed.
In an embodiment, fig. 2 is a flowchart of another parameter allocation method for an application of the internet of things according to an embodiment of the present invention. In this embodiment, on the basis of the above embodiments, a parameter allocation method applied to the internet of things of the first communication node is further improved. As shown in FIG. 2, the present embodiment includes S210-S290.
S210, receiving the downlink communication frequency automatically allocated by the cloud platform according to the adjacent frequency non-allocation criterion.
And S220, under the condition that the network access request sent by the second communication node is received, acquiring a communication key corresponding to the second communication node from the cloud platform according to the first communication protocol.
And S230, under the condition that the communication key is legal, sending a network access success message and the communication key to the second communication node according to the downlink communication frequency.
And S240, inquiring a communication parameter database which is created in advance.
The communication parameter database is used for storing parameter distribution records of the first communication node to the second communication node. It will be appreciated that after the first communication node allocates the communication parameters to the second communication node, the first communication node automatically saves the allocation record to the communication parameter database for subsequent retrieval.
S250, determining whether an uplink frequency distribution record and an uplink rate distribution record exist in the communication parameter database according to the query record, if so, executing S260; if not, go to S270.
In the embodiment, the uplink frequency allocation record refers to record information for allocating the uplink communication frequency of the second communication node; the uplink rate allocation record refers to record information for allocating an uplink communication rate of the second communication node. In the actual query process, if the uplink frequency allocation record and the uplink rate allocation record can be queried in the communication parameter database, determining that the uplink frequency allocation record and the uplink rate allocation record exist in the communication parameter database; and if the uplink frequency allocation record and the uplink rate allocation record cannot be inquired in the communication parameter database, determining that the uplink frequency allocation record and the uplink rate allocation record do not exist in the communication parameter database.
And S260, allocating the uplink communication frequency corresponding to the uplink frequency allocation record and the uplink communication rate corresponding to the uplink rate allocation record to the second communication node.
In the embodiment, when the uplink frequency allocation record and the uplink rate allocation record exist in the communication parameter database, the recorded uplink communication frequency and uplink communication rate are used to form a setting command, and the setting command is sent to the second communication node, that is, the uplink communication frequency allocated to the second communication node in the uplink frequency allocation record and the uplink communication rate allocated to the second communication node in the uplink rate allocation record are allocated to the second communication node.
S270, detecting whether all uplink communication frequencies and all uplink communication rates in the parameter database are completely distributed, and if not, executing S280; if yes, go to S290.
In the embodiment, when the first communication node queries that the uplink frequency allocation record and the uplink rate allocation record corresponding to the second communication node do not exist in the parameter database, it is detected whether all the uplink communication frequencies and all the uplink communication rates in the parameter database are allocated to other second communication nodes, that is, no idle uplink communication frequency and uplink communication rate are allocated to the second communication node, if yes, S290 is executed; if not, go to step S280.
S280, randomly selecting one uplink communication frequency and the highest uplink communication rate from the uplink communication frequencies and the uplink communication rates which are not allocated in the parameter database, and sending the uplink communication frequency and the highest uplink communication rate to the second communication node.
In the embodiment, in the case where the unallocated uplink communication frequency and uplink communication rate exist in the parameter database, that is, in the case where there are idle uplink communication frequencies and uplink communication rates, one uplink communication frequency is preferentially selected from the remaining combinations of uplink communication frequencies and uplink communication rates, and one uplink communication rate with the highest rate is selected to be transmitted to the second communication node.
And S290, under the condition of finishing the distribution, dynamically distributing the broadcast delay reply time to the second communication node.
In an embodiment, when the parameter database does not have the unassigned uplink communication frequency and uplink communication rate, that is, when all the uplink communication frequencies and uplink communication rates are assigned, the second communication node may dynamically assign the broadcast delay reply time to the second communication node, so as to ensure that the second communication node and the other communication node may transmit data to the first communication node by staggering the broadcast delay reply time from the other communication node when the second communication node and the other communication node have the same uplink communication frequency and the same uplink communication rate.
According to the technical scheme of the embodiment, different allocation strategies of the communication parameters are determined by judging whether the uplink frequency allocation record and the uplink rate allocation record exist in the parameter database, so that different second communication nodes are ensured to send data at different uplink communication frequencies, uplink communication frequencies and broadcast delay reply time, and bandwidth resources are fully utilized.
In an embodiment, fig. 3 is a flowchart of a parameter allocation method for an application of the internet of things according to another embodiment of the present invention. The present embodiment is applicable to the case of dynamically allocating communication parameters to the second communication node, and the method may be executed by a parameter allocation device applied to the internet of things in the embodiment of the present invention, where the device may be implemented in a software and/or hardware manner. The parameter distribution device applied to the Internet of things can be integrated in the parameter distribution equipment applied to the Internet of things. For example, the parameter distribution device applied to the internet of things can be a terminal device such as a personal computer, an iPad, a notebook computer, and a smart phone. It should be noted that, in this embodiment, the parameter allocation method for the application of the internet of things is executed by the second communication node. The second communication node is a terminal side (e.g., a LoRaWAN network device). As shown in fig. 3, the method specifically includes S310-S330:
and S310, sending a network access request to the first communication node at the randomly selected uplink communication rate under the condition that the power-on trigger instruction is received and the OTAA mode is in.
In an embodiment, the power-on trigger instruction refers to instruction information sent by the second communication node at the power-on moment. Alternatively, the power-on trigger instruction may be instruction information triggered when the second communication node is powered on for the first time. In the embodiment, after the second communication node is powered on for the first time, the second communication node enters a network searching state in an OTAA mode, randomly sorts all uplink communication frequency groups, randomly selects an uplink communication frequency in the uplink communication frequency groups according to the sorting, randomly selects an uplink communication rate in the uplink communication frequency groups, and sends a network access request to the first communication node at the uplink communication rate.
It should be noted that the number of the uplink communication frequency groups is related to the frequency band where the second communication node is located, that is, when the second communication node is in a different frequency band, the corresponding uplink communication frequency groups are different. Of course, the number of frequencies in each uplink communication frequency group is the same. Exemplarily, assuming that the frequency band where the second communication node is currently located is 470, the number of uplink communication frequency groups is 12, each uplink communication frequency group includes 8 uplink communication frequencies, and each uplink communication frequency group includes 6 uplink communication rates.
And S320, receiving the communication parameters dynamically distributed by the first communication node under the condition of receiving the network access success message and the communication key fed back by the first communication node.
In an embodiment, after the first communication node receives the network access request, the communication key corresponding to the second communication node is acquired from the cloud platform according to the first communication protocol, and if the first communication node recognizes that the communication key corresponding to the second communication node is legal, the network access success message and the communication key are replied to the second communication node. And when the second communication node receives the network access success message and the communication secret key, receiving the communication parameters dynamically distributed by the first communication node. Wherein the communication parameter comprises one of: an uplink communication frequency, an uplink communication rate, and a broadcast delay reply time. In the embodiment, when the uplink frequency allocation record and the uplink rate allocation record of the second communication node do not exist in the parameter database of the first communication node and all the uplink communication frequencies and all the uplink communication rates are not allocated completely, the first communication node dynamically allocates the uplink communication frequencies and the uplink communication rates to the second communication node; under the condition that all uplink communication frequencies and all uplink communication rates in the parameter database are completely allocated, namely under the condition that no idle uplink communication frequency and no idle uplink communication rate exist, the first communication node dynamically allocates the uplink communication frequency, the uplink communication rate and the broadcast delay reply time to the second communication node.
And S330, automatically switching from the OTAA mode to the ABP mode according to the communication parameters.
In an embodiment, after the second communication node receives a command including an uplink communication frequency and an uplink communication rate, or receives a command including an uplink communication frequency, an uplink communication rate and a broadcast delay reply time, the second communication node performs normal communication with the first communication node at the uplink communication frequency and the uplink communication rate, and the working mode of the second communication node is automatically switched from the OTAA mode to the ABP mode.
According to the technical scheme of the embodiment, the first communication node dynamically allocates the communication parameters to the second communication nodes, and each second communication node under the first communication node is ensured not to send data at the same uplink communication frequency, the same uplink communication rate and the same broadcast delay reply time within the broadcast polling time of the first communication node, so that the communication effect is improved, and the bandwidth resources are fully utilized.
In an embodiment, fig. 4 is a flowchart of a parameter allocation method for an application of the internet of things according to another embodiment of the present invention. In this embodiment, on the basis of the above embodiments, a parameter allocation method for an application of the internet of things to the second communication node is further improved. As shown in fig. 4, the present embodiment includes S410-S450.
S410, sending a network access request to the first communication node at the randomly selected uplink communication rate under the condition that the power-on trigger instruction is received and the OTAA mode is in.
And S420, receiving the communication parameters dynamically allocated by the first communication node under the condition of receiving the network access success message and the communication key fed back by the first communication node.
And S430, storing the communication key.
And S440, automatically switching from the OTAA mode to the ABP mode according to the communication parameters.
S450, under the condition that the broadcast polling command of the first communication node is not received within the preset time length, the mode is automatically switched from the ABP mode to the OTAA mode.
The preset time length can also be represented by the number of times of communication. In the embodiment, when the second communication node does not receive the broadcast polling command of the first communication node for several times, the second communication node automatically switches from the ABP mode to the OTAA mode, and circularly enters the network searching state, and resends the network access request until entering the ABP mode again, so that the first communication node is ensured to detect the heartbeat of the second communication node in real time, and the normal communication connection between the first communication node and the second communication node is ensured.
In an embodiment, fig. 5 is a flowchart of a parameter allocation method for an application of the internet of things according to another embodiment of the present invention. In this embodiment, a process in which a first communication node dynamically allocates communication parameters to a second communication node is described by taking the first communication node as a base station, the second communication node as a LoRaWAN device, and the current operating frequency band of the second communication node as 470 as an example. As shown in fig. 5, the present embodiment includes S510-S580:
and S510, setting the currently allocated uplink communication frequency group.
And S520, randomly generating a channel.
S530, sending a network access request.
S540, receiving a network access request.
And S550, replying a network access success message.
And S560, distributing the communication parameters.
S570, judging whether the networking is successful, if so, executing S580; if not, the process returns to S520.
And S580, receiving and modifying the communication parameters.
In the embodiment, the downlink communication frequency of the base station is divided into 12, the uplink communication frequency of the LoRaWAN device (simply referred to as a device) is divided into 12 groups (i.e., 12 uplink communication frequency groups), each uplink communication frequency group includes 8 uplink communication frequencies, and each uplink communication frequency can be subdivided into 6 uplink communication rates. When the base stations are deployed and installed, the downlink communication frequency of each base station is shared among 12 downlink communication frequencies according to the field situation, so that downlink data interference is avoided. The device performs sharing on the uplink communication frequency, the uplink communication rate and the broadcast delay reply time of the device end, and makes full use of bandwidth resources.
The dynamic allocation process of the uplink communication frequency, the uplink communication rate and the broadcast delay reply time comprises the following steps:
and S1, after the installation and deployment of the base station are completed, staggering the downlink communication frequency of the base station by the cloud platform according to the principle that the adjacent frequencies are not distributed through the base station coordinates recorded by constructors.
And S2, after the equipment is powered on for the first time, entering a network searching state in an OTAA mode, randomly sequencing the 12 uplink communication frequency groups, randomly selecting an uplink communication rate in the uplink communication frequency groups according to the sequencing in sequence, and then sending a network access request at the uplink communication rate.
And S3, after receiving the network access request, the base station acquires the communication secret key from the cloud platform according to the LoRaWAN protocol, and replies a standard network access success message.
S4, the base station inquires whether the uplink communication frequency and the uplink communication rate distribution record of the equipment exist in the parameter database of the base station, if so, the recorded uplink communication frequency and the recorded uplink communication rate form a setting command and send the setting command to the equipment; if no record is allocated, selecting one uplink communication frequency and the highest uplink communication rate to form a command in the combination of the remaining uplink communication frequencies and uplink communication rates, and sending the command to the equipment; and if the uplink communication frequency and the uplink communication rate are completely allocated, starting to allocate the broadcast delay reply time, and ensuring that each device under the base station does not transmit data at the same uplink communication frequency, the same uplink communication rate and the same broadcast delay reply time within the broadcast polling time of the base station. And if the equipment receives the command, the equipment normally passes through the base station at the received uplink communication frequency and uplink communication rate, and enters an ABP mode after storing the communication secret key.
And S5, if the device does not receive the command of base station broadcast polling for several times (wherein, the times can be set by itself), entering into OTAA mode from ABP mode to enter into S2 step.
According to the technical scheme of the embodiment, the device is allocated to the optimal base station, the uplink communication rate and the uplink communication frequency through a negotiation algorithm by dynamically allocating the communication parameters of the device, such as the uplink communication frequency, the uplink communication rate and the broadcast delay reply time, so that a very good communication effect is achieved.
In an embodiment, fig. 6 is a schematic structural diagram of a parameter allocation apparatus for an application of the internet of things according to an embodiment of the present invention. The parameter allocation device for the internet of things application in the embodiment is integrated in the first communication node. As shown in fig. 6, the parameter allocation apparatus for internet of things application specifically includes: a receiving module 610, an obtaining module 620, a sending module 630, and an assigning module 640.
The receiving module 610 is configured to receive a downlink communication frequency automatically allocated by the cloud platform according to a criterion of not allocating adjacent frequencies;
an obtaining module 620, configured to obtain, according to a first communication protocol, a communication key corresponding to a second communication node from a cloud platform when receiving a network access request sent by the second communication node;
a sending module 630, configured to send a network access success message and a communication key to the second communication node according to the downlink communication frequency when the communication key is legal;
and the allocating module 640 is configured to dynamically allocate the communication parameters to the second communication node according to a preset allocation criterion.
According to the technical scheme of the embodiment, the communication parameters of the second communication node are dynamically allocated through cooperation among the first communication node, the second communication node and the cloud platform, so that the second communication node can allocate the optimal uplink communication frequency and uplink communication rate, bandwidth resources are fully utilized, and communication efficiency is guaranteed.
On the basis of the above embodiment, the parameter allocation apparatus applied to the internet of things of the first communication node further includes:
and the query module is used for querying a communication parameter database which is created in advance before the communication parameters are dynamically distributed to the second communication node according to the preset distribution criteria.
And the determining module is used for determining whether the uplink frequency allocation record and the uplink rate allocation record exist in the communication parameter database according to the query record.
On the basis of the foregoing embodiment, in a case where the uplink frequency allocation record and the uplink rate allocation record exist in the communication parameter database, the allocation module is specifically configured to: and allocating the uplink communication frequency corresponding to the uplink frequency allocation record and the uplink communication rate corresponding to the uplink rate allocation record to the second communication node.
On the basis of the foregoing embodiment, in a case where there is no uplink frequency allocation record or uplink rate allocation record in the communication parameter database, the allocating module includes:
the detection unit is used for detecting whether all the uplink communication frequencies and all the uplink communication rates in the parameter database are completely distributed;
the first allocation unit is used for randomly selecting one uplink communication frequency and the highest uplink communication rate from the uplink communication frequencies and the uplink communication rates which are not allocated in the parameter database to send to the second communication node under the condition that allocation is not completed;
and the second distribution unit is used for dynamically distributing the broadcast delay reply time to the second communication node under the condition of finishing distribution.
The parameter allocation device for the internet of things application provided by the embodiment can execute the parameter allocation method for the internet of things application applied to the first communication node provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the parameter allocation method for the internet of things application.
In an embodiment, fig. 7 is a schematic structural diagram of another parameter allocation apparatus for internet of things application according to an embodiment of the present invention. The parameter allocation device for the internet of things application in the embodiment is integrated in the second communication node. As shown in fig. 7, the parameter allocation apparatus for internet of things application specifically includes: a sending module 710, a receiving module 720 and a first switching module 730.
A sending module 710, configured to send a network access request to a first communication node at a randomly selected uplink communication rate when a power-on trigger instruction is received and the first communication node is in an over-the-air active OTAA mode;
a receiving module 720, configured to receive a communication parameter dynamically allocated by a first communication node when receiving a network access success message and a communication key fed back by the first communication node;
a first switching module 730 for automatically switching from the OTAA mode to the manually activated ABP mode according to the communication parameters.
On the basis of the above embodiment, the parameter allocation apparatus applied to the internet of things of the second communication node further includes:
and the second switching module is used for automatically switching from the ABP mode to the OTAA mode under the condition that a broadcast polling command of the first communication node is not received within a preset time length after the OTAA mode is automatically switched to the manually activated ABP mode according to the communication parameters.
On the basis of the above embodiment, the parameter allocation apparatus applied to the internet of things of the second communication node further includes:
and the storage module is used for storing the communication key after receiving the network access success message and the communication key fed back by the first communication node.
On the basis of the above embodiment, the communication parameter includes one of: an uplink communication frequency, an uplink communication rate, and a broadcast delay reply time.
The parameter allocation device for the internet of things application provided by the embodiment can execute the parameter allocation method for the internet of things application applied to the second communication node provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the parameter allocation method for the internet of things application.
In an embodiment, fig. 8 is a schematic structural diagram of a parameter distribution device for an application of the internet of things according to an embodiment of the present invention. As shown in fig. 8, the apparatus includes a processor 810, a memory 820, an input device 830, and an output device 840; the number of the processors 810 in the device may be one or more, and one processor 810 is taken as an example in fig. 8; the processor 810, memory 820, input device, and output device 830 of the apparatus may be connected by a bus or other means, such as by a bus connection in fig. 8.
The memory 820 is used as a computer-readable storage medium and can be used for storing software programs, computer-executable programs, and modules, such as program modules corresponding to the parameter allocation method of the internet of things application in the embodiment of the present invention (for example, the receiving module 610, the obtaining module 620, the sending module 630, and the allocating module 640 in the parameter allocation apparatus of the internet of things application). The processor 810 executes various functional applications and data processing of the device by executing software programs, instructions and modules stored in the memory 820, that is, the parameter allocation method of the internet of things application is implemented.
The memory 820 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 820 may further include memory located remotely from the processor 810, which may be connected to devices through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 830 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the apparatus. The output device 840 may include a display device such as a display screen.
In the case that the device is a first communication node, the device provided above may be configured to execute the parameter allocation method applied to the internet of things application of the first communication node provided in any of the embodiments above, and has corresponding functions and effects.
In the case that the device is the second communication node, the device provided above may be configured to execute the parameter allocation method applied to the internet of things application of the second communication node provided in any of the above embodiments, and has corresponding functions and effects.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for parameter allocation for an internet of things application applied to a first communication node, the method comprising: receiving downlink communication frequency automatically allocated by the cloud platform according to a near-non-allocation near-frequency criterion; under the condition of receiving a network access request sent by a second communication node, acquiring a communication key corresponding to the second communication node from a cloud platform according to a first communication protocol; under the condition that the communication key is legal, a network access success message and the communication key are sent to the second communication node according to the downlink communication frequency; and dynamically distributing the communication parameters to the second communication node according to a preset distribution criterion.
In one embodiment, the present invention also provides a storage medium containing computer-executable instructions which, when executed by a computer processor, perform a method of parameter allocation for an internet of things application applied to a second communication node, the method comprising: under the condition that a power-on trigger instruction is received and an OTAA mode is activated in the air, a network access request is sent to a first communication node at a randomly selected uplink communication rate; under the condition of receiving a network access success message and a communication key fed back by a first communication node, receiving a communication parameter dynamically allocated by the first communication node; and automatically switching from the OTAA mode to the manually activated ABP mode according to the communication parameters.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the above method operations, and may also perform related operations in the parameter allocation method applied to the internet of things application of the first communication node or the second communication node provided by any embodiments of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods of the embodiments of the present invention.
It should be noted that, in the embodiment of the parameter allocation apparatus for internet of things application, each unit and each module included in the parameter allocation apparatus are only divided according to functional logic, but are not limited to the above division as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments illustrated herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (7)

1. A parameter distribution method applied to an Internet of things is applied to a first communication node and comprises the following steps:
receiving downlink communication frequency automatically allocated by the cloud platform according to a near-non-allocation near-frequency criterion; the adjacent non-distribution close frequency criterion refers to that two adjacent first communication nodes are not distributed with close downlink communication frequencies;
under the condition of receiving a network access request sent by a second communication node, acquiring a communication key corresponding to the second communication node from the cloud platform according to a first communication protocol;
under the condition that the communication key is legal, a network access success message and the communication key are sent to a second communication node according to the downlink communication frequency; the validity of the communication key is related to whether the communication key corresponding to the second communication node is stored in a database of the cloud platform;
inquiring a communication parameter database which is created in advance;
determining whether an uplink frequency allocation record and an uplink rate allocation record exist in the communication parameter database according to the query record;
dynamically distributing communication parameters to the second communication node according to a preset distribution criterion;
wherein, in a case that the uplink frequency allocation record and the uplink rate allocation record do not exist in the communication parameter database, the dynamically allocating the communication parameters to the second communication node according to a preset allocation criterion includes:
detecting whether all uplink communication frequencies and all uplink communication rates in the parameter database are completely allocated;
under the condition that the allocation is not finished, randomly selecting one uplink communication frequency and the highest uplink communication rate from the uplink communication frequencies and the uplink communication rates which are not allocated in the parameter database, and sending the uplink communication frequency and the highest uplink communication rate to a second communication node;
and under the condition of finishing the distribution, dynamically distributing the broadcast delay reply time to the second communication node.
2. The method of claim 1, wherein dynamically allocating communication parameters to the second communication node according to a preset allocation criterion in the case that there are uplink frequency allocation records and uplink rate allocation records in the communication parameter database comprises:
and allocating the uplink communication frequency corresponding to the uplink frequency allocation record and the uplink communication rate corresponding to the uplink rate allocation record to a second communication node.
3. A parameter distribution method applied to an Internet of things is characterized by being applied to a second communication node and comprising the following steps:
under the condition that a power-on trigger instruction is received and an OTAA mode is activated in the air, a network access request is sent to a first communication node at a randomly selected uplink communication rate;
under the condition of receiving the successful network access message and the communication key fed back by the first communication node, receiving the communication parameters dynamically distributed by the first communication node; wherein the communication parameter comprises one of: uplink communication frequency, uplink communication rate and broadcast delay reply time; the validity of the communication key is related to whether the communication key corresponding to the second communication node is stored in a database of the cloud platform;
automatically switching from the OTAA mode to a manually activated ABP mode according to the communication parameters;
receiving the uplink communication frequency and the uplink communication rate dynamically allocated by the first communication node under the condition that the uplink frequency allocation record and the uplink rate allocation record of the second communication node do not exist in the parameter database of the first communication node and all the uplink communication frequencies and all the uplink communication rates are not allocated completely;
and under the condition that all the uplink communication frequencies and all the uplink communication rates in the parameter database of the first communication node are completely allocated, receiving the broadcast delay reply time dynamically allocated by the first communication node.
4. The method of claim 3, further comprising, after said automatically switching from the OTAA mode to the manually activated ABP mode according to the communication parameters: and under the condition that the broadcast polling command of the first communication node is not received within the preset time, automatically switching from the ABP mode to the OTAA mode.
5. The method according to claim 3, further comprising, after the receiving the network entry success message and the traffic key fed back by the first communication node, the following steps: and storing the communication key.
6. A parameter distribution device for Internet of things application is characterized by comprising: a memory, and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method for parameter allocation for internet of things applications as recited in any one of claims 1-5.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a method for parameter allocation for an internet of things application according to any one of claims 1 to 5.
CN202110369760.XA 2021-04-07 2021-04-07 Parameter distribution method, equipment and storage medium for application of Internet of things Active CN112769962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110369760.XA CN112769962B (en) 2021-04-07 2021-04-07 Parameter distribution method, equipment and storage medium for application of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110369760.XA CN112769962B (en) 2021-04-07 2021-04-07 Parameter distribution method, equipment and storage medium for application of Internet of things

Publications (2)

Publication Number Publication Date
CN112769962A CN112769962A (en) 2021-05-07
CN112769962B true CN112769962B (en) 2021-08-10

Family

ID=75691161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110369760.XA Active CN112769962B (en) 2021-04-07 2021-04-07 Parameter distribution method, equipment and storage medium for application of Internet of things

Country Status (1)

Country Link
CN (1) CN112769962B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891273A (en) * 2021-09-29 2022-01-04 中国电信股份有限公司 Parameter configuration method, node controller, acquisition node and information acquisition system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595516A (en) * 2012-08-15 2014-02-19 京信通信系统(中国)有限公司 Resource allocation method and base station
CN110312310A (en) * 2018-03-27 2019-10-08 哈曼国际工业有限公司 Frequency for wireless microphone system is distributed
CN112602359A (en) * 2018-08-20 2021-04-02 富士通株式会社 Communication device and communication system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10575250B2 (en) * 2016-12-15 2020-02-25 Cable Television Laboratories, Inc. Normalization of data originating from endpoints within low power wide area networks (LPWANs)
CN106658433A (en) * 2016-12-27 2017-05-10 陈君华 Method for realizing digital cluster interphone based on LoRa technology and interphone
CN106851785B (en) * 2017-03-15 2019-12-24 福州东日信息技术有限公司 Wireless communication method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595516A (en) * 2012-08-15 2014-02-19 京信通信系统(中国)有限公司 Resource allocation method and base station
CN110312310A (en) * 2018-03-27 2019-10-08 哈曼国际工业有限公司 Frequency for wireless microphone system is distributed
CN112602359A (en) * 2018-08-20 2021-04-02 富士通株式会社 Communication device and communication system

Also Published As

Publication number Publication date
CN112769962A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
CN109792287B (en) Method and device for transmitting response message
CN111432044B (en) Multi-link equipment MAC address management method and device and multi-link equipment
CN108834198B (en) MP node network access method, MP node, MPP node and medium product
US10492122B2 (en) Terminal discovery method, terminal, server, base station, management entity, and system
CN106713522B (en) Wireless fidelity Wi-Fi connection method and mobile terminal
CN111654348B (en) Internet of things data transmission method and device, computer equipment and storage medium
EP3364709B1 (en) Data link establishment methods and apparatus
KR20140135080A (en) METHOD FOR COMMUNICATING BETWEEN UEs IN WIRELESS COMMUNICATIN SYSTEMS
CN113260047A (en) Dual-mode system, station and central coordinator combining HPLC and wireless communication
CN110831184A (en) Terminal capability transmission method, network equipment and terminal
CN101150597A (en) Method, system and device for allocating media access control address for access point
CN112769962B (en) Parameter distribution method, equipment and storage medium for application of Internet of things
CN110769426B (en) Method and control device for dynamically allocating channels based on converged base station
CN111654895B (en) Internet of things smart home ZigBee fast networking method
CN107395431B (en) Network construction method and device, equipment processing and accessing method and network equipment
CN104053159A (en) Method and device for distributing frequency points to multi-carrier base station
CN108881014B (en) Data sending system and method
CN112153599B (en) Message transmission method and device, internet of vehicles equipment and management node
CN105848146B (en) WIFI automatic connection method, device and system
KR102112182B1 (en) APPARATUS AND METHOD FOR time slot allocation in a tactical data network
CN111314492A (en) Air conditioner, data transmission method thereof and computer readable storage medium
CN111294979B (en) Communication method and related equipment
CN101431769B (en) Method for implementing dynamic business stream mechanism, base station, communication equipment and communication system thereof
CN106131970B (en) Protocol sequence channel access algorithm based on feedback
CN104105094A (en) Request authentication method, device and 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
GR01 Patent grant
GR01 Patent grant