Transmission resource allocation method, system and device for wireless body area network, and storage medium
By dynamically allocating the transmission resources of the wireless body domain network, calculating the comprehensive priority of the sensor nodes and adjusting the transmission power, the problem of unreasonable resource allocation in the prior art is solved, and resource utilization and network stability are improved.
Patent Information
- Application Number
- CN202510517057.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-23
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2045-04-23
AI Technical Summary
The existing wireless domain network resource allocation method fails to effectively consider the dynamic changes in the network topology structure, the energy state of the node and the degree of data accumulation, resulting in unreasonable resource allocation.
By selecting the communication channel, receiving the node status of the sensor node, calculating the comprehensive priority, and dynamically allocating the time slot resources according to the priority and data demand, adjusting the transmission power of the sensor node to optimize energy consumption.
Improve resource utilization and network stability, ensure priority transmission of critical data, and extend the service life of sensor nodes.
Smart Images

Figure CN120264436A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of wireless communication, and particularly relates to a method, system, device and storage medium for allocating transmission resources in a wireless body area network. Background Art
[0002] A wireless body area network (WBAN) is a wireless network used for human health monitoring, medical diagnosis and mobile healthcare, and its devices usually include wearable sensors, mobile terminals and base stations.
[0003] Most of the existing resource allocation methods for wireless body area networks adopt static or semi-static methods, and do not fully consider factors such as the dynamic changes of the network topology, the energy state of nodes, and the degree of data accumulation, resulting in difficult to achieve reasonable resource allocation in practical applications. Summary of the Invention
[0004] The purpose of the present invention is to provide a method, system, device and storage medium for allocating transmission resources in a wireless body area network, which can dynamically allocate transmission resources and improve resource utilization and network stability.
[0005] The first aspect of the present invention provides a method for allocating transmission resources in a wireless body area network, including:
[0006] Select a communication channel;
[0007] Establish a communication connection with the sensor nodes through the communication channel, and receive the node status reported by each sensor node, where the node status includes: data type, urgency level, buffer status and data demand;
[0008] Calculate the comprehensive priority of each sensor node according to the data type, urgency level and buffer status;
[0009] Calculate the time slot number of each sensor node according to the comprehensive priority and data demand of each sensor node;
[0010] Determine the time slot allocation parameters of each sensor node according to the time slot number.
[0011] In some embodiments, the selecting a communication channel includes:
[0012] Traverse all channels to obtain the signal strength of each channel;
[0013] Select at least one idle channel according to the signal strength, and report the idle channel and location information to the base station, where the base station is used to issue a channel allocation instruction according to the idle channels 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 comprehensive priority of each sensor node according to the data type, urgency level, and buffer status includes:
[0016] Determine the type priority according to the data type, determine the urgency priority according to the urgency level, and determine the buffer priority according to the buffer status;
[0017] Calculate the comprehensive priority of each sensor node according to the priority calculation formula, and the priority calculation formula is:
[0018]
[0019] Wherein, the P i represents the comprehensive priority of the i-th sensor node, represents the type priority of the i-th sensor node, represents the urgency 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 of each sensor node according to the comprehensive priority and data demand of each sensor node includes:
[0021] Substitute the comprehensive priority and data demand of each sensor node into the resource calculation formula to calculate the number of time slots of each sensor node, and the resource calculation formula is:
[0022]
[0023] Wherein, the S i represents the number of time slots allocated to the i-th sensor node, S a represents the total number of available time slots, P i represents the comprehensive priority of the i-th sensor node, D i represents the data demand 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 of each sensor node according to the number of time slots, it further includes:
[0025] Calculate the energy consumption status of each sensor node according to the time slot allocation parameters of each sensor node;
[0026] Select the sensor nodes to be adjusted according to the energy consumption status of each of the sensor nodes, and adjust the transmission power of the sensor nodes to be adjusted according to the energy consumption status of the sensor nodes to be adjusted.
[0027] In some embodiments, calculating the energy consumption status of each of the sensor nodes according to the time slot allocation parameters of each of the sensor nodes includes:
[0028] Calculate the energy consumption per single time slot of each of the sensor nodes in the states of sending data, receiving data, idle listening, and sleeping;
[0029] Count the number of sending time slots, the number of receiving time slots, the number of listening time slots, and the number of sleeping time slots of each of the sensor nodes;
[0030] Calculate the periodic energy consumption of each of the sensor nodes according to the number of sending time slots and the corresponding energy consumption per single time slot, the number of receiving time slots and the corresponding energy consumption per single time slot, the number of listening time slots and the corresponding energy consumption per single time slot, and the number of sleeping time slots and the corresponding energy consumption per single time slot;
[0031] Calculate the consumed energy of each of the sensor nodes according to the periodic energy consumption and the number of periods of each of the sensor nodes;
[0032] Calculate the ratio of the consumed energy of each of the sensor nodes to the initial energy to obtain the energy consumption status of each of the sensor nodes.
[0033] In some embodiments, selecting the sensor nodes to be adjusted according to the energy consumption status of each of the sensor nodes, and adjusting the transmission power of the sensor nodes to be adjusted according to the energy consumption status of the sensor nodes to be adjusted includes:
[0034] Select the sensor nodes with the energy consumption status greater than the energy consumption threshold as the sensor nodes to be adjusted;
[0035] Substitute the energy consumption status of the sensor nodes to be adjusted into the transmission power calculation formula to calculate the transmission power of the sensor nodes to be adjusted;
[0036] The transmission power calculation formula is:
[0037]
[0038] 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 status of the i-th sensor node, Q max represents the maximum allowable power of the sensor node.
[0039] The second aspect of the present invention provides a transmission resource allocation system for a wireless body area network, including:
[0040] A channel selection module for selecting a communication channel;
[0041] A communication connection module for establishing a communication connection with sensor nodes through the communication channel and receiving the node status reported by each sensor node, where the node status includes: data type, urgency level, buffer status, and data demand;
[0042] A priority calculation module for calculating the comprehensive priority of each sensor node according to the data type, urgency level, and buffer status;
[0043] A time slot calculation module for calculating the number of time slots for each sensor node according to the comprehensive priority and data demand of each sensor node;
[0044] A time slot allocation module for determining the time slot allocation parameters of each sensor node according to the number of time slots.
[0045] The third aspect of the present invention provides a computer device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the above method are implemented.
[0046] The fourth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are implemented.
[0047] The technical solution provided by the present 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 the energy consumption status of sensor nodes, the reduction of transmission power can be smoothly transitioned, enabling the network to gradually adapt to the attenuation of node capabilities and improving network stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 is a flowchart of the transmission resource allocation method for the wireless body area network provided by the present invention;
[0049] Figure 2 is a topology diagram of the wireless body area network provided by the present invention;
[0050] Figure 3 is a schematic diagram of the relationship between the energy consumption status and the transmission power provided by the present invention;
[0051] Figure 4 is a block diagram of the structure of the transmission resource allocation system for the wireless body area network provided by the present invention;
[0052] Figure 5 It is the internal structure diagram of the computer device provided by the embodiment of the present invention. Detailed implementation manners
[0053] To facilitate the understanding of the present invention, the specific embodiments of the present invention will be described in more detail below with reference to the accompanying drawings of the specification.
[0054] Unless otherwise specified or defined, the "first, second..." used herein is only for differentiating names and does not represent a specific quantity or order.
[0055] Unless otherwise specified or defined, the term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0056] It should be noted that "fixed to" and "connected to" herein can be directly fixed or connected to an element, or indirectly fixed or connected to an element.
[0057] Such as Figure 1 and Figure 2 As shown, a transmission resource allocation method for a wireless body area network is provided in this embodiment, including the following steps S1 to S5:
[0058] Step S1, select a communication channel.
[0059] In practical applications, a wireless body area network generally refers to a sensor network deployed around or inside the human body for monitoring physiological data such as heart rate, body temperature, and movement. The wireless body area network includes: a sink node and a plurality of sensor nodes. The sink node can be a mobile terminal. After the deployment of the sensor nodes and the sink node is completed, channel allocation is performed on the body area network to prevent communication interference and provide channel resources for subsequent joining and communication of the sensor nodes.
[0060] Specifically, the selection of the communication channel includes:
[0061] Traverse all channels to obtain the signal strength of each channel;
[0062] Select at least one idle channel according to the signal strength, and report the idle channel and location information to the base station, where the base station is used to issue a channel allocation instruction according to the idle channels and location information reported by all body area networks;
[0063] Receive the channel allocation instruction, and perform channel allocation on the body area network according to the channel allocation instruction.
[0064] In practical applications, in places such as gyms and libraries, there may be multiple body area networks. To avoid communication interference between multiple body area networks, the aggregation node can first traverse all channels within the communication range, then obtain the signal strength of each channel, and regard the signals with signal strength lower than the strength threshold as idle channels. The idle channels and location information are reported to the base station. The base station issues a channel allocation instruction by combining the idle channels and location information reported by all body area networks. Specifically, according to the location information, the body area networks are divided into adjacent networks and non-adjacent networks. Different idle channels are used between adjacent networks, and the same idle channels can be used between non-adjacent networks, so as to issue a channel allocation instruction. After receiving the channel allocation instruction, the aggregation node selects the corresponding channel from the idle channels as the communication channel according to the allocation of the channel allocation instruction, effectively reducing interference between networks, improving spectrum utilization, and thus enhancing the communication quality of the entire network. This application periodically detects the topological changes of the body area network and dynamically adjusts the channel allocation to ensure 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, where the node status includes: data type, urgency level, buffer status, and data demand.
[0066] In practical applications, beacon frames are sent on the communication channel, and a communication connection is established with the sensor nodes through the beacon frames. Specifically, the aggregation node periodically broadcasts beacon frames on the selected communication channel. The beacon frames contain network synchronization information, providing a basis for subsequent access of sensor nodes. After the sensor nodes are started, they scan the preset or possible channels to detect the beacon frames of the aggregation node. After detecting the beacon, the sensor nodes establish a communication connection with the aggregation node through an association process, and then receive the node status reported by each sensor node.
[0067] Step S3: Calculate the comprehensive priority of each sensor node according to the data type, urgency level, and buffer status.
[0068] In practical applications, through the calculation of the comprehensive priority, the allocation of transmission resources is made more reasonable and flexible, and can be dynamically adjusted according to the data type, urgency level, and node buffer status, ensuring the priority transmission of critical data and improving the real-time performance and reliability of data transmission.
[0069] Specifically, the determination of the type priority according to the data type includes:
[0070] Define the type priority in advance to obtain the type definition formula:
[0071]
[0072] Among them, the said "type" represents the type of 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, and the type of data type uploaded by the sensor node can be defined in advance according to the role of the sensor. For example, the data collected by the heart rate sensor is defined as important data with a priority of 0.8, the data collected by the temperature sensor is defined as medium data with a priority of 0.6, the data collected by the humidity sensor is defined as secondary data with a priority of 0.4, and the data collected by the accelerometer is defined as non-critical data with a priority of 0.2. When the data collected by medical sensors such as the heart rate sensor is abnormal, the type priority of the data collected by medical sensors such as the heart rate sensor at this time is defined as emergency data with a priority of 1, so as to ensure the priority transmission of critical data.
[0073] Select the determined type priority from the type definition formula according to the type of the data type;
[0074] The determining the emergency priority according to the degree of urgency includes:
[0075] Define the emergency priority in advance to obtain an emergency definition formula:
[0076]
[0077] Among them, the said "urgency" represents the type of degree of urgency; when the data collected by the sensor is normal, the degree of urgency of the sensor node is defined as the normal state with a priority of 0.2. When the data collected by the sensor exceeds the preset threshold, the degree of urgency of the sensor node is defined as slightly abnormal with a priority of 0.4, such as the heart rate collected by the heart rate sensor being higher than the normal range. When the data collected by the sensor continuously exceeds the preset threshold within the preset time, the degree of urgency of the sensor node is defined as moderately abnormal with a priority of 0.6, such as the heart rate collected by the heart rate sensor continuously being higher than the normal range within the preset time. When the data collected by the sensor reaches the preset abnormal condition, the degree of urgency of the sensor node is defined as highly abnormal with a priority of 0.8, such as the heart rate sensor detecting arrhythmia. When the data collected by the sensor reaches the preset emergency condition, the degree of urgency of the sensor node is defined as emergently abnormal with a priority of 1, such as the heart rate sensor detecting cardiac arrest. By grading the priority of the degree of urgency of the data, the more urgent the data, the higher the priority, ensuring the priority transmission of urgent critical data.
[0078] Select the determined emergency priority from the emergency definition formula according to the type of the degree of urgency;
[0079] Determining the buffer priority according to the buffer status includes:
[0080] Pre - define the buffer priority to obtain a buffer definition formula:
[0081]
[0082] wherein, the "buffer" represents the type of buffer status;
[0083] Select the determined buffer priority from the buffer definition formula according to the type of the buffer status.
[0084] In practical applications, a critical threshold is set in advance to determine whether the buffer status of the sensor node reaches the critical threshold. If the buffer status reaches the critical threshold, it means that the buffer is about to be full and data needs to be transmitted preferentially. If the buffer does not reach the critical threshold, it means that the buffer can still continue to store data and data is transmitted normally. By setting the buffer priority, the risk of buffer overflow is reduced and the risk of data transmission error is reduced.
[0085] Specifically, calculating the comprehensive priority of each sensor node according to the data type, urgency and buffer status includes:
[0086] Determine the type priority according to the data type, determine the urgency priority according to the urgency, and determine the buffer priority according to the buffer status;
[0087] Calculate the comprehensive priority of each sensor node according to the priority calculation formula, and the priority calculation formula is:
[0088]
[0089] wherein, the "P" i represents the comprehensive priority of the i - th sensor node, represents the type priority of the i - th sensor node, represents the urgency 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 type priority, urgency priority and buffer priority are weighted according to the first weight coefficient, the second weight coefficient and the third weight coefficient to calculate the comprehensive priority of the sensor node. In this application, the first weight coefficient is 0.5, the second weight coefficient is 0.3, and the third weight coefficient is 0.2. The first weight coefficient, the second weight coefficient and the third weight coefficient can be adjusted according to the actual situation to balance the influence of various factors.
[0091] Step S4: Calculate the number of time slots for each sensor node according to the comprehensive priority and data demand of each sensor node.
[0092] In practical applications, the sink node allocates transmission resources according to the data reported by the sensor nodes. When allocating time slots, if the total available time slots meet the time slot requirements of all sensor nodes, the time slots are allocated according to the time slot requirements of the sensor nodes. If the total available time slots do not meet the time slot requirements of all sensor nodes, the time slots are allocated according to the comprehensive priority of the sensor nodes.
[0093] Specifically, calculating the number of time slots for each sensor node according to the comprehensive priority and data demand of each sensor node includes:
[0094] Substitute the comprehensive priority and data demand of each sensor node into the resource calculation formula to calculate the number of time slots for each sensor node. The resource calculation formula is:
[0095]
[0096] where S i represents the number of time slots allocated to the i-th sensor node, S a represents the total available time slots, P i represents the comprehensive priority of the i-th sensor node, D i represents the data demand of the i-th sensor node, and N represents the total number of sensor nodes.
[0097] In practical applications, the data demand is the size of the expected transmitted data, in KB. Dynamically allocate more resources (such as the number of time slots) to sensor nodes with high comprehensive priority, and allocate fewer resources to sensor nodes with low comprehensive priority (such as daily body temperature) to avoid resource idling or over-occupation. For example, in motion monitoring, 30% of the time slots are allocated to high-frequency accelerometer data, and 10% are allocated to low-frequency environmental temperature and humidity sensors. Sensor nodes with low comprehensive priority (such as periodically reported body temperature sensors) can reduce the activation frequency or enter deep sleep, significantly reducing power consumption and extending battery life. For example, the body temperature sensor wakes up only during the allocated time slots and turns off the RF module at other times. Through the allocation and adjustment of transmission resources, it is possible to reasonably allocate time slots according to the priority and data demand of sensor nodes, ensure the fair allocation of transmission resources, improve resource utilization, and at the same time ensure the efficiency and timeliness of data transmission.
[0098] Step S5: Determine the time slot allocation parameters for each sensor node according to the number of time slots.
[0099] In practical applications, the scheduling period, total number of time slots, and duration of a single time slot of the network are determined in advance. The scheduling period is the total duration for the network to repeat scheduling; the total number of time slots is the total number of all available time slots within one period; the duration of a single time slot is the time length of each time slot. After calculating the number of time slots for each sensor node, the product of the duration of a single time slot and the number of time slots for each sensor node is calculated to obtain the time slot duration of each sensor node within the period, that is, the time slot allocation parameters for each sensor node are determined.
[0100] Specifically, after determining the time slot allocation parameters for each sensor node according to the number of time slots, it further includes:
[0101] According to the time slot allocation parameters of each sensor node, calculate the energy consumption status of each sensor node;
[0102] Select the sensor nodes to be adjusted according to the energy consumption status of each sensor node, and adjust the transmission power of the sensor nodes to be adjusted according to the energy consumption status of the sensor nodes to be adjusted.
[0103] In practical applications, due to the change in the comprehensive priority of sensor nodes, the time slot allocation parameters allocated to sensor nodes change, resulting in different energy consumption of sensor nodes within the period. Therefore, it is necessary to dynamically calculate the energy consumption status of sensor nodes according to the time slot allocation parameters to facilitate real-time response to network changes, balance performance and energy consumption. Then, for the sensor nodes to be adjusted, that is, the sensor nodes with a lower energy consumption status, appropriately reduce their transmission power to extend their service life and achieve energy-saving optimization. The energy-saving optimization strategy can effectively reduce the energy consumption of sensor nodes, extend the service life of sensor nodes, thereby improving the stability and sustainability of the entire network, while ensuring that the data transmission quality is not affected.
[0104] In practical applications, if the sensor node still sends data at a high power before its energy is exhausted, it may suddenly crash, resulting in a drastic change in the network topology. The present application can achieve a smooth transition by reducing the transmission power in advance, enabling the network to gradually adapt to the attenuation of the node capabilities and improving the network stability. Dynamically calculate the energy consumption of a single time slot of the sensor node in the states of sending data, receiving data, idle listening, and sleeping in combination with the hardware parameters, protocol behavior, and service load. The initial energy of the sensor node, that is, the battery capacity corresponding to the sensor node, and then calculate the ratio of the consumed energy to the initial energy to obtain the energy consumption status of the sensor node.
[0105] Specifically, selecting the sensor nodes to be adjusted according to the energy consumption status of each sensor node and adjusting the transmission power of the sensor nodes to be adjusted according to the energy consumption status of the sensor nodes to be adjusted includes:
[0106] Select the sensor nodes whose energy consumption status is greater than the energy consumption threshold as the sensor nodes to be adjusted;
[0107] Substitute the energy consumption status of the sensor nodes to be adjusted into the transmission power calculation formula to calculate the transmission power of the sensor nodes to be adjusted;
[0108] The transmission power calculation formula is:
[0109]
[0110] Among them, 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 status of the i-th sensor node, Q max represents the maximum allowable power of the sensor node.
[0111] In practical applications, compare the energy consumption status with the energy consumption threshold. When the energy consumption status of a sensor node is greater than the energy consumption threshold, use this sensor node as the sensor node to be adjusted. As Figure 3 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, start adjusting the transmission power, so as to realize the adjustment of the transmission power of the sensor node to be adjusted and extend the service life of the sensor node to be adjusted.
[0112] In practical applications, if the wireless body area network consists of a sink node and 8 sensor nodes, at time A, each sensor node has different type priorities, emergency priorities, buffer priorities, data requirements and energy consumption status, as shown in Table 1:
[0113] Table 1 Node Information Table
[0114]
[0115]
[0116] Assume that the total available time slots are 1000, the first weight coefficient is 0.5, the second weight coefficient is 0.3, the third weight coefficient is 0.2, and the maximum allowable power is 100 mV. Perform resource allocation adjustment calculations according to this:
[0117] First, calculate the comprehensive priority of 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 sum of the comprehensive priority and the data demand volume:
[0127]
[0128] Then, calculate the number of allocated time slots for each sensor node:
[0129]
[0130]
[0131] Obtain the number of allocated time slots for each sensor node.
[0132] According to the energy states of each sensor node, except for the 6th sensor node, the rest of the sensors are sensors to be adjusted. Then, calculate the transmission power of the sensors to be adjusted:
[0133]
[0134] For the 6th sensor node, its energy state is not higher than the energy consumption threshold. Therefore, the 6th sensor node transmits data at the maximum allowable power. Through energy-saving optimization, reduce the transmission power of the sensors to be adjusted and extend the service life of the sensor nodes.
[0135] The transmission resource allocation method for the wireless body area network of the present invention can dynamically allocate transmission resources by calculating the comprehensive priority of sensor nodes, significantly improving the resource utilization rate of the body area network; by adjusting the transmission power of sensor nodes according to the energy consumption status of the sensor nodes, the reduction of the transmission power can be smoothly transitioned, enabling the network to gradually adapt to the attenuation of node capabilities and improving network stability.
[0136] As Figure 4 shown, an embodiment of the present invention further provides a transmission resource allocation system for a wireless body area network, including:
[0137] A channel selection module 10, configured to select a communication channel;
[0138] A communication connection module 20, configured to establish a communication connection with a sensor node through the communication channel and receive the node status reported by each sensor node, where the node status includes: data type, urgency level, buffer status, and data demand;
[0139] A priority calculation module 30, configured to calculate the comprehensive priority of each sensor node according to the data type, urgency level, and buffer status;
[0140] A time slot calculation module 40, configured to calculate the number of time slots for each sensor node according to the comprehensive priority and data demand of each sensor node;
[0141] A time slot allocation module 50, configured to determine the time slot allocation parameters of each sensor node according to the number of time slots.
[0142] Each module of the above-mentioned transmission resource allocation system for the wireless body area network can be implemented in whole or in part by software, hardware, and their combination. The above-mentioned modules and units can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
[0143] As Figure 5 shown, an embodiment of the present invention discloses a computer device, including a memory and a processor, and the memory stores a computer program;
[0144] Among them, the computer device can be a server, and its internal structure diagram can be as Figure 5As shown in the figure. The computer device includes a processor, a memory, a network interface, and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, it implements the transmission resource allocation method of the wireless body area network described in the above embodiments.
[0145] Those skilled in the art can understand that Figure 5 the structure shown in the figure is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0146] The embodiment of the present invention also discloses a computer-readable storage medium that stores a computer program. Among them, the computer program causes the computer to execute the transmission resource allocation method of the wireless body area network described in the above embodiments.
[0147] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or an external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (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 arbitrarily. For the sake of brevity of description, 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, it should be considered as the scope recorded in this specification.
Claims
1. Transmission resource allocation method for a wireless body area network, characterized in that Including: Select a communication channel; Establish a communication connection with sensor nodes through the communication channel, and receive the node status reported by each sensor node. Among them, the node status includes: data type, urgency level, buffer status, and data demand; Calculate the comprehensive priority of each sensor node according to the data type, urgency level, and buffer status; Calculate the time slot quantity of each sensor node according to the comprehensive priority and data demand of each sensor node; Determine the time slot allocation parameters of each sensor node according to the time slot quantity.
2. The transmission resource allocation method for the wireless body area network according to claim 1, characterized in that The selecting of the communication channel includes: Traverse all channels to obtain the signal strength of each channel; Select at least one idle channel according to the signal strength, and report the idle channel and location information to the base station. The base station is used to issue a channel allocation instruction according to the idle channels and location information reported by all body area networks; Receive the channel allocation instruction, and select a communication channel from the idle channels according to the channel allocation instruction.
3. The transmission resource allocation method of the wireless body area network according to claim 1, characterized in that The calculating of the comprehensive priority of each sensor node according to the data type, urgency level, and buffer status includes: Determine the type priority according to the data type, determine the urgency priority according to the urgency level, and determine the buffer priority according to the buffer status; Calculate the comprehensive priority of each sensor node according to the priority calculation formula. The priority calculation formula is: Among them, the P i represents the comprehensive priority of the i-th sensor node, represents the type priority of the i-th sensor node, represents 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.
4. The transmission resource allocation method for the wireless body area network according to claim 1, characterized in that The calculating of the time slot quantity of each sensor node according to the comprehensive priority and data demand of each sensor node includes: Substitute the comprehensive priority and data demand of each sensor node into the resource calculation formula to calculate the time slot quantity of each sensor node. The resource calculation formula is: Among them, the S i represents the number of time slots allocated to the i-th sensor node, and S a represents the total number of available time slots, P i represents the comprehensive priority of the i-th sensor node, D i represents the data demand of the i-th sensor node, and N represents the total number of sensor nodes.
5. The transmission resource allocation method of the wireless body area network according to claim 1, characterized in that After determining the time slot allocation parameters of each sensor node according to the time slot quantity, it further includes: Calculate the energy consumption status of each sensor node according to the time slot allocation parameters of each sensor node; Select the sensor nodes to be adjusted according to the energy consumption status of each sensor node, and adjust the transmission power of the sensor nodes to be adjusted according to the energy consumption status of the sensor nodes to be adjusted.
6. The transmission resource allocation method for the wireless body area network according to claim 5, wherein, The calculating of the energy consumption status of each sensor node according to the time slot allocation parameters of each sensor node includes: Calculate the energy consumption per single time slot of each sensor node in the states of sending data, receiving data, idle listening, and sleeping; Count the number of sending time slots, receiving time slots, listening time slots, and sleeping time slots of each sensor node; Calculate the periodic energy consumption of each sensor node according to the number of sending time slots and its corresponding energy consumption per single time slot, the number of receiving time slots and its corresponding energy consumption per single time slot, the number of listening time slots and its corresponding energy consumption per single time slot, and the number of sleeping time slots and its corresponding energy consumption per single time slot; Calculate the consumed energy of each sensor node according to the periodic energy consumption and the number of cycles passed by each sensor node; Calculate the ratio of the consumed energy of each sensor node to the initial energy to obtain the energy consumption status of each sensor node.
7. The transmission resource allocation method for the wireless body area network according to claim 5, characterized in that, Selecting the sensor nodes to be adjusted according to the energy consumption status of each of the sensor nodes, and adjusting the transmission power of the sensor nodes to be adjusted according to the energy consumption status of the sensor nodes to be adjusted, includes: Selecting the sensor nodes with the energy consumption status greater than the energy consumption threshold as the sensor nodes to be adjusted; Substituting the energy consumption status of the sensor nodes to be adjusted into the transmission power calculation formula to calculate the transmission power of the sensor nodes to be adjusted; The transmission power calculation formula is: Among them, the represents the transmission power of the i-th sensor node, and E th represents a preset energy consumption threshold, and E i represents the energy consumption state of the i-th sensor node, and Q max represents the maximum allowable power of the sensor node.
8. Transmission resource allocation system for a wireless body area network, characterized in that, Including: A channel selection module for selecting a communication channel; A communication connection module for establishing a communication connection with the sensor nodes through the communication channel and receiving the node status reported by each sensor node, where the node status includes: data type, urgency level, buffer status, and data demand; A priority calculation module for calculating the comprehensive priority of each sensor node according to the data type, urgency level, and buffer status; A time slot calculation module for calculating the number of time slots of each sensor node according to the comprehensive priority and data demand of each of the sensor nodes; A time slot allocation module for determining the time slot allocation parameters of each sensor node according to the number of time slots.
9. A computer device, including a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1-7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1-7 are implemented.
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
Resource allocation method under condition of coexistence of multiple wireless body area networks
CN116582937A
Wireless body area network resource scheduling method based on multi-factor priority
CN116867094A
Cited By
Energy acquisition wireless body area network emergency data resource allocation method based on prediction
CN121815433A
Sensor data cooperative transmission system and method based on Internet of Things, and medium
CN122001769A
A sensor data collaborative transmission system, method, and medium based on the Internet of Things
CN122001769B