Access parameter adjustment method and device, storage medium, and electronic device

By analyzing historical resource status information and adjusting access parameters, the problem of improper access resource allocation is solved, and more efficient resource utilization and device access success rate are achieved.

CN119729885BActive Publication Date: 2025-08-15CHINA SATELLITE NETWORK INNOVATION CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510233661.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-08-15
Estimated Expiration
2045-02-28

AI Technical Summary

Technical Problem

Access resources cannot be effectively allocated in the prior art, resulting in increased access delay and low resource utilization, and conflicts and exceptions during device access.

Method used

By analyzing the resource status information in the historical cycle, determining the number of devices in the current cycle, and adjusting the access parameters of the second device based on this to control the number of accesses of the first device, including adjusting the number of access attempts, access request interval, channel selection policy, etc.

Benefits of technology

It improves the utilization rate of access resources, reduces conflicts and abnormalities during device access, and improves access success rate and device performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119729885B_ABST
    Figure CN119729885B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a method and apparatus for adjusting access parameters, a storage medium, and an electronic device, and relate to the field of computers. The method includes: determining resource status information of a target resource within a historical period, wherein the target resource is a resource that a first device requests to access a second device; using the resource status information to determine the number of first devices within a current period to obtain a target number, wherein the first device is a device to be accessed to a second device within the current period; adjusting the access parameters of the second device based on the target number to obtain a target access parameter, wherein the target access parameter is used to control the number of first devices accessing the second device within the current period. This application solves the problem of ineffective allocation of access resources in related technologies, thereby achieving the effect of effectively allocating access resources and improving the utilization rate of access resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and specifically, to a method and device for adjusting access parameters, a storage medium, and an electronic device. Background Art

[0002] Currently, due to limited access resources, a large number of terminals may compete for the same access resources simultaneously, leading to severe congestion and increased access latency. For example, in the field of wireless communications, the limited random access channel resources can cause multiple terminals to compete for the same random access resource, causing congestion and reducing the throughput of the random access system. Conversely, this creates a large amount of idle resources, resulting in resource waste.

[0003] In related technologies, conflicts are mainly alleviated by selecting different backoff times for terminal devices of different priorities and extending the backoff time of low-priority services. However, this method will also increase access delay, have relatively low resource utilization, and cannot reasonably allocate access resources. Summary of the Invention

[0004] The embodiments of the present application provide a method and apparatus for adjusting access parameters, a storage medium, and an electronic device, so as to at least solve the problem in the related art of being unable to effectively allocate access resources.

[0005] According to one embodiment of the present application, a method for adjusting access parameters is provided, including: determining resource status information of a target resource within a historical period, wherein the target resource is a resource to which a first device requests access to a second device; using the resource status information to determine the number of the first devices in a current period to obtain a target number, wherein the first device is a device to be accessed to the second device within the current period; adjusting the access parameters of the second device based on the target number to obtain a target access parameter, wherein the target access parameter is used to control the number of the first device accessing the second device within the current period.

[0006] In an exemplary embodiment, determining resource status information of a target resource within a historical period includes: determining L resource blocks included in the target resource within the historical period, wherein L is a power of 2; determining resource usage status of the L resource blocks within the historical period; and determining resource status information of the target resource within the historical period using the resource usage status.

[0007] In an exemplary embodiment, determining the resource usage status of the L resource blocks in the historical period includes: counting the number of resource blocks in the idle state among the L resource blocks in the historical period to obtain a first number; counting the number of resource blocks selected by a preset number of the first devices and connected to the second device by a preset number of the L resource blocks in the historical period to obtain a second number; counting the number of resource blocks selected by multiple first devices and abnormalities occurring when multiple first devices are connected to the second device among the L resource blocks in the historical period to obtain a third number; and determining the first number, the second number, and the third number as the resource usage status.

[0008] In an exemplary embodiment, the resource usage status is used to determine the resource status information of the target resource in a historical period, including: calculating the average value of the L resource blocks in the idle state in the historical period to obtain a first average value; calculating the average value of the L resource blocks selected by a preset number of the first devices in the historical period and the resource blocks connected from the first device to the second device to obtain a second average value; calculating the average value of the L resource blocks selected by multiple first devices in the historical period and the resource blocks with abnormal connection from the first device to the second device to obtain a third average value; and determining the resource usage status, the first average value, the second average value, and the third average value as the resource status information.

[0009] In an exemplary embodiment, the resource status information is used to determine the quantity of the first devices in the current cycle to obtain a target quantity, including: determining a first correspondence between the first average value and the first quantity, a second correspondence between the second average value and the second quantity, and a third correspondence between the third average value and the third quantity; according to the first correspondence, the second correspondence and the third correspondence, the quantity of the first devices in the current cycle is calculated to obtain the target quantity.

[0010] In an exemplary embodiment, the access parameter of the second device is adjusted based on the target number to obtain the target access parameter, including: using the target number to calculate the average number of the first devices allowed to access a single resource block to obtain a fourth number; according to the functional relationship between the fourth number, the number of resource blocks included in the target resource block in the current cycle, and the access probability of the first device accessing the second device, the target access parameter is calculated, wherein the access probability includes: when a preset number of the first devices are included in one resource block, the probability of the preset number of the first devices accessing the second device; when multiple first devices are included in one resource block, the probability of the first device accessing the second device.

[0011] In an exemplary embodiment, before determining the resource status information of the target resource in the historical period, the method further includes: setting device parameters and the access parameters of the second device; setting the access resources of the second device according to the device parameters to obtain the target resource;

[0012] The access parameter is broadcast to the first device, wherein the access parameter is used to adjust the number of times the first device accesses the second device within the historical period.

[0013] In an exemplary embodiment, after adjusting the access parameter of the second device based on the target number and obtaining the target access parameter, the method further includes: broadcasting the target access parameter so that the first device receives the target access parameter.

[0014] According to another embodiment of the present application, a method for controlling device access is provided, including: receiving a first broadcast message, wherein the first broadcast message includes a target access parameter, the target access parameter is a parameter obtained by the second device adjusting the access parameter based on a target number, and the target number is the number of first devices to be accessed to the second device in a current period; and using the target access parameter to control the number of the first devices accessing the second device in the current period.

[0015] In an exemplary embodiment, before receiving the first broadcast message, the method further includes: receiving a second broadcast message, wherein the second broadcast message includes the access parameters; and adjusting the access parameters of the first device in the current period in response to the second broadcast message.

[0016] In an exemplary embodiment, in response to the second broadcast message, adjusting the access parameters of the first device in the current period includes: generating a first random parameter, wherein the first random parameter is within a preset range; in a case where the first random parameter is less than or equal to the access parameter in the second broadcast message, selecting a target resource block from the L resource blocks included in the target resources, wherein the target resource is a resource for which the first device requests access to the second device, and the target resource block is any resource block among the L resource blocks; sending an access request to the second device through the target resource block to request access to the second device; in a case where the first random parameter is greater than the access parameter in the second broadcast message, regenerating a second random parameter after a preset time interval so that the second random parameter is less than or equal to the access parameter in the second broadcast message.

[0017] According to another embodiment of the present application, an access parameter adjustment device is provided, comprising: a first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor, wherein the first processor performs the following operations when executing the first computer program: determining resource status information of a target resource within a historical period, wherein the target resource is a resource to which a first device requests access to a second device; determining the number of the first devices within a current period using the resource status information to obtain a target number, wherein the first device is a device to be accessed to the second device within the current period; adjusting the access parameter of the second device based on the target number to obtain a target access parameter, wherein the target access parameter is used to adjust the number of the first device accessing the second device within the current period.

[0018] According to another embodiment of the present application, a device access adjustment device is provided, including: a second memory, a second processor, and a second computer program stored on the second memory and executable on the second processor, wherein the second processor performs the following operations when executing the second computer program: receiving a first broadcast message, wherein the first broadcast message includes a target access parameter, the target access parameter is a parameter obtained by the second device adjusting the access parameter based on a target number, and the target number is the number of first devices to be connected to the second device in a current period; and using the target access parameter to control the number of the first devices connected to the second device in the current period.

[0019] According to another embodiment of the present application, a computer program product is provided, including a computer program, which implements the steps of any of the above method embodiments when executed by a processor.

[0020] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when run.

[0021] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0022] Through this application, by utilizing the resource status information of the target resource within a historical period to determine the number of first devices within the current period, the access parameters of the second device can be dynamically adjusted based on the number of first devices, so that within the current period, the number of first devices requesting access to the second device can be adjusted according to the target access parameters. This effectively improves the utilization rate of access resources, reduces conflicts and anomalies during device access, and improves the success rate of first device access to the second device and the overall performance of the second device. Therefore, it can solve the problem of ineffective allocation of access resources in related technologies, achieving the effect of effectively allocating access resources and improving access resource utilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is a hardware structure block diagram of a server device for a method for adjusting access parameters according to an embodiment of the present application;

[0024] Figure 2 is a flowchart of a method for adjusting access parameters according to an embodiment of the present application;

[0025] Figure 3 is a flowchart of a method for controlling device access according to an embodiment of the present application;

[0026] Figure 4 is a flowchart of interaction between a base station and a user equipment according to a specific embodiment of the present application;

[0027] Figure 5 is a structural block diagram of an access parameter adjustment device according to an embodiment of the present application;

[0028] Figure 6 This is a structural block diagram of an adjustment device for device access according to an embodiment of the present application. DETAILED DESCRIPTION

[0029] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0030] It should be noted that the terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0031] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 This is a hardware structure diagram of a server device for adjusting access parameters according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 A processor 102 (the processor 102 may include but is not limited to a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data are shown in FIG. The server device may also include a transmission device 106 and an input / output device 108 for communication functions. It will be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the above server device. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.

[0032] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the access parameter adjustment method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implementing the above-mentioned method. The memory 104 may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely located relative to the processor 102, and these remote memories may be connected to a server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0033] Transmission device 106 is used to receive or transmit data via a network. A specific example of the aforementioned network may include a wireless network provided by a communication provider of the server device. In one embodiment, transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0034] In this embodiment, a method for adjusting access parameters is provided. Figure 2 is a flow chart of a method for adjusting access parameters according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0035] Step S202, determining resource status information of a target resource in a historical period, wherein the target resource is a resource that the first device requests to access the second device;

[0036] Optionally, this embodiment includes, but is not limited to, applications in scenarios where access parameters of wireless communication systems require adjustment. Examples include channel allocation in mobile communication networks, channel selection in wireless local area networks, and channel selection in wireless sensor networks. The wireless access parameters in these scenarios require optimization and adjustment based on specific communication requirements, network environments, and device characteristics. Proper configuration of wireless access parameters can improve the performance, reliability, and user experience of wireless communication systems. The access parameters in this embodiment include various parameters used to control and manage wireless channels. These parameters are crucial for ensuring communication quality, improving efficiency, and meeting the needs of diverse application scenarios.

[0037] Optionally, the target resources in this embodiment include, but are not limited to, resources with network access capabilities. For example, random access resources are included in wireless communication systems. Random access resources are used to support the connection establishment process between user equipment (e.g., mobile phones) and the network in wireless communication systems. These resources are primarily used on the Random Access Channel (RACH) to help user equipment complete tasks such as registration, synchronization, and data transmission within the network. Random access resources include, but are not limited to, the following: time resources, such as subframes and time slots. User equipment needs to transmit a random access preamble on these time resources so that the network can receive and process its random access request; frequency resources, such as resource blocks (RBs) or frequency bands. User equipment needs to transmit a random access preamble on these frequency resources so that the network can receive and process its random access request; and power control, including initial power setting and power adjustment based on network feedback. Together, these random access resources form the foundation of the random access process in wireless communication systems, ensuring that user equipment can effectively establish a connection with the network and perform data transmission.

[0038] Optionally, the historical period in this embodiment includes, but is not limited to, a historical period of time or a historical information frame. For example, in a wireless communication system, a historical frame refers to a historical time period during which multiple time slots are allocated for data transmission. A time slot is a smaller time unit within a frame and is used to transmit data or control information.

[0039] Optionally, the resource status information in this embodiment includes but is not limited to the usage status of the target resource in the historical period. For example, in a random access system, multiple terminal users are randomly distributed around the base station, and an information frame includes multiple time slots. The resource status information of the information frame includes the number of idle states, collision states, and success states in multiple time slots. Among them, in this embodiment, the idle state refers to a user equipment that has not successfully accessed the base station in a time slot, that is, no user equipment selects the time slot to send an access request to the base station. The collision state means that no user equipment can successfully decode a time slot, or there are more than two users selecting the same time slot. Both situations will result in access failure. The successful state refers to the user equipment that has successfully accessed the base station in a time slot.

[0040] Optionally, the first device in this embodiment includes, but is not limited to, a device that needs to access other devices for data transmission. For example, user equipment and user terminals in the wireless communication system described above. The second device includes, but is not limited to, a device with network access capabilities, such as a wireless access point (AP), a micro base station, irregularly distributed base stations, a portable base station, a communication system, and a radio transmitter.

[0041] Step S204: Determine the number of the first devices in the current cycle using the resource status information to obtain a target number, wherein the first devices are devices to be connected to the second device in the current cycle;

[0042] Optionally, the current period in this embodiment includes, but is not limited to, the current period of time or the current information frame. For example, in a wireless communication system, the current frame refers to a current time period during which multiple time slots are allocated for data transmission. A time slot is a smaller time unit within a frame and is used to transmit data or control information.

[0043] Optionally, the number of first devices in the current cycle refers to the number of remaining first devices that have not accessed the second device in the current cycle. Or, the first devices that have not been allocated resources in the historical cycle, for example, in a network communication system with limited resources, such as a wireless communication network system, a part of users may be able to obtain time slot resources at the same time in one information frame. The remaining user devices refer to those user devices that have not yet obtained time slot resources. For another example, in a wireless communication network system, the remaining user devices that have not successfully accessed the base station in the previous information frame. The number of remaining user devices will greatly affect the performance of the wireless communication system. If the number of user devices responding to the system at the same time is too large, a large number of collision time slots will be generated; conversely, a large number of idle time slots will be generated, resulting in a waste of resources.

[0044] Step S206: Adjust the access parameter of the second device based on the target number to obtain a target access parameter, wherein the target access parameter is used to control the number of the first device accessing the second device in the current period.

[0045] Optionally, the access parameters in this embodiment include, but are not limited to, parameters used to control and optimize device access performance. Examples include the number of access attempts, access request interval, random backoff time, channel selection policy, access window, and Access Class Barring (ACB) control factor. This embodiment uses the ACB factor as an example. The ACB factor, based on the ACB mechanism, can rapidly adjust the number of access requests received by the base station, thereby controlling traffic flow and improving access success rates. ACB factors include, but are not limited to, ACB information, which is a parameter containing ACB rules that guides how the network handles access requests from different device classes. ACB information is typically represented in binary format, with each bit representing a specific user class or service type. ACB categories define different user classes based on user identity, service type, or other attributes. For example, emergency service users may belong to a high-priority ACB category, while regular users may belong to a low-priority ACB category. ACB levels define the access levels granted to different user classes within the network. For example, a user might be assigned to ACB level 0 (highest priority) or ACB level 3 (lowest priority). The network can decide whether to allow user access or limit the user's access rate based on the ACB level. ACB capacity is used to limit the number of users in each ACB category to prevent network congestion. For example, the network can set an ACB capacity threshold. When the number of users in an ACB category reaches this threshold, the network will prohibit access to other users in that category. ACB duration is used to define the effective duration of the ACB rule. For example, the network can enable ACB rules during specific time periods to cope with network congestion during peak hours. ACB reason is used to indicate the reason for enabling ACB, such as network congestion, emergencies, or other special events. This helps network operators understand when ACB rules need to be enabled and take appropriate measures. By properly configuring ACB factors, network resources can be effectively managed to ensure high-quality service for users in different situations.

[0046] The execution subject of the above steps in this embodiment may be a specific processor provided in the second device, or a processor or processing device provided relatively independently from the second device, but is not limited thereto. For example, a processor provided in a wireless communication system.

[0047] Through the above steps, the number of first devices in the current period is determined by utilizing the resource status information of the target resource within the historical period. This allows the access parameters of the second devices to be dynamically adjusted based on the number of first devices, so that the number of first devices requesting access to the second device can be adjusted according to the target access parameters within the current period. This effectively improves access resource utilization, reduces conflicts and anomalies during device access, and improves the success rate of first device access to the second device and the overall performance of the second device. Therefore, the problem of ineffective access resource allocation in related technologies can be resolved, achieving the effect of effectively allocating access resources and improving access resource utilization.

[0048] In an exemplary embodiment, the above step S202 may determine the resource status information of the target resource in the historical period by the following steps:

[0049] Step S302, determining L resource blocks included in the target resource in the historical period, where L is a power of 2;

[0050] Step S304, determining the resource usage status of the L resource blocks in the historical period;

[0051] Step S306: Determine resource status information of the target resource in a historical period using the resource usage status.

[0052] Optionally, the value of L in this embodiment is related to the allocated resources of the second device. n (n>2, n∈N + ). For example, when the second device is a base station, the number of time slot resources allocated by the base station to a certain historical information frame is related to the following factors in the random access system: the bandwidth and capacity of the system, the amount of data in each time slot can be determined according to the bandwidth and capacity of the system to ensure sufficient information transmission speed and capacity. The priority of data transmission, the number of time slots allocated to each data frame can be determined according to the importance and urgency of different data. The load condition of the system, the allocation of the number of time slots can be dynamically adjusted according to the current load condition of the system to avoid system overload or waste of resources. For example, the base station allocates 10 time slot resources to a certain historical information frame, that is, in this historical information frame, 10 consecutive time slots are allocated to the information frame. These time slots can be used for data transmission to ensure that information can be smoothly transmitted from the user equipment to the base station.

[0053] Optionally, the resource usage status is directly related to the type of resource block. For example, when the resource block is a time slot resource included in an information frame in a wireless communication system, the resource usage status includes, but is not limited to, the usage of each time slot resource, including the number of time slots in an idle state, the number of time slots in a collision state, and the number of time slots in a successful state among multiple time slots.

[0054] Optionally, the resource status information in this embodiment includes the resource usage status mentioned above, as well as other information. For example, in the case where the resource block is a time slot resource included in an information frame in a wireless communication system, the resource status information also includes information about the user equipment accessed in each time slot, including but not limited to the probability of successfully accessing multiple user equipment in each time slot, the average value of the idle time slots in an information frame, etc.

[0055] This embodiment analyzes resource usage over historical periods to more accurately understand resource usage, enabling more reasonable resource allocation and optimization decisions for the next period. Furthermore, by analyzing historical data, patterns and trends in resource usage can be identified, enabling prediction of future resource demand and providing a basis for long-term planning. By identifying unused or inefficiently used resource blocks, measures can be taken to improve resource utilization and reduce resource waste.

[0056] In an exemplary embodiment, the above step S304 may determine the resource usage status of the L resource blocks in the historical period by the following steps:

[0057] Step S402, counting the number of resource blocks in an idle state among the L resource blocks in the historical period to obtain a first number;

[0058] Step S404: Count the number of resource blocks selected by a preset number of the first devices and connected to the second device by the preset number of the first devices during the historical period, to obtain a second number.

[0059] Step S406: Counting the number of L resource blocks selected by the plurality of first devices within the historical period, and the number of resource blocks in which abnormalities occur when the plurality of first devices are connected to the second device, to obtain a third number;

[0060] Step S408: Determine the first quantity, the second quantity, and the third quantity as the resource usage status.

[0061] Optionally, the statistical method in steps S402, S404, and S406 described above is related to factors such as the resource block type (e.g., time, space, computing power, etc.), the historical period, and the definition of different states. For example, when counting the number of idle resource blocks among L resource blocks within a specific historical period, it is first determined that the resource blocks are time slot resources, the historical period is an information frame, and the idle state refers to the state in which the time slot resource was not selected by a user equipment within the historical period. The time slot resource usage status (number of idle or congested) can then be calculated by querying logs, monitoring systems, or databases. For another example, if a wireless communication system includes 10 time slot resources, the number of idle time slots, the number of successful time slots, and the remaining number of collision time slots within the historical period are counted, which is 3.

[0062] Among them, the idle time slot is the resource block in the idle state mentioned above. In this time slot, no terminal attempts to send data, so there is no data collision. The successful time slot is the resource block in which a first device accesses the second device. In this time slot, there are exactly D0 terminals trying to send data, and no other terminals are sending in the same time slot. The SIC algorithm is used to decode their signals, thereby achieving the purpose of simultaneous access to multiple terminals. The collision time slot is the resource block in which abnormalities occur when multiple first devices access the second device. In this time slot, more than D0 terminals attempt to send data at the same time, resulting in data collision, and all sent data are lost.

[0063] This embodiment helps to more effectively allocate resources in the next cycle, reduce waste, and improve overall network performance by counting the number of idle, successful, and collision resource blocks.

[0064] In an exemplary embodiment, the above step S306 may determine the resource status information of the target resource in the historical period by using the resource usage status through the following steps:

[0065] Step S502, calculating an average value of the L resource blocks in the idle state during the historical period to obtain a first average value;

[0066] Step S504, calculating an average value of the L resource blocks selected by a preset number of the first devices in the historical period and the resource blocks connected by the first devices to the second device, to obtain a second average value;

[0067] Step S506, calculating an average value of the L resource blocks selected by the plurality of first devices in the historical period and in which abnormalities occur when the first device is connected to the second device, to obtain a third average value;

[0068] Step S508: Determine the resource usage status, the first average value, the second average value, and the third average value as the resource status information.

[0069] Optionally, the average value in the idle state in step S502 includes the average idle time slot resources, which refers to the average number of time slots that are not used, or idle, in a frame. To calculate the average idle time slot resources in a frame, the following information is required: Frame length: that is, the duration of a frame. Number of time slots: that is, the total number of time slots that can be allocated in a frame. Number of time slots actually used: that is, the number of time slots actually used for data transmission in a frame. The calculation formula can be: Average idle time slot resources , where L is used to represent the number of time slots contained in a frame, This value indicates the number of randomly distributed user devices around a base station. This average value reflects the resource availability within a frame.

[0070] Optionally, the average value of the resource blocks selected by the preset number of the first devices in step S504 and accessed by the first device to the second device includes the average number of time slot resources that can be successfully accessed within a frame, which refers to the number of time slot resources that can be successfully allocated to the user equipment within a frame in the wireless communication system. The average number of time slot resources that can be successfully accessed can be calculated by the following formula: Average number of time slot resources that can be successfully accessed , where L is used to represent the number of time slots contained in a frame, Used to indicate the number of user equipment randomly distributed around the base station. It is used to indicate the maximum number of users that the system can identify on the same time slot resource. Both d and i are counters. di Used to represent the first device U di The probability of successful access, C d m0 =m0! / d!(m0-d).

[0071] Optionally, in step S506, the average value of the resource blocks selected by multiple first devices and in which the first devices access the second device abnormally includes the average number of collision resources in a frame. The average number of collision time slots in a frame is affected by various factors such as network load, the number of network devices, and network topology. The average number of collision time slots in a frame can be calculated using the following formula: , where L is used to represent the number of time slots contained in a frame, E I It is used to indicate the average idle time slot resources in a frame, E s Used to indicate the average number of time slot resources that can be successfully accessed within a frame.

[0072] This embodiment can identify which resource blocks are idle and which resource blocks are occupied by less than Devices are selected, and which resource blocks are More than 100 users have selected this feature. This helps optimize resource allocation and ensures more efficient use of resources.

[0073] In an exemplary embodiment, in step S204, the number of the first devices in the current cycle may be determined by using the resource status information to obtain the target number through the following steps:

[0074] Step S602: determining a first corresponding relationship between the first average value and the first quantity, a second corresponding relationship between the second average value and the second quantity, and a third corresponding relationship between the third average value and the third quantity;

[0075] Step S604: Calculate the number of the first devices in the current period according to the first corresponding relationship, the second corresponding relationship, and the third corresponding relationship to obtain the target number.

[0076] Optionally, the first correspondence between the first average value and the first quantity in step S602 includes, but is not limited to, the square of the difference between the first average value and the first quantity. The second correspondence between the second average value and the second quantity includes, but is not limited to, the square of the difference between the second average value and the second quantity. The third correspondence between the third average value and the third quantity includes, but is not limited to, the square of the difference between the third average value and the third quantity.

[0077] Optionally, the target quantity in step S604 can be based on the E calculated above. I 、E s 、E c , and the square of each difference in the above. For example, the number of user devices participating in the competition in the current frame can be calculated by the following formula:

[0078] ,in, , and are used to represent the first number, the second number, and the third number respectively, and the number of remaining users is obtained as: .

[0079] This embodiment can calculate the number of first devices in the current cycle according to the first, second, and third corresponding relationships, thereby allocating resources more accurately, ensuring that the number of user devices matches actual resources, and avoiding resource waste or shortage.

[0080] In an exemplary embodiment, step S206 may adjust the access parameters of the second device based on the target number to obtain target access parameters in the following manner:

[0081] Step S702, using the target number, calculate the average number of the first devices allowed to access a single resource block to obtain a fourth number;

[0082] Step S704: Calculate the target access parameter according to the functional relationship between the fourth quantity, the number of resource blocks included in the target resource block in the current cycle, and the access probability of the first device accessing the second device, wherein the access probability includes: when a preset number of the first devices are included in one resource block, the probability of the preset number of the first devices accessing the second device; when multiple first devices are included in one resource block, the probability of the first device accessing the second device.

[0083] Optionally, in step S702, by calculating the average number of first devices allowed to access a single resource block, it is possible to evaluate whether the network capacity meets current and future user needs. In the case where the resource block is a time slot resource, the average number of user devices that can access a single time slot can be calculated using the following formula:

[0084] ,in, Used to indicate access parameters, mainly used to control the number of users that respond to the base station at the same time. L is used to indicate the number of time slots contained in a frame, and the remaining user data is ,q 11 Used to represent user U 11 The probability of successful access, q 21 Used to represent user U 21 The probability of successful access, q 22 Used to represent user U 22 The probability of successful access, and .

[0085] Optionally, in step S704, based on the above formula, the difference of ρ is calculated, that is, , we can get: , the number of remaining users is the number of remaining users in this time slot: . is the number of remaining users in the previous time slot.

[0086] The target access parameters can be calculated for: ,in, , , , It should be noted that when season .

[0087] Optionally, in step S704, for example, when each resource block can accommodate at most 2 user equipments, that is, D0=2, for a certain time slot resource, including one user equipment The probability of successfully accessing the user can be calculated by the following formula:

[0088] ,in, , , Used to indicate the average received power of the signal.

[0089] When two user equipments select the same time slot, ,in, For users The minimum target rate is . The first user device can be obtained The probability of access is:

[0090] in, , .

[0091] First user device After decoding, the remaining user devices Only then can decoding begin. So the user equipment The probability of successful access is the probability that two user devices access the same time slot at the same time. Therefore, the probability of the second user can be calculated as:

[0092] .

[0093] This embodiment can optimize the access process of the device and improve the access success rate by considering the access probability.

[0094] In an exemplary embodiment, before determining the resource status information of the target resource in the historical period, the method further includes:

[0095] Step S802: Setting device parameters and access parameters of the second device;

[0096] Step S804: setting the access resources of the second device according to the device parameters to obtain the target resources;

[0097] Step S806: broadcast the access parameter to the first device, wherein the access parameter is used to adjust the number of times the first device accesses the second device within the historical period.

[0098] Optionally, in this embodiment, the device parameters and access parameters of the second device are set, including but not limited to setting the device name, time settings, firmware version, etc. Adjust as needed. Setting access parameters includes but is not limited to setting the network connection settings of the device, such as IP address, subnet mask, gateway, DNS server, etc. These settings need to match your network environment. For example, the base station initializes the parameters of the wireless communication system. , the base station broadcasts an initialized ACB factor to the user equipment .

[0099] This embodiment utilizes precise parameter settings and resource allocation to more efficiently utilize network resources and reduce waste. Optimizing device and access parameters can improve communication efficiency between devices and reduce latency and error rates. Adjusting access parameters can balance network load, preventing overloading of certain devices or resources, and thus improving overall network performance.

[0100] In an exemplary embodiment, after adjusting the access parameter of the second device based on the target number and obtaining the target access parameter, the method further includes: broadcasting the target access parameter so that the first device receives the target access parameter.

[0101] Optionally, the broadcast method in this embodiment is not limited. For example, a base station broadcasts a message carrying target access parameters to a user equipment via a wireless communication network. Specifically, the base station generates the message to be broadcast. The base station encodes the message into a format suitable for wireless transmission. The encoded message is modulated into a signal suitable for wireless transmission. The base station transmits the modulated signal via a wireless channel.

[0102] This embodiment transmits the target access parameter to the user equipment by broadcasting, which can quickly instruct the user equipment to adjust the number of accesses, thereby improving access efficiency and making rational use of resources.

[0103] This embodiment provides a method for controlling device access. Figure 3 is a flow chart of a method for controlling device access according to an embodiment of the present application. Figure 3 As shown, the process includes the following steps:

[0104] Step S3002: Receive a first broadcast message, wherein the first broadcast message includes a target access parameter, the target access parameter being a parameter obtained by adjusting an access parameter of the second device based on a target number, the target number being the number of second devices to be accessed by the first device in a current period;

[0105] Step S3004: Use the target access parameter to control the number of the first devices connected to the second device in the current period.

[0106] Optionally, this embodiment includes, but is not limited to, applications in scenarios where access parameters of wireless communication systems require adjustment. Examples include channel allocation in mobile communication networks, channel selection in wireless local area networks, and channel selection in wireless sensor networks. The wireless access parameters in these scenarios require optimization and adjustment based on specific communication requirements, network environments, and device characteristics. Proper configuration of wireless access parameters can improve the performance, reliability, and user experience of wireless communication systems. The access parameters in this embodiment include various parameters used to control and manage wireless channels. These parameters are crucial for ensuring communication quality, improving efficiency, and meeting the needs of diverse application scenarios.

[0107] Optionally, in step S3002, the broadcast message is broadcast by the second device. For example, a base station broadcasts a message carrying target access parameters to a user equipment via a wireless communication network. Specifically, the base station generates the message to be broadcast. The base station encodes the message into a format suitable for wireless transmission. The encoded message is modulated into a signal suitable for wireless transmission. The base station transmits the modulated signal via a wireless channel.

[0108] Optionally, the first device in this embodiment includes, but is not limited to, a device that needs to access other devices for data transmission. For example, user equipment and user terminals in the wireless communication system described above. The second device includes, but is not limited to, a device with network access capabilities, such as a wireless access point (AP), a micro base station, irregularly distributed base stations, a portable base station, a communication system, and a radio transmitter.

[0109] Optionally, the number of first devices in the current cycle refers to the number of remaining first devices that have not accessed the second device in the current cycle. Or, the first devices that have not been allocated resources in the historical cycle, for example, in a network communication system with limited resources, such as a wireless communication network system, a part of users may be able to obtain time slot resources at the same time in one information frame. The remaining user devices refer to those user devices that have not yet obtained time slot resources. For another example, in a wireless communication network system, the remaining user devices that have not successfully accessed the base station in the previous information frame. The number of remaining user devices will greatly affect the performance of the wireless communication system. If the number of user devices responding to the system at the same time is too large, a large number of collision time slots will be generated; conversely, a large number of idle time slots will be generated, resulting in a waste of resources.

[0110] Optionally, the access parameters in this embodiment include, but are not limited to, parameters used to control and optimize device access performance. Examples include the number of access attempts, access request interval, random backoff time, channel selection policy, access window, and Access Class Barring (ACB) control factor. This embodiment uses the ACB factor as an example. The ACB factor, based on the ACB mechanism, can rapidly adjust the number of access requests received by the base station, thereby controlling traffic flow and improving access success rates. ACB factors include, but are not limited to, ACB information, which is a parameter containing ACB rules that guides how the network handles access requests from different device classes. ACB information is typically represented in binary format, with each bit representing a specific user class or service type. ACB categories define different user classes based on user identity, service type, or other attributes. For example, emergency service users may belong to a high-priority ACB category, while regular users may belong to a low-priority ACB category. ACB levels define the access levels granted to different user classes within the network. For example, a user might be assigned to ACB level 0 (highest priority) or ACB level 3 (lowest priority). The network can decide whether to allow user access or limit the user's access rate based on the ACB level. ACB capacity is used to limit the number of users in each ACB category to prevent network congestion. For example, the network can set an ACB capacity threshold. When the number of users in an ACB category reaches this threshold, the network will prohibit access to other users in that category. ACB duration is used to define the effective duration of the ACB rule. For example, the network can enable ACB rules during specific time periods to cope with network congestion during peak hours. ACB reason is used to indicate the reason for enabling ACB, such as network congestion, emergencies, or other special events. This helps network operators understand when ACB rules need to be enabled and take appropriate measures. By properly configuring ACB factors, network resources can be effectively managed to ensure high-quality service for users in different situations.

[0111] Optionally, in step S3004, the current period includes, but is not limited to, the current period of time or the current information frame. For example, in a wireless communication system, the current frame refers to a current time period during which multiple time slots are allocated for data transmission. A time slot is a smaller time unit within a frame and is used to transmit data or control information.

[0112] The execution subject of the above steps in this embodiment may be a specific processor provided in the first device, or a processor or processing device provided relatively independently from the first device, but is not limited thereto. For example, a processor provided in a user device.

[0113] Through the above steps, since the target access parameter is obtained by adjusting the access parameter of the second device based on the target number, the target access parameter can be used to control the number of first devices connected to the second device during the current period. This effectively improves access resource utilization, reduces conflicts and anomalies during device access, and improves the success rate of first device access to the second device and the overall performance of the second device. Therefore, the problem of inefficient access resource allocation in related technologies can be resolved, achieving the effect of effectively allocating access resources and improving access resource utilization.

[0114] In an exemplary embodiment, before receiving the first broadcast message, the method further includes: receiving a second broadcast message, wherein the second broadcast message includes the access parameters; and adjusting the access parameters of the first device in the current period in response to the second broadcast message.

[0115] Optionally, in this embodiment, the broadcasting method of the second broadcast message is the same as the broadcasting method of the first broadcast message, which will not be described again.

[0116] Optionally, in response to the second broadcast message, adjusting the access parameters of the first device in the current period, including: generating a first random parameter, wherein the first random parameter is within a preset range; in a case where the first random parameter is less than or equal to the access parameter in the second broadcast message, selecting a target resource block from the L resource blocks included in the target resources, wherein the target resource is a resource that the first device requests to access the second device, and the target resource block is any resource block among the L resource blocks; sending an access request to the second device through the target resource block to request access to the second device; in a case where the first random parameter is greater than the access parameter in the second broadcast message, regenerating a second random parameter after a preset time interval so that the second random parameter is less than or equal to the access parameter in the second broadcast message.

[0117] Optionally, in this embodiment, the main purpose of adjusting the number of times the first device accesses the second device in the historical period is to control the number of times the first device accesses the second device in the historical period to reduce collisions. After receiving the broadcast message from the base station, a random number between 0 and 1 will be generated. If the random number Less than or equal to the ACB factor ,but Will be from Randomly select one of the time slots and try to send a connection request signal. Otherwise, You need to wait for a certain period of time and then regenerate a new random number ,until .

[0118] This embodiment compares the generated random parameters with the access parameters and selects whether to connect the second device based on the comparison result. The number of first devices connected to the second device can be adjusted at the initialization node. This facilitates the rational allocation of resources, improves resource utilization, and reduces congestion.

[0119] In an exemplary embodiment, in step S3004, after receiving the target access parameter, the first device may adjust the number of accesses based on the value of the target access parameter. For example, when the target access parameter is the ACB factor, when the ACB factor is relatively large, the restrictions on user equipment access are relaxed, allowing more user equipment to attempt to connect to the base station. Doing so can improve network utilization, especially when the network load is low, allowing more users to enjoy the service. Conversely, when the number of users is large or the network load is high, a smaller ACB factor value can reduce the number of users attempting to access the base station at the same time, thereby reducing the burden on the network and ensuring the access quality of high-priority users or critical services. This helps to avoid network overload and ensure the reliability of critical communications.

[0120] For example, in a remote area with a small number of users, the base station can set the ACB factor higher to ensure that all or most users attempting access can successfully access. For example, if the base station has 100 channels and the ACB factor is set to 90%, a maximum of 90 users are allowed to access simultaneously. In city centers or large event venues, the number of users may be very large. The base station can limit the number of users who can access simultaneously by lowering the ACB factor to ensure network stability and service quality. For example, if the base station has 1000 channels and the ACB factor is set to 30%, a maximum of 300 users are allowed to access simultaneously. In this way, the ACB factor, as a flexible control parameter, can help the base station adjust user access policies based on actual conditions to optimize network performance and user experience.

[0121] The present application is described below with reference to specific embodiments:

[0122] This specific embodiment addresses the congestion problem in random access systems in related technologies and proposes a non-orthogonal multiple access (NOMA) random access method that dynamically adjusts the ACB factor. By introducing an ACB factor, the number of user equipment that can simultaneously respond to a base station can be controlled, thereby reducing the number of collision time slots.

[0123] This embodiment first describes the probability of a user equipment accessing a base station and the number of user equipments that the base station accesses in a single time slot:

[0124] Assume that there are randomly distributed terminal users. Assume that an information frame contains time slots. When there are more than If multiple users select the same time slot at the same time, then none of these users can decode. In this embodiment, when a time slot resource has a successful user, it is called a successful time slot. If a time slot has no successful user, it is called an idle time slot. The rest are called collision time slots. Assume that the channel experienced by each user is a Rayleigh channel with a gain of , road loss , then the channel gain is .

[0125] Assume that a time slot contains users, and their channel gains satisfy Assume that If two users select the same time slot, the signal received by the base station in this time slot is: ,user The transmission power is .in, and are the user's maximum transmit power and target receive power respectively. is the power back-off step size, is the power path loss, is the power of the noise. Using the SIC algorithm, first delete the users, and then decode their own information, so the user The access probability is: (2)

[0126] in, For users The minimum target rate is .

[0127] The throughput is defined as the average number of users accessing a single time slot: ,in, is the total number of frames, is the number of time slots contained in a frame, is the number of users that successfully access the i-th time slot.

[0128] In this specific embodiment, the base station will count the number of successful, idle and collision time slots in the previous frame, and then calculate the number of remaining users in the next frame. In order to maximize the performance of the system, the base station will dynamically update the ACB factor according to the number of remaining users, thereby reducing user access delay and improving resource utilization efficiency. The specific implementation process is as follows Figure 4 Said method comprises the following steps:

[0129] S4001, base station initializes system parameters ;

[0130] S4002: When the user equipment is not equal to 0, the base station broadcasts an initialized ACB factor .

[0131] S4003, user equipment After receiving the broadcast message, a random number between 0 and 1 will be generated :

[0132] S4004, Determine random numbers Is it less than or equal to the ACB factor? ;

[0133] S4005, If the random number Less than or equal to the ACB factor ,but Will be from Randomly select one of the time slots and try to send a connection request signal. Otherwise, You need to wait for a certain period of time and then regenerate a new random number ,until Or continue to remain silent and return to S4002 to wait for the broadcast message.

[0134] S4006, for those who meet the conditions The user device will be The user equipment randomly selects one of the time slots and attempts to send a connection request signal. For user equipment that does not meet the conditions, it continues to remain silent and returns to S4002 to wait for the broadcast message.

[0135] S4007, the base station will count the number of successful and idle resource blocks , and .

[0136] S4008, the base station uses the formula Estimate the number of remaining users , and then according to the formula Obtain the next access control factor ACB. If the number of remaining users , the base station returns to S4002 to continue the access process of the remaining users; otherwise, it exits the loop, that is, successfully completes the access of all user equipment.

[0137] By optimizing the ACB factor, this specific embodiment can dynamically adjust the number of user devices that respond to the system each time, thereby reducing the number of collision time slots, reducing resource waste, increasing the access probability of user devices, reducing the access delay of user devices, and improving the system throughput, thereby improving the utilization of system resources and the capacity of user devices.

[0138] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the existing technology, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0139] This embodiment also provides an access parameter adjustment device for implementing the above-mentioned embodiments and preferred implementations. Details already described will not be repeated here. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.

[0140] Figure 5 is a structural block diagram of an access parameter adjustment device according to an embodiment of the present application, such as Figure 5 As shown, the device includes: a first memory 52, a first processor 54, and a first computer program 5402 stored in the first memory 52 and executable on the first processor 54. When the first processor 54 executes the first computer program 5402, it implements the following operations: determining resource status information of a target resource in a historical period, wherein the target resource is a resource to which a first device requests access to a second device; determining the number of the first devices in a current period using the resource status information to obtain a target number, wherein the first device is a device to be accessed to the second device in the current period; adjusting the access parameters of the second device based on the target number to obtain a target access parameter, wherein the target access parameter is used to adjust the number of the first device accessing the second device in the current period.

[0141] The above-described apparatus utilizes resource status information of target resources within historical periods to determine the number of first devices within the current period. This allows the dynamic adjustment of access parameters for second devices based on the number of first devices, enabling the adjustment of the number of first devices requesting access to second devices within the current period according to the target access parameters. This effectively improves access resource utilization, reduces conflicts and anomalies during device access, and enhances the success rate of first device access to second devices and the overall performance of the second devices. Consequently, the inability to effectively allocate access resources in related technologies can be resolved, effectively allocating access resources and improving access resource utilization.

[0142] The implementation of this embodiment is the same as that of the above method embodiment, and will not be repeated here.

[0143] In an exemplary embodiment, the above-mentioned device determines the resource status information of the target resource within the historical period through the following steps: determining the L resource blocks included in the target resource within the historical period, wherein L is a power of 2; determining the resource usage status of the L resource blocks within the historical period; and determining the resource status information of the target resource within the historical period using the resource usage status.

[0144] In an exemplary embodiment, the above-mentioned device determines the resource usage status of L resource blocks in the historical period through the following steps: counting the number of resource blocks in the idle state among the L resource blocks in the historical period to obtain a first number; counting the number of resource blocks selected by a preset number of the first devices and connected to the second device by a preset number of the L resource blocks in the historical period to obtain a second number; counting the number of resource blocks selected by multiple first devices and abnormalities when multiple first devices are connected to the second device within the historical period to obtain a third number; determining the first number, the second number and the third number as the resource usage status.

[0145] In an exemplary embodiment, the above-mentioned device uses the resource usage status to determine the resource status information of the target resource in the historical period through the following steps: calculating the average value of the L resource blocks in the idle state in the historical period to obtain a first average value; calculating the average value of the L resource blocks selected by a preset number of the first devices in the historical period and the resource blocks connected to the second device by the first device to obtain a second average value; calculating the average value of the L resource blocks selected by multiple first devices in the historical period and the resource blocks with abnormal connection from the first device to the second device to obtain a third average value; determining the resource usage status, the first average value, the second average value and the third average value as the resource status information.

[0146] In an exemplary embodiment, the above-mentioned device uses the resource status information to determine the quantity of the first devices in the current cycle to obtain the target quantity through the following steps: determining a first correspondence between the first average value and the first quantity, a second correspondence between the second average value and the second quantity, and a third correspondence between the third average value and the third quantity; according to the first correspondence, the second correspondence and the third correspondence, calculating the quantity of the first devices in the current cycle to obtain the target quantity.

[0147] In an exemplary embodiment, the above-mentioned device adjusts the access parameters of the second device based on the target number through the following steps to obtain the target access parameters: using the target number to calculate the average number of the first devices allowed to access a single resource block to obtain a fourth number; according to the functional relationship between the fourth number, the number of resource blocks included in the target resource block in the current cycle, and the access probability of the first device accessing the second device, the target access parameter is calculated, wherein the access probability includes: when a preset number of the first devices are included in one resource block, the probability of the preset number of the first devices accessing the second device; when multiple first devices are included in one resource block, the probability of the first device accessing the second device.

[0148] In an exemplary embodiment, the above-mentioned device is further used to set the device parameters and the access parameters of the second device before determining the resource status information of the target resource within the historical period; the second setting module is used to set the access resources of the second device according to the device parameters to obtain the target resource; the first broadcast module is used to broadcast the access parameters to the first device, wherein the access parameters are used to adjust the number of times the first device accesses the second device within the historical period.

[0149] In an exemplary embodiment, after adjusting the access parameter of the second device based on the target number to obtain the target access parameter, the apparatus is further configured to broadcast the target access parameter so that the first device receives the target access parameter.

[0150] Figure 6 is a structural block diagram of an adjustment device for device access according to an embodiment of the present application, such as Figure 6 As shown, the device includes:

[0151] A second memory 62, a second processor 64, and a second computer program 6402 stored on the second memory 62 and executable on the second processor, wherein the second processor 62 implements the following operations when executing the second computer program 6402: receiving a first broadcast message, wherein the first broadcast message includes a target access parameter, the target access parameter is a parameter obtained by adjusting the access parameter of the second device based on a target number, and the target number is the number of first devices to be connected to the second device in the current period; and using the target access parameter to control the number of the first devices connected to the second device in the current period.

[0152] With the above-described apparatus, since the target access parameter is obtained by adjusting the access parameter of the second device based on the target number, the target access parameter can be used to control the number of first devices connected to the second device during the current cycle. This effectively improves access resource utilization, reduces conflicts and anomalies during device access, and improves the success rate of first device access to the second device and the overall performance of the second device. Therefore, the problem of inefficient access resource allocation in related technologies can be resolved, achieving the effect of effectively allocating access resources and improving access resource utilization.

[0153] The implementation of this embodiment is the same as that of the above method embodiment, and will not be repeated here.

[0154] In an exemplary embodiment, before receiving the first broadcast message, the above-mentioned device is also used to receive a second broadcast message before receiving the first broadcast message, wherein the second broadcast message includes the access parameters; and in response to the second broadcast message, adjust the access parameters of the first device in the current period.

[0155] In an exemplary embodiment, the above-mentioned device responds to the second broadcast message and adjusts the access parameters of the first device in the current period through the following steps: generating a first random parameter, wherein the first random parameter is within a preset range; when the first random parameter is less than or equal to the access parameter in the second broadcast message, selecting a target resource block from the L resource blocks included in the target resources, wherein the target resource is a resource that the first device requests to access the second device, and the target resource block is any resource block among the L resource blocks; sending an access request to the second device through the target resource block to request access to the second device; when the first random parameter is greater than the access parameter in the second broadcast message, regenerating a second random parameter after a preset time interval so that the second random parameter is less than or equal to the access parameter in the second broadcast message.

[0156] It should be noted that the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0157] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any of the above method embodiments when run.

[0158] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0159] An embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0160] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0161] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0162] An embodiment of the present application further provides another computer program product, comprising a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above method embodiments are implemented.

[0163] An embodiment of the present application also provides a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any of the above method embodiments.

[0164] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail here.

[0165] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be implemented using a general-purpose computing device, they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices, they can be implemented using program code executable by the computing device, and thus, they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be performed in a different order than herein, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0166] The above description is merely a preferred embodiment of the present application and is not intended to limit the present application. Those skilled in the art will readily appreciate that various modifications and variations are possible. Any modifications, equivalent substitutions, or improvements made within the principles of the present application shall be included within the scope of protection of the present application.

Claims

1. A method for adjusting access parameters, characterized in that: include: Determining resource status information of a target resource within a historical period, wherein the target resource is a resource that the first device requests to access the second device; Determine the number of the first devices in a current period using the resource status information to obtain a target number, wherein the first devices are devices to be connected to the second device in the current period; Adjusting an access parameter of the second device based on the target number to obtain a target access parameter, wherein the target access parameter is used to control the number of first devices connected to the second device in the current period; Adjusting the access parameters of the second device based on the target number to obtain the target access parameters includes: using the target number to calculate the average number of the first devices allowed to access a single resource block to obtain a fourth number, wherein the resource block is a resource block among the L resource blocks included in the target resource in the historical period, and L is a power of 2; calculating the target access parameters according to a functional relationship between the fourth number, the number of resource blocks included in the target resource in the current period, and the access probability of the first device accessing the second device, wherein the access probability includes: when one first device is included in one resource block, the probability of one first device accessing the second device; when multiple first devices are included in one resource block, the probability of multiple first devices accessing the second device.

2. The method according to claim 1, characterized in that Determine the resource status information of the target resource in the historical period, including: Determining L resource blocks included in the target resource within the historical period; Determining resource usage status of L resource blocks within the historical period; The resource usage status is used to determine resource status information of the target resource in a historical period.

3. The method according to claim 2, characterized in that Determining resource usage status of the L resource blocks in the historical period includes: Counting the number of resource blocks in an idle state among the L resource blocks in the historical period to obtain a first number; Counting the number of resource blocks selected by a preset number of the first devices and connected from the preset number of the first devices to the second device during the historical period, to obtain a second number; Counting the number of the L resource blocks that were selected by the plurality of first devices within the historical period and in which abnormalities occurred when the plurality of first devices were connected to the second device, to obtain a third number; The first quantity, the second quantity, and the third quantity are determined as the resource usage status.

4. The method according to claim 3, characterized in that Determining resource status information of the target resource in a historical period using the resource usage status includes: Calculating an average value of the L resource blocks in the idle state during the historical period to obtain a first average value; Calculating an average value of the L resource blocks selected by a preset number of the first devices during the historical period and the resource blocks connected by the first devices to the second device to obtain a second average value; Calculating an average value of the L resource blocks selected by the plurality of first devices during the historical period and in which abnormalities occur when the first device is connected to the second device, to obtain a third average value; The resource usage status, the first average value, the second average value, and the third average value are determined as the resource status information.

5. The method according to claim 4, characterized in that Determining the quantity of the first devices in a current period using the resource status information to obtain a target quantity includes: determining a first corresponding relationship between the first average value and the first quantity, a second corresponding relationship between the second average value and the second quantity, and a third corresponding relationship between the third average value and the third quantity; According to the first corresponding relationship, the second corresponding relationship, and the third corresponding relationship, the number of the first devices in the current cycle is calculated to obtain the target number.

6. The method according to claim 1, characterized in that Before determining the resource status information of the target resource in the historical period, the method further includes: Setting device parameters and the access parameters of the second device; Setting the access resources of the second device according to the device parameters to obtain the target resources; The access parameter is broadcast to the first device, wherein the access parameter is used to adjust the number of times the first device accesses the second device within the historical period.

7. The method according to claim 1, characterized in that After adjusting the access parameters of the second device based on the target number and obtaining the target access parameters, the method further includes: The target access parameter is broadcasted, so that the first device receives the target access parameter.

8. A method for controlling device access, characterized in that: include: Receiving a first broadcast message, wherein the first broadcast message includes a target access parameter, the target access parameter being a parameter obtained by adjusting an access parameter of the second device based on a target number, the target number being the number of the first device to be connected to the second device in a current period; controlling, by using the target access parameter, the number of the first devices connected to the second device during the current period; The target access parameter is determined by the second device in the following manner: using the target number to calculate the average number of the first devices allowed to access a single resource block to obtain a fourth number, wherein the resource block is a resource block among the L resource blocks included in the target resource in the historical period, L is a power of 2, and the target resource is the resource that the first device requests to access the second device; according to the functional relationship between the fourth number, the number of resource blocks included in the target resource in the current period, and the access probability of the first device accessing the second device, the target access parameter is calculated, wherein the access probability includes: when one first device is included in one resource block, the probability of one first device accessing the second device; when multiple first devices are included in one resource block, the probability of multiple first devices accessing the second device.

9. The method according to claim 8, characterized in that Before receiving the first broadcast message, the method further includes: receiving a second broadcast message, wherein the access parameter in the second broadcast message is a parameter determined based on the number of remaining users in a historical period; In response to the second broadcast message, adjust access parameters of the first device in the current period.

10. The method according to claim 9, characterized in that In response to the second broadcast message, adjusting access parameters of the first device in the current period includes: generating a first random parameter, wherein the first random parameter is within a preset range; When the first random parameter is less than or equal to the access parameter in the second broadcast message, select a target resource block from L resource blocks included in the target resources, wherein the target resource is a resource that the first device requests to access the second device, and the target resource block is any resource block in the L resource blocks; sending an access request to the second device through the target resource block to request access to the second device; In a case where the first random parameter is greater than the access parameter in the second broadcast message, a second random parameter is regenerated after a preset time interval so that the second random parameter is less than or equal to the access parameter in the second broadcast message.

11. A device for adjusting access parameters, comprising: A first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor, wherein the first processor implements the following operations when executing the first computer program: Determining resource status information of a target resource within a historical period, wherein the target resource is a resource that the first device requests to access the second device; Determine the number of the first devices in a current period using the resource status information to obtain a target number, wherein the first devices are devices to be connected to the second device in the current period; Adjusting an access parameter of the second device based on the target number to obtain a target access parameter, wherein the target access parameter is used to adjust the number of first devices connected to the second device within the current period; The apparatus is further configured to adjust the access parameters of the second device based on the target number through the following steps to obtain a target access parameter: using the target number to calculate the average number of the first devices allowed to access a single resource block to obtain a fourth number, wherein the resource block is a resource block among the L resource blocks included in the target resource in the historical period, and L is a power of 2; the target access parameter is obtained by calculation according to a functional relationship between the fourth number, the number of resource blocks included in the target resource in the current period, and the access probability of the first device accessing the second device, wherein the access probability includes: when one first device is included in one resource block, the probability of one first device accessing the second device; when multiple first devices are included in one resource block, the probability of multiple first devices accessing the second device.

12. A device access adjustment apparatus, comprising: A second memory, a second processor, and a second computer program stored in the second memory and executable on the second processor, wherein the second processor implements the following operations when executing the second computer program: Receiving a first broadcast message, wherein the first broadcast message includes a target access parameter, the target access parameter being a parameter obtained by adjusting an access parameter of the second device based on a target number, the target number being the number of the first device to be connected to the second device in a current period; controlling, by using the target access parameter, the number of the first devices connected to the second device during the current period; The target access parameter is determined by the second device in the following manner: using the target number to calculate the average number of the first devices allowed to access a single resource block to obtain a fourth number, wherein the resource block is a resource block among the L resource blocks included in the target resource in the historical period, L is a power of 2, and the target resource is the resource that the first device requests to access the second device; according to the functional relationship between the fourth number, the number of resource blocks included in the target resource in the current period, and the access probability of the first device accessing the second device, the target access parameter is calculated, wherein the access probability includes: when one first device is included in one resource block, the probability of one first device accessing the second device; when multiple first devices are included in one resource block, the probability of multiple first devices accessing the second device.

13. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented, or the steps of the method described in any one of claims 8 to 10 are implemented.

14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the processor implements the steps of the method described in any one of claims 1 to 7, or implements the steps of the method described in any one of claims 8 to 10.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the steps of the method described in any one of claims 1 to 7, or implements the steps of the method described in any one of claims 8 to 10.

Citation Information

Patent Citations

  • Random access load control method and device, electronic equipment and storage medium

    CN118450466A