[go: up one dir, main page]

CN114760709B - LoRa node distribution model construction method, node distribution method and device - Google Patents

LoRa node distribution model construction method, node distribution method and device Download PDF

Info

Publication number
CN114760709B
CN114760709B CN202210294466.1A CN202210294466A CN114760709B CN 114760709 B CN114760709 B CN 114760709B CN 202210294466 A CN202210294466 A CN 202210294466A CN 114760709 B CN114760709 B CN 114760709B
Authority
CN
China
Prior art keywords
mathematical model
node
lora
spreading factor
model
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
CN202210294466.1A
Other languages
Chinese (zh)
Other versions
CN114760709A (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.)
Sun Yat Sen University
Original Assignee
Sun Yat Sen University
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 Sun Yat Sen University filed Critical Sun Yat Sen University
Priority to CN202210294466.1A priority Critical patent/CN114760709B/en
Publication of CN114760709A publication Critical patent/CN114760709A/en
Application granted granted Critical
Publication of CN114760709B publication Critical patent/CN114760709B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access
    • H04W74/08Non-scheduled access, e.g. ALOHA
    • H04W74/0833Random access procedures, e.g. with 4-step access
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B17/00Fire alarms; Alarms responsive to explosion
    • G08B17/005Fire alarms; Alarms responsive to explosion for forest fires, e.g. detecting fires spread over a large or outdoors area
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biodiversity & Conservation Biology (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了LoRa节点分配模型构建方法、节点分配方法及装置,本发明对LoRa物理层进行初始化配置,确定模型中各个数据量的计算方式;根据随机接入网络的特性,将节点产生的数据作为泊松分布,根据泊松分布和各个数据量的计算方式,确定传输成功率的第一数学模型;构建输出接收功率受信号的发射功率和路径损耗的影响的第二数学模型;根据第一数学模型和第二数学模型,确定第三数学模型中的目标函数;根据目标函数和扩频因子,通过非线性规划方法求解第三数学模型;最后本发明能够根据第三数学模型,生成目标场景下的节点分配以及节点部署方案,本发明能够提高节点传输的可靠性、降低系统整体功率和维护成本,可广泛应用于通讯技术领域。

Figure 202210294466

The invention discloses a LoRa node allocation model construction method, a node allocation method and a device. The invention initializes the LoRa physical layer and determines the calculation method of each data amount in the model; according to the characteristics of the random access network, the data generated by the nodes As a Poisson distribution, according to the Poisson distribution and the calculation method of each data volume, determine the first mathematical model of the transmission success rate; construct the second mathematical model in which the output received power is affected by the transmission power of the signal and the path loss; according to the first The mathematical model and the second mathematical model determine the objective function in the third mathematical model; according to the objective function and the spreading factor, the third mathematical model is solved by a nonlinear programming method; finally the present invention can generate the target scene according to the third mathematical model According to the node allocation and node deployment scheme, the present invention can improve the reliability of node transmission, reduce the overall system power and maintenance cost, and can be widely used in the field of communication technology.

Figure 202210294466

Description

LoRa节点分配模型构建方法、节点分配方法及装置LoRa node allocation model construction method, node allocation method and device

技术领域technical field

本发明涉及通讯技术领域,尤其是LoRa节点分配模型构建方法、节点分配方法及装置。The invention relates to the field of communication technology, in particular to a method for constructing a LoRa node allocation model, a node allocation method and a device.

背景技术Background technique

随着通信与网络技术的发展,物联网(IoT,Internet of Things)得到了广泛的关注和迅猛的发展。利用网络信息技术和部署的大量传感器和节点,物联网可以实时监测各种环境及体征信息,从而减少人工干预,提高效率和经济收益,因此受到学术界和工业界的广泛关注。With the development of communication and network technologies, the Internet of Things (IoT, Internet of Things) has received extensive attention and rapid development. Using network information technology and a large number of deployed sensors and nodes, the Internet of Things can monitor various environmental and sign information in real time, thereby reducing manual intervention, improving efficiency and economic benefits, so it has attracted extensive attention from academia and industry.

因此,低功耗广域网(LPWAN)应运而生。LPWAN的工作原理类似于现有的蜂窝移动网络:基站负责提供无线信号的覆盖,而接入设备则通过采用特定的调制方法,传输速率及功率,实现在极低功耗下的远距离传输。而LoRa(Long Range)以其高灵敏度、低功耗、远距离传输、易于部署、电池寿命长等优势,成为目前使用最为广泛的LPWAN网络技术之一,已被成功的应用于诸如目标追踪,水位监测,火灾预警,智慧城市等场景。Therefore, low power wide area network (LPWAN) came into being. The working principle of LPWAN is similar to the existing cellular mobile network: the base station is responsible for providing coverage of wireless signals, while the access device realizes long-distance transmission under extremely low power consumption by adopting specific modulation methods, transmission rates and power. LoRa (Long Range) has become one of the most widely used LPWAN network technologies due to its advantages of high sensitivity, low power consumption, long-distance transmission, easy deployment, and long battery life. It has been successfully applied to such as target tracking, Water level monitoring, fire warning, smart city and other scenarios.

而传统的LoRa网络,不能保证每个节点传输信息的公平性,且结点不能根据距离动态地调整功率。这使得节点自身的功率总处在一个较高的状态,使得它的功耗大幅度提高,需要经常对节点进行维护,且传输的可靠性不能保证,这使得它难以用在无人机森林火灾预警系统中。这就需要我们兼顾低功耗与公平性的LoRa节点分配模型。However, the traditional LoRa network cannot guarantee the fairness of information transmitted by each node, and the nodes cannot dynamically adjust the power according to the distance. This makes the power of the node itself always in a high state, which greatly increases its power consumption, requires frequent maintenance of the node, and the reliability of transmission cannot be guaranteed, which makes it difficult to use in UAV forest fires in the early warning system. This requires us to take into account the LoRa node allocation model of low power consumption and fairness.

一方面,系统电源不仅要为无人机的飞行控制系统供电以维持监测阵列,还要为传感系统和通信系统供电并保留足够的返程能源。On the one hand, the system power supply must not only supply power to the flight control system of the UAV to maintain the monitoring array, but also supply power to the sensing system and communication system and retain enough return energy.

另一方面,由于网关无法同时接收相同扩频因子的信号,同一网络中当节点密集部署后,必然会产生相同扩频因子信号的碰撞问题。这不仅增加传输能耗,降低系统电源寿命,还影响数据的实时性与同步性。On the other hand, since the gateway cannot receive signals with the same spreading factor at the same time, when nodes are densely deployed in the same network, the collision problem of signals with the same spreading factor will inevitably occur. This not only increases transmission energy consumption, reduces system power supply life, but also affects real-time and synchronization of data.

发明内容Contents of the invention

有鉴于此,本发明实施例提供一种低功耗且公平性高的LoRa节点分配模型构建方法、节点分配方法及装置。In view of this, the embodiments of the present invention provide a LoRa node allocation model construction method, node allocation method and device with low power consumption and high fairness.

本发明的一方面提供了LoRa节点分配模型构建方法,包括:One aspect of the present invention provides LoRa node allocation model construction method, including:

对LoRa物理层进行初始化配置,确定模型中各个数据量的计算方式;Initialize the configuration of the LoRa physical layer to determine the calculation method of each data volume in the model;

根据随机接入网络的特性,将节点产生的数据作为泊松分布,根据所述泊松分布和所述各个数据量的计算方式,确定传输成功率的第一数学模型;According to the characteristics of the random access network, the data generated by the nodes is used as a Poisson distribution, and according to the calculation method of the Poisson distribution and the amount of each data, determine the first mathematical model of the transmission success rate;

构建输出接收功率受信号的发射功率和路径损耗的影响的第二数学模型;Constructing the second mathematical model that the output received power is affected by the transmitted power of the signal and the path loss;

根据所述第一数学模型和所述第二数学模型,确定兼顾低功耗与公平性的第三数学模型中的目标函数;According to the first mathematical model and the second mathematical model, determine an objective function in a third mathematical model that takes into account both low power consumption and fairness;

根据所述目标函数和扩频因子,通过非线性规划方法求解所述第三数学模型。Solving the third mathematical model through a nonlinear programming method according to the objective function and the spreading factor.

可选地,所述对LoRa物理层进行初始化配置,确定模型中各个数据量的计算方式,包括:Optionally, the LoRa physical layer is initialized and configured to determine the calculation method of each data volume in the model, including:

将LoRa监测网络中的LoRa节点随机排列得到监测阵列;Randomly arrange the LoRa nodes in the LoRa monitoring network to obtain a monitoring array;

根据所述监测阵列,配置数据包长和节点的平均发送时间间隔;According to the monitoring array, configure the average sending time interval of the data packet length and the node;

根据所述LoRa监测网络中各个节点的最低频率和最高频率,确定网络带宽;According to the lowest frequency and the highest frequency of each node in the LoRa monitoring network, determine the network bandwidth;

所述LoRa监测网络将不同信息编码在不同的开始频率上,并使用扩频因子表示每个符号中能够编码的比特的数量;The LoRa monitoring network encodes different information on different starting frequencies, and uses a spreading factor to represent the number of bits that can be encoded in each symbol;

确定所述扩频因子的开始频率种类后,编码所述扩频因子的比特信息;After determining the start frequency type of the spreading factor, encoding the bit information of the spreading factor;

根据所述扩频因子的符号速率和比特率,确定数据包的传输时间。Based on the symbol rate and the bit rate of the spreading factor, the transmission time of the data packet is determined.

可选地,所述根据随机接入网络的特性,将节点产生的数据作为泊松分布,根据所述泊松分布和所述各个数据量的计算方式,确定传输成功率的第一数学模型,包括:Optionally, according to the characteristics of the random access network, the data generated by the nodes is used as a Poisson distribution, and the first mathematical model of the transmission success rate is determined according to the Poisson distribution and the calculation method of each data amount, include:

根据节点的数据包长度、节点数量和平均时间间隔,计算负载;Calculate the load according to the packet length of the node, the number of nodes and the average time interval;

根据数据包的传输时间以及所述负载,计算每个节点的传输成功率;Calculate the transmission success rate of each node according to the transmission time of the data packet and the load;

根据每个节点对应的扩频因子,得到选用扩频因子的每个节点的传输成功率的第一数学模型。According to the spreading factor corresponding to each node, a first mathematical model of the transmission success rate of each node with the spreading factor selected is obtained.

可选地,所述构建输出接收功率受信号的发射功率和路径损耗的影响的第二数学模型,包括:Optionally, said constructing a second mathematical model that the output received power is affected by the transmitted power of the signal and the path loss includes:

当信号的接收功率大于接收端的灵敏度时,判定信号可以被成功接收;所述接收端的灵敏度取决于发送端的带宽和扩频因子;When the received power of the signal is greater than the sensitivity of the receiving end, it is determined that the signal can be successfully received; the sensitivity of the receiving end depends on the bandwidth and spreading factor of the sending end;

采用对数距离的路径损耗模型,确定对应的路径损耗;Use the path loss model of logarithmic distance to determine the corresponding path loss;

根据信号的发射功率和所述路径损耗,确定接收功率。The received power is determined according to the transmitted power of the signal and the path loss.

可选地,所述根据所述第一数学模型和所述第二数学模型,确定兼顾低功耗与公平性的第三数学模型中的目标函数这一步骤中,所述目标函数的表达式为:Optionally, in the step of determining the objective function in the third mathematical model that takes into account both low power consumption and fairness according to the first mathematical model and the second mathematical model, the expression of the objective function for:

Figure BDA0003562742560000021
Figure BDA0003562742560000021

其中,α表示功耗权重;Ptx,i表示选用扩频因子SFi时在保证网关接收到的情况下的最小发射功率;Ps,i表示选用扩频因子SFi的传输成功率;β表示不公平度权重;minQ代表最小化的目标函数值。Among them, α represents the weight of power consumption; P tx,i represents the minimum transmit power when the spreading factor SF i is selected to ensure the gateway receives it; P s,i represents the transmission success rate of the selected spreading factor SF i ; β Represents the weight of unfairness; minQ represents the minimized objective function value.

本发明实施例的另一方面还提供了一种LoRa节点分配方法,包括:Another aspect of the embodiments of the present invention also provides a LoRa node allocation method, including:

获取如前面所述的第三数学模型;obtaining a third mathematical model as previously described;

根据所述第三数学模型,生成目标场景下的节点分配以及节点部署方案。According to the third mathematical model, a node allocation and a node deployment scheme in a target scenario are generated.

本发明实施例的另一方面还提供了一种LoRa节点分配模型构建装置,包括:Another aspect of the embodiments of the present invention also provides a LoRa node allocation model construction device, including:

第一模块,用于对LoRa物理层进行初始化配置,确定模型中各个数据量的计算方式;The first module is used to initialize the configuration of the LoRa physical layer and determine the calculation method of each data volume in the model;

第二模块,用于根据随机接入网络的特性,将节点产生的数据作为泊松分布,根据所述泊松分布和所述各个数据量的计算方式,确定传输成功率的第一数学模型;The second module is used to use the data generated by the nodes as a Poisson distribution according to the characteristics of the random access network, and determine the first mathematical model of the transmission success rate according to the Poisson distribution and the calculation method of each data volume;

第三模块,用于构建输出接收功率受信号的发射功率和路径损耗的影响的第二数学模型;The third module is used to construct a second mathematical model that the output received power is affected by the transmitted power of the signal and the path loss;

第四模块,用于根据所述第一数学模型和所述第二数学模型,确定兼顾低功耗与公平性的第三数学模型中的目标函数;A fourth module, configured to determine an objective function in a third mathematical model that takes into account low power consumption and fairness according to the first mathematical model and the second mathematical model;

第五模块,用于根据所述目标函数和扩频因子,通过非线性规划方法求解所述第三数学模型。The fifth module is configured to solve the third mathematical model through a nonlinear programming method according to the objective function and the spreading factor.

本发明实施例的另一方面还提供了一种LoRa节点分配装置,包括:Another aspect of the embodiments of the present invention also provides a LoRa node allocation device, including:

第六模块,用于获取如前面所述的第三数学模型;The sixth module is used to obtain the third mathematical model as described above;

第七模块,用于根据所述第三数学模型,生成目标场景下的节点分配以及节点部署方案。The seventh module is configured to generate node allocation and node deployment schemes in the target scenario according to the third mathematical model.

本发明实施例的另一方面还提供了一种电子设备,包括处理器以及存储器;Another aspect of the embodiments of the present invention also provides an electronic device, including a processor and a memory;

所述存储器用于存储程序;The memory is used to store programs;

所述处理器执行所述程序实现如前面所述的方法。The processor executes the program to implement the method as described above.

本发明实施例的另一方面还提供了一种计算机可读存储介质,所述存储介质存储有程序,所述程序被处理器执行实现如前面所述的方法。Another aspect of the embodiments of the present invention also provides a computer-readable storage medium, where the storage medium stores a program, and the program is executed by a processor to implement the aforementioned method.

本发明实施例还公开了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器可以从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行前面的方法。The embodiment of the present invention also discloses a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device can read the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above method.

本发明的实施例对LoRa物理层进行初始化配置,确定模型中各个数据量的计算方式;根据随机接入网络的特性,将节点产生的数据作为泊松分布,根据所述泊松分布和所述各个数据量的计算方式,确定传输成功率的第一数学模型;构建输出接收功率受信号的发射功率和路径损耗的影响的第二数学模型;根据所述第一数学模型和所述第二数学模型,确定兼顾低功耗与公平性的第三数学模型中的目标函数;根据所述目标函数和扩频因子,通过非线性规划方法求解所述第三数学模型;最后,本发明能够根据所述第三数学模型,生成目标场景下的节点分配以及节点部署方案,本发明能够提高节点传输的可靠性、降低系统整体的功率和降低系统的维护成本。The embodiment of the present invention carries out initial configuration to LoRa physical layer, determines the calculation mode of each data amount in the model; The calculation method of each data amount determines the first mathematical model of the transmission success rate; constructs the second mathematical model that the output received power is affected by the transmission power of the signal and the path loss; according to the first mathematical model and the second mathematical model model, determine the objective function in the third mathematical model that takes into account both low power consumption and fairness; according to the objective function and the spreading factor, solve the third mathematical model through a nonlinear programming method; finally, the present invention can solve the third mathematical model according to the The third mathematical model is used to generate node allocation and node deployment schemes in the target scenario. The present invention can improve the reliability of node transmission, reduce the overall power of the system, and reduce the maintenance cost of the system.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1为本发明实施例提供的具体应用场景下的实施环境示意图;FIG. 1 is a schematic diagram of an implementation environment in a specific application scenario provided by an embodiment of the present invention;

图2为本发明实施例提供的步骤流程图。Fig. 2 is a flow chart of steps provided by the embodiment of the present invention.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

本发明的一方面提供了LoRa节点分配模型构建方法,包括:One aspect of the present invention provides LoRa node allocation model construction method, including:

对LoRa物理层进行初始化配置,确定模型中各个数据量的计算方式;Initialize the configuration of the LoRa physical layer to determine the calculation method of each data volume in the model;

根据随机接入网络的特性,将节点产生的数据作为泊松分布,根据所述泊松分布和所述各个数据量的计算方式,确定传输成功率的第一数学模型;According to the characteristics of the random access network, the data generated by the nodes is used as a Poisson distribution, and according to the calculation method of the Poisson distribution and the amount of each data, determine the first mathematical model of the transmission success rate;

构建输出接收功率受信号的发射功率和路径损耗的影响的第二数学模型;Constructing the second mathematical model that the output received power is affected by the transmitted power of the signal and the path loss;

根据所述第一数学模型和所述第二数学模型,确定兼顾低功耗与公平性的第三数学模型中的目标函数;According to the first mathematical model and the second mathematical model, determine an objective function in a third mathematical model that takes into account both low power consumption and fairness;

根据所述目标函数和扩频因子,通过非线性规划方法求解所述第三数学模型。Solving the third mathematical model through a nonlinear programming method according to the objective function and the spreading factor.

可选地,所述对LoRa物理层进行初始化配置,确定模型中各个数据量的计算方式,包括:Optionally, the LoRa physical layer is initialized and configured to determine the calculation method of each data volume in the model, including:

将LoRa监测网络中的LoRa节点随机排列得到监测阵列;Randomly arrange the LoRa nodes in the LoRa monitoring network to obtain a monitoring array;

根据所述监测阵列,配置数据包长和节点的平均发送时间间隔;According to the monitoring array, configure the average sending time interval of the data packet length and the node;

根据所述LoRa监测网络中各个节点的最低频率和最高频率,确定网络带宽;According to the lowest frequency and the highest frequency of each node in the LoRa monitoring network, determine the network bandwidth;

所述LoRa监测网络将不同信息编码在不同的开始频率上,并使用扩频因子表示每个符号中能够编码的比特的数量;The LoRa monitoring network encodes different information on different starting frequencies, and uses a spreading factor to represent the number of bits that can be encoded in each symbol;

确定所述扩频因子的开始频率种类后,编码所述扩频因子的比特信息;After determining the start frequency type of the spreading factor, encoding the bit information of the spreading factor;

根据所述扩频因子的符号速率和比特率,确定数据包的传输时间。Based on the symbol rate and the bit rate of the spreading factor, the transmission time of the data packet is determined.

可选地,所述根据随机接入网络的特性,将节点产生的数据作为泊松分布,根据所述泊松分布和所述各个数据量的计算方式,确定传输成功率的第一数学模型,包括:Optionally, according to the characteristics of the random access network, the data generated by the nodes is used as a Poisson distribution, and the first mathematical model of the transmission success rate is determined according to the Poisson distribution and the calculation method of each data amount, include:

根据节点的数据包长度、节点数量和平均时间间隔,计算负载;Calculate the load according to the packet length of the node, the number of nodes and the average time interval;

根据数据包的传输时间以及所述负载,计算每个节点的传输成功率;Calculate the transmission success rate of each node according to the transmission time of the data packet and the load;

根据每个节点对应的扩频因子,得到选用扩频因子的每个节点的传输成功率的第一数学模型。According to the spreading factor corresponding to each node, a first mathematical model of the transmission success rate of each node with the spreading factor selected is obtained.

可选地,所述构建输出接收功率受信号的发射功率和路径损耗的影响的第二数学模型,包括:Optionally, said constructing a second mathematical model that the output received power is affected by the transmitted power of the signal and the path loss includes:

当信号的接收功率大于接收端的灵敏度时,判定信号可以被成功接收;所述接收端的灵敏度取决于发送端的带宽和扩频因子;When the received power of the signal is greater than the sensitivity of the receiving end, it is determined that the signal can be successfully received; the sensitivity of the receiving end depends on the bandwidth and spreading factor of the sending end;

采用对数距离的路径损耗模型,确定对应的路径损耗;Use the path loss model of logarithmic distance to determine the corresponding path loss;

根据信号的发射功率和所述路径损耗,确定接收功率。The received power is determined according to the transmitted power of the signal and the path loss.

可选地,所述根据所述第一数学模型和所述第二数学模型,确定兼顾低功耗与公平性的第三数学模型中的目标函数这一步骤中,所述目标函数的表达式为:Optionally, in the step of determining the objective function in the third mathematical model that takes into account both low power consumption and fairness according to the first mathematical model and the second mathematical model, the expression of the objective function for:

Figure BDA0003562742560000051
Figure BDA0003562742560000051

其中,α表示功耗权重;Ptx,i表示选用扩频因子SFi时在保证网关接收到的情况下的最小发射功率;Ps,i表示选用扩频因子SFi的传输成功率;β表示不公平度权重;minQ代表最小化的目标函数值。Among them, α represents the weight of power consumption; P tx,i represents the minimum transmit power when the spreading factor SF i is selected to ensure the gateway receives it; P s,i represents the transmission success rate of the selected spreading factor SF i ; β Represents the weight of unfairness; minQ represents the minimized objective function value.

本发明实施例的另一方面还提供了一种LoRa节点分配方法,包括:Another aspect of the embodiments of the present invention also provides a LoRa node allocation method, including:

获取如前面所述的第三数学模型;obtaining a third mathematical model as previously described;

根据所述第三数学模型,生成目标场景下的节点分配以及节点部署方案。According to the third mathematical model, a node allocation and a node deployment scheme in a target scenario are generated.

本发明实施例的另一方面还提供了一种LoRa节点分配模型构建装置,包括:Another aspect of the embodiments of the present invention also provides a LoRa node allocation model construction device, including:

第一模块,用于对LoRa物理层进行初始化配置,确定模型中各个数据量的计算方式;The first module is used to initialize the configuration of the LoRa physical layer and determine the calculation method of each data volume in the model;

第二模块,用于根据随机接入网络的特性,将节点产生的数据作为泊松分布,根据所述泊松分布和所述各个数据量的计算方式,确定传输成功率的第一数学模型;The second module is used to use the data generated by the nodes as a Poisson distribution according to the characteristics of the random access network, and determine the first mathematical model of the transmission success rate according to the Poisson distribution and the calculation method of each data volume;

第三模块,用于构建输出接收功率受信号的发射功率和路径损耗的影响的第二数学模型;The third module is used to construct a second mathematical model that the output received power is affected by the transmitted power of the signal and the path loss;

第四模块,用于根据所述第一数学模型和所述第二数学模型,确定兼顾低功耗与公平性的第三数学模型中的目标函数;A fourth module, configured to determine an objective function in a third mathematical model that takes into account low power consumption and fairness according to the first mathematical model and the second mathematical model;

第五模块,用于根据所述目标函数和扩频因子,通过非线性规划方法求解所述第三数学模型。The fifth module is configured to solve the third mathematical model through a nonlinear programming method according to the objective function and the spreading factor.

本发明实施例的另一方面还提供了一种LoRa节点分配装置,包括:Another aspect of the embodiments of the present invention also provides a LoRa node allocation device, including:

第六模块,用于获取如前面所述的第三数学模型;The sixth module is used to obtain the third mathematical model as described above;

第七模块,用于根据所述第三数学模型,生成目标场景下的节点分配以及节点部署方案。The seventh module is configured to generate node allocation and node deployment schemes in the target scenario according to the third mathematical model.

本发明实施例的另一方面还提供了一种电子设备,包括处理器以及存储器;Another aspect of the embodiments of the present invention also provides an electronic device, including a processor and a memory;

所述存储器用于存储程序;The memory is used to store programs;

所述处理器执行所述程序实现如前面所述的方法。The processor executes the program to implement the method as described above.

本发明实施例的另一方面还提供了一种计算机可读存储介质,所述存储介质存储有程序,所述程序被处理器执行实现如前面所述的方法。Another aspect of the embodiments of the present invention also provides a computer-readable storage medium, where the storage medium stores a program, and the program is executed by a processor to implement the aforementioned method.

本发明实施例还公开了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器可以从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行前面的方法。The embodiment of the present invention also discloses a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device can read the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above method.

下面结合说明书附图,对本发明的具体实现原理进行详细说明:Below in conjunction with accompanying drawing of description, the specific implementation principle of the present invention is described in detail:

针对现有技术存在的问题,本发明提供一种兼顾低功耗与公平性的LoRa节点分配模型。该模型能够用于LoRa节点分配中,从而提高节点传输的可靠性、降低系统整体的功率和降低系统的维护成本。Aiming at the problems existing in the prior art, the present invention provides a LoRa node allocation model that takes into account both low power consumption and fairness. This model can be used in LoRa node allocation, thereby improving the reliability of node transmission, reducing the overall power of the system and reducing the maintenance cost of the system.

具体地,本发明的方法包括以下步骤:Specifically, the method of the present invention comprises the following steps:

S1:对LoRa物理层进行基本的假设,给出模型中用到的量的计算方法;S1: Make basic assumptions on the LoRa physical layer, and give the calculation method of the quantity used in the model;

S2:根据随机接入网络的特性,在负载λ下节点产生的数据可以看作是泊松分布,考虑仅有一种扩频因子SF的数据进行传输,当[-T,T]期间没有数据进行传输时,数据可以成功到达网关。根据泊松分布,结合S1中的数据公式,给出传输成功率Ps的数学模型;S2: According to the characteristics of the random access network, the data generated by the node under the load λ can be regarded as a Poisson distribution. Considering that there is only one spreading factor SF for data transmission, when there is no data during [-T,T] When transferring, the data can reach the gateway successfully. According to the Poisson distribution, combined with the data formula in S1, the mathematical model of the transmission success rate P s is given;

S3:给出输入接收功率Prx受信号的发射功率Ptx和路径损耗Lp的影响的数学模型;S3: Give the mathematical model that the input received power P rx is affected by the transmitted power P tx of the signal and the path loss L p ;

S4:根据S2和S3中的数学模型,给出兼顾低功耗与公平性的数学模型中的目标函数Q;S4: According to the mathematical models in S2 and S3, give the objective function Q in the mathematical model that takes into account both low power consumption and fairness;

S5:根据扩频因子SF比例和为1,结合S4中的目标函数,给出兼顾低功耗与公平性的数学模型,用采用非线性规划方法(如罚函数法、进化算法、粒子群算法等)求解该非线性约束模型,给出部署方案。S5: According to the ratio sum of the spreading factor SF being 1, combined with the objective function in S4, a mathematical model that takes into account both low power consumption and fairness is given, and a nonlinear programming method (such as penalty function method, evolutionary algorithm, particle swarm algorithm) is used etc.) to solve the nonlinear constraint model and give a deployment scheme.

S6:在下面的计算中,针对特定的部署场景,给出具体的计算结果,同时可以证明,只改变节点数量的条件下,节点分配比例大致相同。S6: In the following calculations, specific calculation results are given for specific deployment scenarios, and it can be proved that the node allocation ratio is roughly the same when only the number of nodes is changed.

S7:具体而言,S6中的部署场景为无人机森林火灾预警系统,根据该模型进行部署之后可在大大提高系统的使用寿命的同时保证数据传输的可靠性、实时性与同步性。S7: Specifically, the deployment scenario in S6 is the UAV forest fire early warning system. After deployment according to this model, the reliability, real-time and synchronization of data transmission can be guaranteed while greatly improving the service life of the system.

进一步地,所述步骤S1中的基本假设和计算方法包括:Further, the basic assumptions and calculation methods in the step S1 include:

一个由N个LoRa节点,1个LoRa网关组成的LoRa监测,节点随机排成监测阵列,网络呈星型拓扑结构。发送数据包长均为L,平均发送时间间隔为Tavg,发送时间在时间间隔Tavg上呈均匀分布,符合随机接入网络(Random Access Network)特性。假设网络中所有节点在最低速率(即最高扩频因子和最高灵敏度)下均可达,带宽BW和码率CR一致,发射信道相同。A LoRa monitor consists of N LoRa nodes and 1 LoRa gateway. The nodes are randomly arranged in a monitoring array, and the network is in a star topology. The length of the data packets to be sent is L, the average sending time interval is T avg , and the sending time is evenly distributed on the time interval T avg , which conforms to the characteristics of a random access network (Random Access Network). Assume that all nodes in the network are reachable at the lowest rate (that is, the highest spreading factor and highest sensitivity), the bandwidth BW is consistent with the code rate CR, and the transmission channel is the same.

BW=fmax-fmin BW= fmax - fmin

其中,fmax表示最高频率;fmin表示最低频率;BW表示宽带,即最大频率与最小频率的差值。Among them, f max represents the highest frequency; f min represents the lowest frequency; BW represents the broadband, that is, the difference between the maximum frequency and the minimum frequency.

LoRa将不同信息编码在不同的开始频率上,并使用扩频因子(SF,SpreadingFactor)表示每个符号中能够编码的比特的数量。对于扩频因子为SF的LoRa节点而言,它的一个符号共有2SF种不同的开始频率,因此能够编码SF比特信息。并且,因为不同的扩频因子在线性。扩频调制中是正交的,因此网关可以同时解调不同扩频因子的信号。所以SF的取值范围如下:LoRa encodes different information on different start frequencies, and uses a spreading factor (SF, SpreadingFactor) to represent the number of bits that can be encoded in each symbol. For a LoRa node with a spreading factor of SF, one symbol has 2 different starting frequencies of SF , so it can encode SF bit information. And, because of the different spreading factors are linear. In spread spectrum modulation, it is orthogonal, so the gateway can simultaneously demodulate signals with different spreading factors. So the value range of SF is as follows:

SF∈{7,8,9,10,11,12}SF ∈ {7, 8, 9, 10, 11, 12}

对于扩频因子为SF的节点来说,LoRa的符号速率RsFor a node with a spreading factor of SF, the symbol rate R s of LoRa is

Figure BDA0003562742560000071
Figure BDA0003562742560000071

其中,BW为信号的带宽,BW∈{125,250,500}(单位:kHz)。Wherein, BW is the bandwidth of the signal, BW∈{125, 250, 500} (unit: kHz).

SF表示一个符号中有SF比特信息,因此比特率Rb为:SF means that there is SF bit information in a symbol, so the bit rate R b is:

Figure BDA0003562742560000072
Figure BDA0003562742560000072

其中,CR表示码率。Among them, CR represents code rate.

对于一个长度为L比特的数据包,该数据包的传输时间T为:For a data packet with a length of L bits, the transmission time T of the data packet is:

Figure BDA0003562742560000073
Figure BDA0003562742560000073

进一步地,步骤S2中的数学模型推导为:Further, the mathematical model in step S2 is derived as:

首先根据泊松分布,传输成功率PS为:First, according to the Poisson distribution, the transmission success rate PS is:

PS=P(X>2T)=e-2λT P S =P(X>2T)=e -2λT

其中,λ表示负载,T表示在该扩频因子SF下发送长度为L的数据包所需要的时间。Wherein, λ represents the load, and T represents the time required to send a data packet of length L under the spreading factor SF.

负载λ为:The load λ is:

Figure BDA0003562742560000081
Figure BDA0003562742560000081

其中,L表示数据包长度,N表示节点数量,Tavg表示平均时间间隔。根据S1,易得T为:Among them, L represents the length of the data packet, N represents the number of nodes, and T avg represents the average time interval. According to S1, it is easy to get T as:

Figure BDA0003562742560000082
Figure BDA0003562742560000082

综合上式,得传输成功率PSBased on the above formula, the transmission success rate P S can be obtained:

Figure BDA0003562742560000083
Figure BDA0003562742560000083

再分析每个节点的成功率:Then analyze the success rate of each node:

对于节点可以选择任一扩频因子进行传输网络而言,如果某一扩频因子SFi的比例用Ri表示,因为每个节点只能选择一种扩频因子,因此所有扩频因子的比例和为1,即:For nodes that can choose any spreading factor for transmission network, if the ratio of a certain spreading factor SF i is represented by R i , since each node can only choose one spreading factor, the ratio of all spreading factors and is 1, that is:

Figure BDA0003562742560000084
Figure BDA0003562742560000084

则负载λi为:Then the load λ i is:

λi=Riλλ i =R i λ

则传输时间Ti为:Then the transmission time T i is:

Figure BDA0003562742560000085
Figure BDA0003562742560000085

联立上式,得到选用扩频因子SFi的每个节点传输成功率Ps,i的数学模型为:Combining the above formulas, the mathematical model of the transmission success rate P s of each node with the spread spectrum factor SF i obtained is:

Figure BDA0003562742560000086
Figure BDA0003562742560000086

具体地说,步骤S3的数学模型推导方法为:Specifically, the mathematical model derivation method of step S3 is:

当信号的接收功率Prx大于接收端的灵敏度Psens时,信号才可以被成功接收。而接收灵敏度Psens又与发送端选择的带宽BW和扩频因子SF有关,该灵敏度Psens由LoRa官方给出,如表1所示,表1描述灵敏度与扩频因子,带宽的关系示意图:When the received power P rx of the signal is greater than the sensitivity P sens of the receiving end, the signal can be successfully received. The receiving sensitivity P sens is related to the bandwidth BW and spreading factor SF selected by the sending end. The sensitivity P sens is given by LoRa official, as shown in Table 1. Table 1 describes the relationship between sensitivity, spreading factor and bandwidth:

表1Table 1

Figure BDA0003562742560000087
Figure BDA0003562742560000087

Figure BDA0003562742560000091
Figure BDA0003562742560000091

接收功率Prx受信号的发射功率Ptx和路径损耗LP的影响,表示为:The received power P rx is affected by the transmitted power P tx of the signal and the path loss L P , expressed as:

Prx=Ptx+GL-LP P rx =P tx +GL-L P

其中,GL表示其他因素的影响,比如天线的增益,非阻抗匹配电路带来的影响等。但对于同一个网络而言,一般会采用相同的设备进行部署,因此对于同一网络的传输,GL的值基本保持水平。Among them, GL represents the influence of other factors, such as the gain of the antenna, the influence brought by the non-impedance matching circuit, etc. However, for the same network, the same equipment is generally used for deployment, so for the transmission of the same network, the value of GL is basically kept at the same level.

对于路径损耗LP,采用对数距离的路径损耗模型,在距离网关d处的路径损耗LP(d)为:For the path loss L P , the path loss model of the logarithmic distance is adopted, and the path loss L P (d) at a distance d from the gateway is:

Figure BDA0003562742560000092
Figure BDA0003562742560000092

其中,

Figure BDA0003562742560000093
表示在参考距离d0的平均路径损耗,γ表示路径损耗指数,Xσ表示信道的随机衰减,用满足标准差σ的高斯分布表示。in,
Figure BDA0003562742560000093
Represents the average path loss at the reference distance d0, γ represents the path loss index, and X σ represents the random attenuation of the channel, represented by a Gaussian distribution that satisfies the standard deviation σ.

具体地说,步骤S4的目标模型为:Specifically, the target model of step S4 is:

Figure BDA0003562742560000094
Figure BDA0003562742560000094

其中,α表示功耗权重;Ptx,i表示选用扩频因子SFi时在保证网关接收到的情况下的最小发射功率,可根据步骤S3确定;Ps,i表示选用扩频因子SFi的传输成功率,由步骤S2给出;β表示不公平度权重;N表示总节点数。因此,目标函数的第一项表示在加权条件下的失败发射功率,第二项表示加权条件下的概率差的平方和,并以此表示不公平度。Among them, α represents the weight of power consumption; P tx,i represents the minimum transmit power when the spreading factor SF i is selected to ensure that the gateway receives it, which can be determined according to step S3; P s,i represents the selection of the spreading factor SF i The transmission success rate of is given by step S2; β represents the unfairness weight; N represents the total number of nodes. Therefore, the first term of the objective function represents the failure transmission power under the weighted condition, and the second term represents the sum of squares of the probability difference under the weighted condition, and thus represents the degree of unfairness.

具体地说,步骤S5的非线性约束模型为:Specifically, the nonlinear constraint model of step S5 is:

Figure BDA0003562742560000095
Figure BDA0003562742560000095

Figure BDA0003562742560000096
Figure BDA0003562742560000096

下面以具体的应用场景为例,详细描述本发明的方法的具体实施过程:Taking a specific application scenario as an example, the specific implementation process of the method of the present invention is described in detail below:

假设本实施例有60个节点,要传输的数据包长度L为20*8bit,码率CR为0.8,带宽BW为125kHz,调频因子SF可以取{7,8,9,10,11,12},发射功率Ptx可以取{2,5,8,11,14,17}dBm,问题示意图如图1所示,根据本发明的方法的流程(如图2所示)进行求解。Suppose there are 60 nodes in this embodiment, the length L of the data packet to be transmitted is 20*8bit, the code rate CR is 0.8, the bandwidth BW is 125kHz, and the frequency modulation factor SF can be {7, 8, 9, 10, 11, 12} , the transmission power P tx can take {2, 5, 8, 11, 14, 17} dBm, the schematic diagram of the problem is shown in Figure 1, and the solution is performed according to the flow of the method of the present invention (as shown in Figure 2).

步骤1:根据LoRa量的计算方法,可以给出每种扩频因子的符号速率

Figure BDA0003562742560000101
以及比特率
Figure BDA0003562742560000102
以及数据包的传输时间
Figure BDA0003562742560000103
平均时间间隔Tavg=60s。Step 1: According to the calculation method of LoRa quantity, the symbol rate of each spreading factor can be given
Figure BDA0003562742560000101
and bitrate
Figure BDA0003562742560000102
and the transmission time of the packet
Figure BDA0003562742560000103
The average time interval T avg =60s.

步骤2:给出选用扩频因子SFi的每个节点传输成功率Ps,i的数学模型:Step 2: Give the mathematical model of the transmission success rate P s,i of each node with the spread spectrum factor SF i selected:

Figure BDA0003562742560000104
Figure BDA0003562742560000104

其中,Ri为某一扩频因子的比例

Figure BDA0003562742560000105
负载
Figure BDA0003562742560000106
Among them, R i is the ratio of a certain spreading factor
Figure BDA0003562742560000105
load
Figure BDA0003562742560000106

步骤3:给出功率数学模型:Step 3: Give the power mathematical model:

Prx=Ptx+GL-LP P rx =P tx +GL-L P

Figure BDA0003562742560000107
Figure BDA0003562742560000107

步骤4:给出优化目标函数Q:Step 4: Give the optimization objective function Q:

Figure BDA0003562742560000108
Figure BDA0003562742560000108

这里,本实施例认为公平和功率等同重要,取α=1,β=1。Here, in this embodiment, it is considered that fairness and power are equally important, and α=1, β=1.

步骤5:给出兼顾低功耗与公平性的数学模型:Step 5: Give a mathematical model that takes into account low power consumption and fairness:

Figure BDA0003562742560000109
Figure BDA0003562742560000109

Figure BDA00035627425600001010
Figure BDA00035627425600001010

然后,对采用非线性规划方法求解这一个模型,得到扩频因子SF如表2所示:Then, the nonlinear programming method is used to solve this model, and the spreading factor SF is obtained as shown in Table 2:

表2Table 2

SFSF 77 88 99 1010 1111 1212 R<sub>i</sub>R<sub>i</sub> 0.21790.2179 0.20150.2015 0.18030.1803 0.15380.1538 0.12870.1287 0.11780.1178

综上所述,本发明对LoRa物理层进行初始化配置,确定模型中各个数据量的计算方式;根据随机接入网络的特性,将节点产生的数据作为泊松分布,根据所述泊松分布和所述各个数据量的计算方式,确定传输成功率的第一数学模型;构建输出接收功率受信号的发射功率和路径损耗的影响的第二数学模型;根据所述第一数学模型和所述第二数学模型,确定兼顾低功耗与公平性的第三数学模型中的目标函数;根据所述目标函数和扩频因子,通过非线性规划方法求解所述第三数学模型;最后,本发明能够根据所述第三数学模型,生成目标场景下的节点分配以及节点部署方案,本发明能够提高节点传输的可靠性、降低系统整体的功率和降低系统的维护成本。In summary, the present invention initializes the LoRa physical layer to determine the calculation method of each data volume in the model; according to the characteristics of the random access network, the data generated by the node is used as a Poisson distribution, and according to the Poisson distribution and The calculation method of each data volume is to determine the first mathematical model of the transmission success rate; construct the second mathematical model that the output received power is affected by the transmission power of the signal and the path loss; according to the first mathematical model and the first mathematical model Two mathematical models, determining the objective function in the third mathematical model that takes into account both low power consumption and fairness; according to the objective function and the spreading factor, solve the third mathematical model through a nonlinear programming method; finally, the present invention can According to the third mathematical model, the node allocation and node deployment schemes in the target scene are generated, and the present invention can improve the reliability of node transmission, reduce the power of the whole system and reduce the maintenance cost of the system.

在一些可选择的实施例中,在方框图中提到的功能/操作可以不按照操作示图提到的顺序发生。例如,取决于所涉及的功能/操作,连续示出的两个方框实际上可以被大体上同时地执行或所述方框有时能以相反顺序被执行。此外,在本发明的流程图中所呈现和描述的实施例以示例的方式被提供,目的在于提供对技术更全面的理解。所公开的方法不限于本文所呈现的操作和逻辑流程。可选择的实施例是可预期的,其中各种操作的顺序被改变以及其中被描述为较大操作的一部分的子操作被独立地执行。In some alternative implementations, the functions/operations noted in the block diagrams may occur out of the order noted in the operational diagrams. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality/operations involved. Furthermore, the embodiments presented and described in the flowcharts of the present invention are provided by way of example in order to provide a more comprehensive understanding of the technology. The disclosed methods are not limited to the operations and logical flow presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and in which sub-operations described as part of larger operations are performed independently.

此外,虽然在功能性模块的背景下描述了本发明,但应当理解的是,除非另有相反说明,所述的功能和/或特征中的一个或多个可以被集成在单个物理装置和/或软件模块中,或者一个或多个功能和/或特征可以在单独的物理装置或软件模块中被实现。还可以理解的是,有关每个模块的实际实现的详细讨论对于理解本发明是不必要的。更确切地说,考虑到在本文中公开的装置中各种功能模块的属性、功能和内部关系的情况下,在工程师的常规技术内将会了解该模块的实际实现。因此,本领域技术人员运用普通技术就能够在无需过度试验的情况下实现在权利要求书中所阐明的本发明。还可以理解的是,所公开的特定概念仅仅是说明性的,并不意在限制本发明的范围,本发明的范围由所附权利要求书及其等同方案的全部范围来决定。Furthermore, although the invention has been described in the context of functional modules, it should be understood that one or more of the described functions and/or features may be integrated into a single physical device and/or unless stated to the contrary. or software modules, or one or more functions and/or features may be implemented in separate physical devices or software modules. It will also be appreciated that a detailed discussion of the actual implementation of each module is not necessary to understand the present invention. Rather, given the attributes, functions and internal relationships of the various functional blocks in the devices disclosed herein, the actual implementation of the blocks will be within the ordinary skill of the engineer. Accordingly, those skilled in the art can implement the present invention set forth in the claims without undue experimentation using ordinary techniques. It is also to be understood that the particular concepts disclosed are illustrative only and are not intended to limit the scope of the invention which is to be determined by the appended claims and their full scope of equivalents.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium, For use with instruction execution systems, devices, or devices (such as computer-based systems, systems including processors, or other systems that can fetch instructions from instruction execution systems, devices, or devices and execute instructions), or in conjunction with these instruction execution systems, devices or equipment for use. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device or device.

计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connection with one or more wires (electronic device), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, since the program can be read, for example, by optically scanning the paper or other medium, followed by editing, interpretation or other suitable processing if necessary. The program is processed electronically and stored in computer memory.

应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention can be realized by hardware, software, firmware or their combination. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

尽管已经示出和描述了本发明的实施例,本领域的普通技术人员可以理解:在不脱离本发明的原理和宗旨的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由权利要求及其等同物限定。Although the embodiments of the present invention have been shown and described, those skilled in the art can understand that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principle and spirit of the present invention. The scope of the invention is defined by the claims and their equivalents.

以上是对本发明的较佳实施进行了具体说明,但本发明并不限于所述实施例,熟悉本领域的技术人员在不违背本发明精神的前提下还可做出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the described embodiments, and those skilled in the art can also make various equivalent deformations or replacements without violating the spirit of the present invention. These equivalent modifications or replacements are all within the scope defined by the claims of the present application.

Claims (9)

1.LoRa节点分配模型构建方法,其特征在于,包括:1. LoRa node allocation model construction method is characterized in that, comprising: 对LoRa物理层进行初始化配置,确定模型中各个数据量的计算方式;Initialize the configuration of the LoRa physical layer to determine the calculation method of each data volume in the model; 根据随机接入网络的特性,将节点产生的数据作为泊松分布,根据所述泊松分布和所述各个数据量的计算方式,确定传输成功率的第一数学模型;其中,所述随机接入网络的特性包括:节点负载、数据包的传输时间;According to the characteristics of the random access network, the data generated by the nodes is regarded as a Poisson distribution, and the first mathematical model of the transmission success rate is determined according to the Poisson distribution and the calculation method of each data volume; wherein, the random access The characteristics of the incoming network include: node load, data packet transmission time; 构建输出接收功率受信号的发射功率和路径损耗的影响的第二数学模型;Constructing the second mathematical model that the output received power is affected by the transmitted power of the signal and the path loss; 根据所述第一数学模型和所述第二数学模型,确定兼顾低功耗与公平性的第三数学模型中的目标函数;其中,所述目标函数的表达式为:According to the first mathematical model and the second mathematical model, determine an objective function in a third mathematical model that takes into account both low power consumption and fairness; wherein, the expression of the objective function is:
Figure FDA0003905825120000011
Figure FDA0003905825120000011
其中,α表示功耗权重;Ptx,i表示选用扩频因子SFi时在保证网关接收到的情况下的最小发射功率;Ps,i表示选用扩频因子SFi的传输成功率;β表示不公平度权重;minQ代表最小化的目标函数值;Among them, α represents the weight of power consumption; P tx,i represents the minimum transmit power when the spreading factor SF i is selected to ensure the gateway receives it; P s,i represents the transmission success rate of the selected spreading factor SF i ; β Represents the weight of unfairness; minQ represents the minimized objective function value; 根据所述目标函数和扩频因子,通过非线性规划方法求解所述第三数学模型。Solving the third mathematical model through a nonlinear programming method according to the objective function and the spreading factor.
2.根据权利要求1所述的LoRa节点分配模型构建方法,其特征在于,所述对LoRa物理层进行初始化配置,确定模型中各个数据量的计算方式,包括:2. LoRa node allocation model construction method according to claim 1, is characterized in that, described LoRa physical layer is carried out initialization configuration, determines the computing mode of each data amount in the model, comprises: 将LoRa监测网络中的LoRa节点随机排列得到监测阵列;Randomly arrange the LoRa nodes in the LoRa monitoring network to obtain a monitoring array; 根据所述监测阵列,配置数据包长和节点的平均发送时间间隔;According to the monitoring array, configure the average sending time interval of the data packet length and the node; 根据所述LoRa监测网络中各个节点的最低频率和最高频率,确定网络带宽;According to the lowest frequency and the highest frequency of each node in the LoRa monitoring network, determine the network bandwidth; 所述LoRa监测网络将不同信息编码在不同的开始频率上,并使用扩频因子表示每个符号中能够编码的比特的数量;The LoRa monitoring network encodes different information on different starting frequencies, and uses a spreading factor to represent the number of bits that can be encoded in each symbol; 确定所述扩频因子的开始频率种类后,编码所述扩频因子的比特信息;After determining the start frequency type of the spreading factor, encoding the bit information of the spreading factor; 根据所述扩频因子的符号速率和比特率,确定数据包的传输时间。Based on the symbol rate and the bit rate of the spreading factor, the transmission time of the data packet is determined. 3.根据权利要求1所述的LoRa节点分配模型构建方法,其特征在于,所述根据随机接入网络的特性,将节点产生的数据作为泊松分布,根据所述泊松分布和所述各个数据量的计算方式,确定传输成功率的第一数学模型,包括:3. LoRa node distribution model construction method according to claim 1, is characterized in that, described according to the characteristic of random access network, the data that node produces is as Poisson distribution, according to described Poisson distribution and described each The calculation method of the amount of data, the first mathematical model to determine the transmission success rate, including: 根据节点的数据包长度、节点数量和平均时间间隔,计算负载;Calculate the load according to the packet length of the node, the number of nodes and the average time interval; 根据数据包的传输时间以及所述负载,计算每个节点的传输成功率;Calculate the transmission success rate of each node according to the transmission time of the data packet and the load; 根据每个节点对应的扩频因子,得到选用扩频因子的每个节点的传输成功率的第一数学模型。According to the spreading factor corresponding to each node, a first mathematical model of the transmission success rate of each node with the spreading factor selected is obtained. 4.根据权利要求1所述的LoRa节点分配模型构建方法,其特征在于,所述构建输出接收功率受信号的发射功率和路径损耗的影响的第二数学模型,包括:4. LoRa node allocation model construction method according to claim 1, is characterized in that, the second mathematical model that the described construction output receiving power is affected by the transmitting power of signal and path loss, comprises: 当信号的接收功率大于接收端的灵敏度时,判定信号可以被成功接收;所述接收端的灵敏度取决于发送端的带宽和扩频因子;When the received power of the signal is greater than the sensitivity of the receiving end, it is determined that the signal can be successfully received; the sensitivity of the receiving end depends on the bandwidth and spreading factor of the sending end; 采用对数距离的路径损耗模型,确定对应的路径损耗;Use the path loss model of logarithmic distance to determine the corresponding path loss; 根据信号的发射功率和所述路径损耗,确定接收功率。The received power is determined according to the transmitted power of the signal and the path loss. 5.LoRa节点分配方法,其特征在于,包括:5. LoRa node distribution method, is characterized in that, comprises: 获取如权利要求1-4任一项所述的第三数学模型;Obtain the third mathematical model as described in any one of claims 1-4; 根据所述第三数学模型,生成目标场景下的节点分配以及节点部署方案。According to the third mathematical model, a node allocation and a node deployment scheme in a target scenario are generated. 6.LoRa节点分配模型构建装置,其特征在于,包括:6.LoRa node allocation model construction device is characterized in that, comprising: 第一模块,用于对LoRa物理层进行初始化配置,确定模型中各个数据量的计算方式;The first module is used to initialize the configuration of the LoRa physical layer and determine the calculation method of each data volume in the model; 第二模块,用于根据随机接入网络的特性,将节点产生的数据作为泊松分布,根据所述泊松分布和所述各个数据量的计算方式,确定传输成功率的第一数学模型;其中,所述随机接入网络的特性包括:节点负载、数据包的传输时间;The second module is used to use the data generated by the nodes as a Poisson distribution according to the characteristics of the random access network, and determine the first mathematical model of the transmission success rate according to the Poisson distribution and the calculation method of each data volume; Wherein, the characteristics of the random access network include: node load, transmission time of data packets; 第三模块,用于构建输出接收功率受信号的发射功率和路径损耗的影响的第二数学模型;The third module is used to construct a second mathematical model that the output received power is affected by the transmitted power of the signal and the path loss; 第四模块,用于根据所述第一数学模型和所述第二数学模型,确定兼顾低功耗与公平性的第三数学模型中的目标函数;其中,所述目标函数的表达式为:The fourth module is configured to determine an objective function in a third mathematical model that takes into account both low power consumption and fairness according to the first mathematical model and the second mathematical model; wherein, the expression of the objective function is:
Figure FDA0003905825120000021
Figure FDA0003905825120000021
其中,α表示功耗权重;Ptx,i表示选用扩频因子SFi时在保证网关接收到的情况下的最小发射功率;Ps,i表示选用扩频因子SFi的传输成功率;β表示不公平度权重;minQ代表最小化的目标函数值;Among them, α represents the weight of power consumption; P tx,i represents the minimum transmit power when the spreading factor SF i is selected to ensure the gateway receives it; P s,i represents the transmission success rate of the selected spreading factor SF i ; β Represents the weight of unfairness; minQ represents the minimized objective function value; 第五模块,用于根据所述目标函数和扩频因子,通过非线性规划方法求解所述第三数学模型。The fifth module is configured to solve the third mathematical model through a nonlinear programming method according to the objective function and the spreading factor.
7.LoRa节点分配装置,其特征在于,包括:7.LoRa node allocation device is characterized in that, comprising: 第六模块,用于获取如权利要求1-4任一项所述的第三数学模型;A sixth module, configured to obtain the third mathematical model according to any one of claims 1-4; 第七模块,用于根据所述第三数学模型,生成目标场景下的节点分配以及节点部署方案。The seventh module is configured to generate node allocation and node deployment schemes in the target scenario according to the third mathematical model. 8.一种电子设备,其特征在于,包括处理器以及存储器;8. An electronic device, comprising a processor and a memory; 所述存储器用于存储程序;The memory is used to store programs; 所述处理器执行所述程序实现如权利要求1至4或权利要求5中任一项所述的方法。The processor executes the program to implement the method according to any one of claims 1 to 4 or claim 5. 9.一种计算机可读存储介质,其特征在于,所述存储介质存储有程序,所述程序被处理器执行实现如权利要求1至4或权利要求5中任一项所述的方法。9. A computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the method according to any one of claims 1 to 4 or claim 5.
CN202210294466.1A 2022-03-24 2022-03-24 LoRa node distribution model construction method, node distribution method and device Active CN114760709B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210294466.1A CN114760709B (en) 2022-03-24 2022-03-24 LoRa node distribution model construction method, node distribution method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210294466.1A CN114760709B (en) 2022-03-24 2022-03-24 LoRa node distribution model construction method, node distribution method and device

Publications (2)

Publication Number Publication Date
CN114760709A CN114760709A (en) 2022-07-15
CN114760709B true CN114760709B (en) 2023-02-03

Family

ID=82327198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210294466.1A Active CN114760709B (en) 2022-03-24 2022-03-24 LoRa node distribution model construction method, node distribution method and device

Country Status (1)

Country Link
CN (1) CN114760709B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596921A (en) * 2021-05-31 2021-11-02 国网江苏省电力有限公司电力科学研究院 Fair adaptive data rate distribution and power control method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3530057A1 (en) * 2016-10-19 2019-08-28 Findster Technologies SA Method for providing a low-power wide area network and network node device thereof
TWI659659B (en) * 2017-09-06 2019-05-11 國立臺灣大學 Vehicle information and environment monitoring compound vehicle system and data processing and transmission method therein
CN109526012A (en) * 2019-01-24 2019-03-26 重庆邮电大学 A kind of LoRaWAN network spreading factor distribution method based on reliability
US10790871B1 (en) * 2019-09-18 2020-09-29 Kabushiki Kaisha Toshiba Collision aware radio resource allocation
CN110691343A (en) * 2019-10-10 2020-01-14 西北大学 Fingerprint database establishment and anti-interference data transmission method based on LoRa node perception
CN111541508B (en) * 2020-04-21 2021-07-27 中山大学 LoRaWAN spreading factor allocation method based on short-term DER and optimal load

Also Published As

Publication number Publication date
CN114760709A (en) 2022-07-15

Similar Documents

Publication Publication Date Title
Bankov et al. On the limits of LoRaWAN channel access
KR101022054B1 (en) Adaptive communication environment setting method and device for underwater sensor network
Correia et al. Transmission power control techniques for wireless sensor networks
Adi et al. Performance evaluation of E32 long range radio frequency 915 MHz based on internet of things and micro sensors data
Banerjee et al. Comparative study of radio models for data gathering in wireless sensor network
US10602328B2 (en) Rotating clusterhead wireless network for pipeline monitoring
CN108924788A (en) Energy consumption balance method in wireless ultraviolet light cooperation unmanned plane formation network
CN109618383B (en) Robust opportunistic routing protocol for ambient backscatter wireless sensor networks
JP2023553769A (en) Passively powered IoT devices
Hussaini et al. Enhanced clustering routing protocol for power-efficient gathering in wireless sensor network
CN114760709B (en) LoRa node distribution model construction method, node distribution method and device
Sharawi et al. WSN's energy-aware coverage preserving optimization model based on multi-objective bat algorithm
CN112738849A (en) Load balancing control method applied to backscatter wireless network in multi-hop environment
CN112564778B (en) Tag selection mechanism with optimal privacy outage probability in backscatter communication system
Patil et al. Stochastic modeling of depth based routing in underwater sensor networks
de Souza et al. Code rate optimization for energy efficient delay constrained underwater acoustic communications
CN112671456A (en) Optimal label selection method in backscattering communication
Mehta Recursive quadratic programming for constrained nonlinear optimization of session throughput in multiple‐flow network topologies
Geethu et al. Improving energy efficiency performance of ALOHA based underwater acoustic sensor networks
CN115987833A (en) A performance evaluation method, device, equipment and medium of an underwater acoustic sensor network
CN106304306B (en) A Resource Management Method for Hybrid Multiple Access in Heterogeneous Networks
Spyrou et al. Approximating nash equilibrium uniqueness of power control in practical wsns
Li et al. Robust joint resource allocation algorithm for hierarchical underwater acoustic communication networks based on outage probability minimization
He et al. An energy efficient adaptive HELLO algorithm for mobile ad hoc networks
KR101654734B1 (en) Method for modelling information transmission network having hierarchy structure and apparatus thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant