Transmission resource allocation method, system and device of wireless body area network and storage medium
By calculating the overall priority and energy consumption status of sensor nodes, transmission resources are dynamically allocated, solving the problem of unreasonable resource allocation in wireless body area networks and achieving efficient data transmission and network stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-23
- Publication Date
- 2026-03-17
AI Technical Summary
Existing wireless body area network resource allocation methods fail to effectively consider dynamic changes in network topology, node energy status, and data accumulation levels, resulting in unreasonable resource allocation and difficulty in achieving efficient and stable data transmission.
By calculating the overall priority of sensor nodes, dynamically allocating transmission resources, adjusting transmission power based on energy consumption status, and optimizing time slot allocation parameters, we can ensure that critical data is transmitted first and extend node lifespan.
It improves resource utilization and network stability, ensures timely transmission of critical data and smooth network transition, and extends the lifespan of sensor nodes.
Smart Images

Figure CN120264436B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of wireless communication technology, specifically relating to a method, system, device, and storage medium for allocating transmission resources in a wireless body area network. Background Technology
[0002] A Wireless Body Area Network (WBAN) is a wireless network used for human health monitoring, medical diagnosis, and mobile healthcare. Its devices typically include wearable sensors, mobile terminals, and base stations.
[0003] Most existing wireless body area network (WBN) resource allocation methods adopt static or semi-static approaches, failing to fully consider factors such as dynamic changes in network topology, node energy status, and data accumulation, making it difficult to achieve reasonable resource allocation in practical applications. Summary of the Invention
[0004] The purpose of this invention is to provide a method, system, device, and storage medium for allocating transmission resources in a wireless body area network, which can realize dynamic allocation of transmission resources, improve resource utilization, and enhance network stability.
[0005] The first aspect of this invention provides a method for allocating transmission resources in a wireless body area network, comprising:
[0006] Select a communication channel;
[0007] The system establishes a communication connection with the sensor nodes through the communication channel and receives the node status reported by each sensor node. The node status includes: data type, urgency level, buffer status, and data requirement.
[0008] The overall priority of each sensor node is calculated based on the data type, urgency level, and buffer status.
[0009] The number of time slots for each sensor node is calculated based on the overall priority and data demand of each sensor node.
[0010] The time slot allocation parameters for each sensor node are determined based on the number of time slots.
[0011] In some embodiments, selecting a communication channel includes:
[0012] Iterate through all channels and obtain the signal strength of each channel;
[0013] At least one idle channel is selected based on the signal strength, and the idle channel and location information are reported to the base station. The base station is used to issue a channel allocation command based on the idle channel and location information reported by all body area networks.
[0014] Receive the channel allocation instruction and select a communication channel from the idle channels according to the channel allocation instruction.
[0015] In some embodiments, calculating the overall priority of each sensor node based on the data type, urgency level, and buffer status includes:
[0016] The type priority is determined based on the data type, the urgency priority is determined based on the urgency level, and the buffer priority is determined based on the buffer state.
[0017] The overall priority of each sensor node is calculated according to the priority calculation formula, which is:
[0018]
[0019] Wherein, P i This represents the overall priority of the i-th sensor node. This indicates the type priority of the i-th sensor node. This indicates the emergency priority of the i-th sensor node. α represents the buffer priority of the i-th sensor node, α represents the first weight coefficient, β represents the second weight coefficient, and γ represents the third weight coefficient.
[0020] In some embodiments, calculating the number of time slots for each sensor node based on the overall priority and data demand of each sensor node includes:
[0021] Substituting the overall priority and data requirement of each sensor node into the resource calculation formula, the number of time slots for each sensor node is calculated. The resource calculation formula is as follows:
[0022]
[0023] Wherein, the S i S represents the number of time slots allocated to the i-th sensor node. a P represents the total number of available time slots. i D represents the overall priority of the i-th sensor node. i This represents the data requirement of the i-th sensor node, and N represents the total number of sensor nodes.
[0024] In some embodiments, after determining the time slot allocation parameters for each sensor node based on the number of time slots, the method further includes:
[0025] Based on the time slot allocation parameters of each sensor node, calculate the energy consumption status of each sensor node;
[0026] The sensor node to be adjusted is selected based on the energy consumption status of each sensor node, and the transmission power of the sensor node to be adjusted is adjusted based on the energy consumption status of the sensor node to be adjusted.
[0027] In some embodiments, calculating the energy consumption state of each sensor node based on the time slot allocation parameters of each sensor node includes:
[0028] Calculate the energy consumption of each sensor node in a single time slot during data transmission, data reception, idle listening, and sleep states;
[0029] The number of transmit time slots, receive time slots, listen time slots, and sleep time slots of each sensor node are counted.
[0030] Based on the number of transmit time slots and their corresponding single time slot energy consumption, the number of receive time slots and their corresponding single time slot energy consumption, the number of listen time slots and their corresponding single time slot energy consumption, and the number of sleep time slots and their corresponding single time slot energy consumption, the periodic energy consumption of each sensor node is calculated.
[0031] The energy consumed by each sensor node is calculated based on the periodic energy consumption and the number of cycles.
[0032] Calculate the proportion of energy consumed by each sensor node relative to the initial energy to obtain the energy consumption status of each sensor node.
[0033] In some embodiments, selecting the sensor node to be adjusted based on the energy consumption state of each of the sensor nodes, and adjusting the transmission power of the sensor node to be adjusted based on the energy consumption state of the sensor node to be adjusted, includes:
[0034] Select sensor nodes whose energy consumption state is greater than the energy consumption threshold as sensor nodes to be adjusted;
[0035] Substitute the energy consumption state of the sensor node to be adjusted into the transmission power calculation formula to calculate the transmission power of the sensor node to be adjusted.
[0036] The formula for calculating the transmission power is:
[0037]
[0038] Among them, the E represents the transmit power of the i-th sensor node. th E represents the preset energy consumption threshold. i Q represents the energy consumption state of the i-th sensor node. max This indicates the maximum allowable power of the sensor node.
[0039] A second aspect of the present invention provides a transmission resource allocation system for a wireless body area network, comprising:
[0040] The channel selection module is used to select the communication channel;
[0041] The communication connection module is used to establish a communication connection with the sensor nodes through the communication channel and receive the node status reported by each sensor node, wherein the node status includes: data type, urgency level, buffer status and data demand.
[0042] The priority calculation module is used to calculate the overall priority of each sensor node based on the data type, urgency level, and buffer status.
[0043] The time slot calculation module is used to calculate the number of time slots for each sensor node based on the overall priority and data demand of each sensor node.
[0044] The time slot allocation module is used to determine the time slot allocation parameters for each sensor node based on the number of time slots.
[0045] A third aspect of the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described above.
[0046] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method described above.
[0047] The technical solution provided by this invention has the following advantages and effects: by calculating the comprehensive priority of sensor nodes, transmission resources can be dynamically allocated, significantly improving the resource utilization rate of the body area network; by adjusting the transmission power of sensor nodes according to their energy consumption status, the transmission power can be reduced smoothly, allowing the network to gradually adapt to the attenuation of node capabilities and improving network stability. Attached Figure Description
[0048] Figure 1 This is a flowchart illustrating the transmission resource allocation method for wireless body area networks provided by the present invention.
[0049] Figure 2 This is a schematic diagram of the topology of the wireless body area network provided by the present invention;
[0050] Figure 3 This is a schematic diagram illustrating the relationship between energy consumption state and transmission power provided by the present invention;
[0051] Figure 4 This is a structural block diagram of the wireless body area network transmission resource allocation system provided by the present invention;
[0052] Figure 5 This is an internal structural diagram of a computer device provided in an embodiment of the present invention. Detailed Implementation
[0053] To facilitate understanding of the present invention, specific embodiments of the present invention will be described in more detail below with reference to the accompanying drawings.
[0054] Unless otherwise specified or defined, the terms "first," "second," etc., used in this document are for distinguishing names only and do not represent a specific number or order.
[0055] Unless otherwise stated or defined, the term “and / or” as used herein includes any and all combinations of one or more of the associated listed items.
[0056] It should be noted that in this article, "fixed to" or "connected to" can mean directly fixed to or connected to a component, or indirectly fixed to or connected to a component.
[0057] like Figure 1 and Figure 2 As shown, this embodiment provides a method for allocating transmission resources in a wireless body area network, including the following steps S1 to S5:
[0058] Step S1: Select a communication channel.
[0059] In practical applications, wireless body area networks (WBANs) typically refer to sensor networks deployed around or inside the human body to monitor physiological data such as heart rate, body temperature, and activity levels. A WBAN includes a hub node and several sensor nodes. The hub node can be a mobile terminal. After deploying the sensor nodes and hub node, channel allocation is performed on the body area network to prevent communication interference and provide channel resources for subsequent sensor node additions and communication.
[0060] Specifically, the selection of the communication channel includes:
[0061] Iterate through all channels and obtain the signal strength of each channel;
[0062] At least one idle channel is selected based on the signal strength, and the idle channel and location information are reported to the base station. The base station is used to issue a channel allocation command based on the idle channel and location information reported by all body area networks.
[0063] Receive the channel allocation instruction and allocate channels to the body area network according to the channel allocation instruction.
[0064] In practical applications, multiple body area networks (VNAs) may exist in places such as gyms and libraries. To avoid communication interference between multiple VNAs, the aggregation node can first traverse all channels within its communication range, then obtain the signal strength of each channel, and designate channels with signal strength below a threshold as idle channels. The idle channels and location information are then reported to the base station. The base station, combining the idle channels and location information reported by all VNAs, issues a channel allocation command. Specifically, based on location information, VNAs are divided into adjacent and non-adjacent networks. Different idle channels are used between adjacent networks, while non-adjacent networks can use the same idle channel. Upon receiving the channel allocation command, the aggregation node selects the corresponding channel from the idle channels as the communication channel, effectively reducing inter-network interference, improving spectrum utilization, and thus enhancing the overall network communication quality. This application also dynamically adjusts channel allocation by periodically detecting topology changes in the VNAs, ensuring that adjacent networks use different channels.
[0065] Step S2: Establish a communication connection with the sensor nodes through the communication channel and receive the node status reported by each sensor node. The node status includes: data type, urgency level, buffer status, and data demand.
[0066] In practical applications, beacon frames are transmitted on the communication channel to establish communication connections with sensor nodes. Specifically, the aggregation node periodically broadcasts beacon frames on a selected communication channel. These beacon frames contain network synchronization information, providing a basis for subsequent sensor node access. After starting up, the sensor nodes scan preset or possible channels to detect the aggregation node's beacon frames. Upon discovering a beacon, the sensor node establishes a communication connection with the aggregation node through an association process and then receives node status reports from each sensor node.
[0067] Step S3: Calculate the overall priority of each sensor node based on the data type, urgency level, and buffer status.
[0068] In practical applications, by calculating comprehensive priorities, the allocation of transmission resources becomes more reasonable and flexible. It can be dynamically adjusted according to the type of data, urgency, and node buffer status to ensure that critical data is transmitted first, thereby improving the real-time performance and reliability of data transmission.
[0069] Specifically, determining the type priority based on the data type includes:
[0070] The type priority is defined in advance, resulting in the type definition formula:
[0071]
[0072] Here, "type" represents the data type; non-critical data can be ordinary activity monitoring data, secondary data can be environmental monitoring data, medium data can be basic physiological data, important data can be critical physiological data, and emergency data can be emergency medical event data. In practical applications, each sensor node collects different data. The data type of the sensor node's uploaded data can be predefined according to the sensor's function. For example, data collected by the heart rate sensor can be defined as important data with a priority of 0.8, data collected by the temperature sensor as medium data with a priority of 0.6, data collected by the humidity sensor as secondary data with a priority of 0.4, and data collected by the accelerometer as non-critical data with a priority of 0.2. When data collected by medical sensors such as the heart rate sensor is abnormal, the data type priority of the medical sensors such as the heart rate sensor at this time is defined as emergency data with a priority of 1, thereby ensuring the priority transmission of critical data.
[0073] The type priority is selected from the type definition formula based on the type of the data type.
[0074] The step of determining the emergency priority based on the degree of urgency includes:
[0075] The emergency priority is defined in advance, resulting in the emergency definition formula:
[0076]
[0077] Here, "urgency" represents the type of urgency. When the data collected by the sensor is normal, the urgency of the sensor node is defined as normal, with a priority of 0.2. When the data collected by the sensor exceeds a preset threshold, the urgency of the sensor node is defined as slightly abnormal, with a priority of 0.4, such as a heart rate sensor collecting a heart rate higher than the normal range. When the data collected by the sensor set continuously exceeds a preset threshold within a preset time, the urgency of the sensor node is defined as moderately abnormal, with a priority of 0.6, such as a heart rate sensor collecting a heart rate continuously higher than the normal range within a preset time. When the data collected by the sensor reaches a preset abnormal condition, the urgency of the sensor node is defined as highly abnormal, with a priority of 0.8, such as a heart rate sensor detecting arrhythmia. When the data collected by the sensor reaches a preset emergency condition, the urgency of the sensor node is defined as an emergency abnormality, with a priority of 1, such as a heart rate sensor detecting cardiac arrest. By prioritizing the urgency of the data, the more urgent the data, the higher the priority, ensuring priority transmission of critical and urgent data.
[0078] The urgency priority is selected from the urgency definition formula based on the type of urgency.
[0079] Determining the buffer priority based on the buffer state includes:
[0080] The buffer priority is defined in advance, resulting in the buffer definition formula:
[0081]
[0082] Wherein, buffer represents the type of buffer state;
[0083] The buffer priority is selected from the buffer definition formula based on the type of the buffer state.
[0084] In practical applications, a critical threshold is pre-set to determine whether the buffer status of the sensor node has reached the critical threshold. If the buffer status reaches the critical threshold, it means that the buffer is about to fill up and data needs to be transmitted first. If the buffer has not reached the critical threshold, it means that the buffer can still store data, and data is transmitted normally. By setting the buffer priority, the risk of buffer overflow and data transmission errors are reduced.
[0085] Specifically, the step of calculating the comprehensive priority of each sensor node based on the data type, urgency level, and buffer status includes:
[0086] The type priority is determined based on the data type, the urgency priority is determined based on the urgency level, and the buffer priority is determined based on the buffer state.
[0087] The overall priority of each sensor node is calculated according to the priority calculation formula, which is:
[0088]
[0089] Wherein, P i This represents the overall priority of the i-th sensor node. This indicates the type priority of the i-th sensor node. This indicates the emergency priority of the i-th sensor node. α represents the buffer priority of the i-th sensor node, α represents the first weight coefficient, β represents the second weight coefficient, and γ represents the third weight coefficient.
[0090] In practical applications, the overall priority of sensor nodes is calculated by weighting type priority, emergency priority, and buffer priority based on a first weighting coefficient, a second weighting coefficient, and a third weighting coefficient. In this application, the first weighting coefficient is 0.5, the second weighting coefficient is 0.3, and the third weighting coefficient is 0.2. The first, second, and third weighting coefficients can be adjusted according to actual conditions to balance the influence of various factors.
[0091] Step S4: Calculate the number of time slots for each sensor node based on the overall priority and data demand of each sensor node.
[0092] In practical applications, the aggregation node allocates transmission resources based on the data reported by the sensor nodes. When allocating time slots, if the total number of available time slots meets the time slot requirements of all sensor nodes, time slots are allocated according to the time slot requirements of the sensor nodes. If the total number of available time slots does not meet the time slot requirements of all sensor nodes, time slots are allocated according to the overall priority of the sensor nodes.
[0093] Specifically, calculating the number of time slots for each sensor node based on its overall priority and data demand includes:
[0094] Substituting the overall priority and data requirement of each sensor node into the resource calculation formula, the number of time slots for each sensor node is calculated. The resource calculation formula is as follows:
[0095]
[0096] Wherein, the S i S represents the number of time slots allocated to the i-th sensor node. a P represents the total number of available time slots. i D represents the overall priority of the i-th sensor node. i This represents the data requirement of the i-th sensor node, and N represents the total number of sensor nodes.
[0097] In practical applications, the data requirement is the expected data volume to be transmitted, measured in KB. More resources (such as the number of time slots) are dynamically allocated to sensor nodes with high overall priority, while fewer resources are allocated to sensor nodes with low overall priority (such as daily body temperature), avoiding resource idleness or over-occupancy. For example, in motion monitoring, 30% of time slots are allocated to high-frequency accelerometer data, and 10% to low-frequency ambient temperature and humidity sensors. Sensor nodes with low overall priority (such as periodically reporting body temperature sensors) can reduce their activation frequency or enter deep sleep mode, significantly reducing energy consumption and extending battery life. For instance, body temperature sensors only wake up in allocated time slots and shut down their RF modules at other times. By adjusting the allocation of transmission resources, time slots can be allocated reasonably according to the priority of sensor nodes and data requirements, ensuring fair allocation of transmission resources, improving resource utilization, and guaranteeing efficient and timely data transmission.
[0098] Step S5: Determine the time slot allocation parameters for each sensor node based on the number of time slots.
[0099] In practical applications, the network scheduling period, total number of time slots, and single time slot duration are predetermined. The scheduling period is the total duration of repeated network scheduling; the total number of time slots is the total number of available time slots within a period; and the single time slot duration is the length of each time slot. After calculating the number of time slots for each sensor node, the product of the single time slot duration and the number of time slots for each sensor node is calculated to obtain the time slot duration for each sensor node within the period, which determines the time slot allocation parameters for each sensor node.
[0100] Specifically, after determining the time slot allocation parameters for each sensor node based on the number of time slots, the method further includes:
[0101] Based on the time slot allocation parameters of each sensor node, calculate the energy consumption status of each sensor node;
[0102] The sensor node to be adjusted is selected based on the energy consumption status of each sensor node, and the transmission power of the sensor node to be adjusted is adjusted based on the energy consumption status of the sensor node to be adjusted.
[0103] In practical applications, changes in the overall priority of sensor nodes lead to variations in the time slot allocation parameters assigned to them, resulting in different energy consumption levels within a cycle. Therefore, it is necessary to dynamically calculate the energy consumption status of sensor nodes based on the time slot allocation parameters. This facilitates real-time response to network changes, balancing performance and energy consumption. For sensor nodes requiring adjustment—those with lower energy consumption—their transmit power can be appropriately reduced to extend their lifespan and achieve energy-saving optimization. This energy-saving optimization strategy effectively reduces the energy consumption of sensor nodes, extends their lifespan, and thus improves the stability and sustainability of the entire network while ensuring unaffected data transmission quality.
[0104] In practical applications, if a sensor node continues to transmit data at high power before its energy is depleted, it may suddenly crash, causing drastic changes in the network topology. This application addresses this by reducing the transmission power in advance to facilitate a smooth transition, allowing the network to gradually adapt to the decline in node capabilities and improving network stability. It dynamically calculates the energy consumption of a single time slot for a sensor node in data transmission, data reception, idle listening, and sleep states by combining hardware parameters, protocol behavior, and service load. The initial energy of the sensor node, i.e., its corresponding battery capacity, is used to calculate the proportion of energy consumed relative to the initial energy, thus obtaining the energy consumption status of the sensor node.
[0105] Specifically, selecting the sensor node to be adjusted based on the energy consumption state of each of the sensor nodes, and adjusting the transmission power of the sensor node to be adjusted based on the energy consumption state of the sensor node to be adjusted, includes:
[0106] Select sensor nodes whose energy consumption state is greater than the energy consumption threshold as sensor nodes to be adjusted;
[0107] Substitute the energy consumption state of the sensor node to be adjusted into the transmission power calculation formula to calculate the transmission power of the sensor node to be adjusted.
[0108] The formula for calculating the transmission power is:
[0109]
[0110] Among them, the E represents the transmit power of the i-th sensor node. th E represents the preset energy consumption threshold. i Q represents the energy consumption state of the i-th sensor node. max This indicates the maximum allowable power of the sensor node.
[0111] In practical applications, the energy consumption status is compared with the energy consumption threshold. If the energy consumption status of a sensor node exceeds the energy consumption threshold, that sensor node is designated as the sensor node to be adjusted. For example... Figure 3 As shown, the energy consumption threshold can be set to 0.3. When the energy consumption threshold is 0.3, it means that when the energy consumed by the sensor node is higher than 30% of the initial energy, the transmission power is adjusted. This achieves the adjustment of the transmission power of the sensor node to be adjusted and extends the service life of the sensor node to be adjusted.
[0112] In practical applications, if a wireless body area network consists of a sink node and eight sensor nodes, at time A, each sensor node has different type priorities, urgent priorities, buffer priorities, data requirements, and energy consumption states, as shown in Table 1:
[0113] Table 1 Node Information Table
[0114]
[0115]
[0116] Assuming a total available time slot count of 1000, a first weighting factor of 0.5, a second weighting factor of 0.3, a third weighting factor of 0.2, and a maximum allowable power of 100mV, resource allocation adjustments are calculated accordingly:
[0117] First, calculate the overall priority for each sensor node:
[0118] P1=0.5×0.6+0.3×0.4+0.2×0=0.42
[0119] P2=0.5×0.8+0.3×0.6+0.2×1=0.78
[0120] P3=0.5×0.4+0.3×0.2+0.2×0=0.26
[0121] P4=0.5×0.2+0.3×0.2+0.2×0=0.16
[0122] P5=0.5×0.6+0.3×0.4+0.2×0=0.42
[0123] P6=0.5×0.8+0.3×0.8+0.2×1=0.84
[0124] P7=0.5×0.4+0.3×0.4+0.2×0=0.32
[0125] P8=0.5×0.2+0.3×0.2+0.2×1=0.36
[0126] Then, calculate the total weight of the overall priority and data requirement:
[0127]
[0128] Then, calculate the number of time slots allocated to each sensor node:
[0129]
[0130]
[0131] The number of time slots allocated to each sensor node is obtained.
[0132] Based on the energy state of each sensor node, it can be determined that, except for the 6th sensor node, the remaining sensors are sensors to be tuned. Then, the transmit power of the sensor nodes to be tuned is calculated:
[0133]
[0134] For the sixth sensor node, its energy state is not higher than the energy consumption threshold; therefore, the sixth sensor node transmits data at the maximum permissible power. Through energy-saving optimization, the transmission power of the sensor node under test is reduced, extending its lifespan.
[0135] The wireless body area network transmission resource allocation method of the present invention can dynamically allocate transmission resources by calculating the comprehensive priority of sensor nodes, which significantly improves the resource utilization of the body area network; by adjusting the transmission power of sensor nodes according to the energy consumption status of sensor nodes, the transmission power can be reduced smoothly, allowing the network to gradually adapt to the decay of node capabilities and improve network stability.
[0136] like Figure 4 As shown, this embodiment of the invention also provides a transmission resource allocation system for a wireless body area network, including:
[0137] Channel selection module 10 is used to select a communication channel;
[0138] The communication connection module 20 is used to establish a communication connection with the sensor nodes through the communication channel and receive the node status reported by each sensor node, wherein the node status includes: data type, urgency level, buffer status and data demand.
[0139] The priority calculation module 30 is used to calculate the comprehensive priority of each sensor node based on the data type, urgency level and buffer status.
[0140] The time slot calculation module 40 is used to calculate the number of time slots for each sensor node based on the overall priority and data demand of each sensor node.
[0141] The time slot allocation module 50 is used to determine the time slot allocation parameters for each sensor node based on the number of time slots.
[0142] The various modules of the aforementioned wireless body area network transmission resource allocation system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules and units can be embedded in hardware within or independently of the processor in a computer device, or stored in software within the memory of the computer device, so that the processor can invoke and execute the corresponding operations of each module.
[0143] like Figure 5 As shown, an embodiment of the present invention discloses a computer device, including a memory and a processor, wherein the memory stores a computer program;
[0144] The computer device can be a server, and its internal structure diagram can be as follows: Figure 5As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements the wireless body area network transmission resource allocation method described in the above embodiments.
[0145] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0146] This invention also discloses a computer-readable storage medium storing a computer program that causes a computer to execute the wireless body area network transmission resource allocation method described in the above embodiments.
[0147] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0148] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
Claims
1. A method for allocating transmission resources in a wireless body area network, characterized in that, The method comprises the following steps: selecting a communication channel; establishing a communication connection with the sensor nodes through the communication channel, and receiving the node states reported by each sensor node, wherein the node states comprise data type, emergency level, buffer state and data demand; calculating the comprehensive priority of each sensor node according to the data type, emergency level and buffer state; calculating the time slot quantity of each sensor node according to the comprehensive priority and data demand of each sensor node; determining the time slot allocation parameters of each sensor node according to the time slot quantity; after determining the time slot allocation parameters of each sensor node according to the time slot quantity, the method further comprises the following steps: calculating the energy consumption state of each sensor node according to the time slot allocation parameters of each sensor node; selecting a sensor node to be adjusted according to the energy consumption state of each sensor node, and adjusting the transmission power of the sensor node to be adjusted according to the energy consumption state of the sensor node to be adjusted; the step of selecting a sensor node to be adjusted according to the energy consumption state of each sensor node, and adjusting the transmission power of the sensor node to be adjusted according to the energy consumption state of the sensor node to be adjusted comprises the following steps: selecting a sensor node whose energy consumption state is greater than an energy consumption threshold as the sensor node to be adjusted; substituting the energy consumption state of the sensor node to be adjusted into a transmission power calculation formula to calculate the transmission power of the sensor node to be adjusted; the transmission power calculation formula is: Wherein, the represents the transmission power of the i-th sensor node, E th represents the preset energy consumption threshold, E i represents the energy consumption state of the i-th sensor node, Q max represents the maximum allowable power of the sensor node. 2.The method of claim 1, wherein, the step of selecting a communication channel comprises the following steps: traversing all channels to obtain the signal strength of each channel; selecting at least one idle channel according to the signal strength, and reporting the idle channel and position information to a base station, wherein the base station is used to issue a channel allocation instruction according to the idle channels and position information reported by all body area networks; receiving the channel allocation instruction, and selecting a communication channel from the idle channels according to the channel allocation instruction.
3. The method of claim 1, wherein the transmission resource allocation is performed in a wireless body area network (WBAN) including a plurality of WBAN nodes, and the WBAN nodes are classified into a plurality of clusters, and the transmission resource allocation is performed for each cluster. the step of calculating the comprehensive priority of each sensor node according to the data type, emergency level and buffer state comprises the following steps: determining a type priority according to the data type, determining an emergency priority according to the emergency level, and determining a buffer priority according to the buffer state; calculating the comprehensive priority of each sensor node according to a priority calculation formula, wherein the priority calculation formula is: Wherein, the P i P i represents the comprehensive priority of the i th sensor node i type P i represents the type priority of the i th sensor node i urgency P i represents the emergency priority of the i th sensor node i buffer P i represents the buffer priority of the i th sensor node, α represents the first weight coefficient, β represents the second weight coefficient, and γ represents the third weight coefficient.
4. The method of claim 1, wherein the transmission resource allocation is performed in a wireless body area network (WBAN) including a plurality of WBAN nodes, and the WBAN nodes are classified into a plurality of clusters, and the transmission resource allocation is performed for each cluster. the step of calculating the time slot quantity of each sensor node according to the comprehensive priority and data demand of each sensor node comprises the following steps: substituting the comprehensive priority and data demand of each sensor node into a resource calculation formula to calculate the time slot quantity of each sensor node, wherein the resource calculation formula is: Wherein, the S i Indicates the number of time slots allocated by the i-th sensor node, S a Indicates the total number of available time slots, P i Indicates the comprehensive priority of the i-th sensor node, D i Indicates the data demand of the i-th sensor node, N indicates the total number of sensor nodes.
5. The method of claim 1, wherein the transmission resource allocation is performed in a wireless body area network (WBAN) including a plurality of WBAN nodes, and the WBAN nodes are classified into a plurality of clusters, and the transmission resource allocation is performed for each cluster. the step of calculating the energy consumption state of each sensor node according to the time slot allocation parameters of each sensor node comprises the following steps: calculating the single time slot energy consumption of each sensor node in the states of sending data, receiving data, idle listening and hibernation; counting the sending time slot quantity, receiving time slot quantity, listening time slot quantity and hibernation time slot quantity of each sensor node; According to the sending time slot quantity, the corresponding single time slot energy consumption, the receiving time slot quantity, the corresponding single time slot energy consumption, the monitoring time slot quantity, the corresponding single time slot energy consumption and the sleep time slot quantity, the corresponding single time slot energy consumption, the periodic energy consumption of each sensor node is calculated; According to the periodic energy consumption of each sensor node and the period, the consumed energy of each sensor node is calculated; The proportion of the consumed energy of each sensor node to the initial energy is calculated to obtain the energy consumption state of each sensor node.
6. A transmission resource allocation system for a wireless body area network, characterized by It comprises: A channel selection module for selecting a communication channel; A communication connection module for establishing a communication connection with a sensor node through the communication channel and receiving a node state reported by each sensor node, wherein the node state comprises: data type, urgency, buffer state and data demand; A priority calculation module for calculating the comprehensive priority of each sensor node according to the data type, urgency and buffer state; A time slot calculation module for calculating the time slot quantity of each sensor node according to the comprehensive priority of each sensor node and the data demand; A time slot allocation module for determining the time slot allocation parameters of each sensor node according to the time slot quantity; After determining the time slot allocation parameters of each sensor node according to the time slot quantity, it further comprises: According to the time slot allocation parameters of each sensor node, the energy consumption state of each sensor node is calculated; According to the energy consumption state of each sensor node, a sensor node to be adjusted is selected, and the transmission power of the sensor node to be adjusted is adjusted according to the energy consumption state of the sensor node to be adjusted; According to the energy consumption state of each sensor node, a sensor node to be adjusted is selected, and the transmission power of the sensor node to be adjusted is adjusted according to the energy consumption state of the sensor node to be adjusted, comprising: Selecting a sensor node with an energy consumption state greater than an energy consumption threshold as a sensor node to be adjusted; Substituting the energy consumption state of the sensor node to be adjusted into a transmission power calculation formula to calculate the transmission power of the sensor node to be adjusted; The transmission power calculation formula is: Wherein, the represents the transmission power of the i-th sensor node, E th represents the preset energy consumption threshold, E i represents the energy consumption state of the i-th sensor node, Q max represents the maximum allowable power of the sensor node.
7. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to realize the steps of the method of any one of claims 1-5.
8. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the method of any one of claims 1-5.
Citation Information
Patent Citations
Wireless body area network resource allocation method and device based on hybrid access mechanism
CN114828278A
Underwater sensor network cross-layer topology method based on potential game
CN116390046A