Resource configuration method and apparatus, and communication device
By configuring the transmission resources of multiple terminal devices at once through network equipment, and resolving resource conflicts by combining identifier comparison and modulo operation rules, the problem of excessive signaling burden is solved, and efficient resource allocation is achieved.
Patent Information
- Application Number
- PCT/CN2024/105184
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2026-01-15
AI Technical Summary
In existing wireless communication systems, network devices allocate transmission resources based on the unique identifiers of terminal devices, resulting in excessive signaling burden.
The network device sends the first message at once, configures the transmission resources for multiple terminal devices, and the terminal devices determine the transmission resources by comparing their own identifiers with the mask information, and resolve resource conflicts through modulo operation or sequence rules.
It reduces the signaling overhead of network equipment, improves resource allocation efficiency, and lowers the signaling burden.
Smart Images

Figure CN2024105184_15012026_PF_FP_ABST
Abstract
Description
A resource allocation method, apparatus and communication equipment Technical Field
[0001] This application relates to the field of mobile communication technology, and in particular to a resource allocation method, apparatus and communication equipment. Background Technology
[0002] In current wireless communication systems, a common method for allocating transmission resources is for network devices to assign dedicated transmission resource locations to terminal devices based on their unique identifiers (IDs). This significantly increases the signaling burden on network devices.
[0003] Summary of the Invention
[0004] This application provides a resource allocation method, apparatus, and communication device.
[0005] In a first aspect, the resource configuration method provided in the embodiments of this application includes:
[0006] The network device sends a first message, which is used to configure the transmission resources of each of the one or more terminal devices.
[0007] Secondly, the resource configuration method provided in the embodiments of this application includes:
[0008] A first terminal device receives a first message sent by a network device. The first message is used to configure the transmission resources of each of the one or more terminal devices, including the first terminal device.
[0009] Thirdly, the resource configuration apparatus provided in the embodiments of this application is applied to network devices and includes:
[0010] The sending unit is configured to send a first message to the network device, the first message being used to configure the transmission resources of each of the one or more terminal devices.
[0011] Fourthly, the resource configuration device provided in the embodiments of this application is applied to a third terminal device, including:
[0012] The receiving unit is configured to receive a first message sent by the network device by the third terminal device. The first message is used to configure the transmission resources of each of the one or more terminal devices. The third terminal device is any one of the one or more terminal devices.
[0013] The communication device provided in this application embodiment can be a terminal device or a network device as described above. The communication device includes a processor and a memory. The memory stores computer programs, and the processor calls and runs the computer programs stored in the memory to execute the resource configuration method described above.
[0014] The chip provided in this application embodiment is used to implement the above-described resource configuration method.
[0015] Specifically, the chip includes a processor for retrieving and running a computer program from memory, causing a device equipped with the chip to perform the resource configuration method described above.
[0016] The computer-readable storage medium provided in this application embodiment is used to store a computer program that causes a computer to execute the resource configuration method described above.
[0017] The computer program product provided in this application includes computer program instructions that cause a computer to execute the resource configuration method described above.
[0018] The computer program provided in this application embodiment, when run on a computer, causes the computer to execute the above-described resource configuration method.
[0019] In this embodiment, the network device sends a first message at once to configure the transmission resources of each of the one or more terminal devices, instead of using multiple messages to trigger dedicated transmission resources one-to-one for multiple terminal devices. This can significantly reduce the signaling overhead of the network device. Attached Figure Description
[0020] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0021] Figure 1 is a schematic diagram of the topology of an environmental Internet of Things under a 5G network according to an embodiment of this application;
[0022] Figure 2 is a schematic diagram of another environmental Internet of Things (IoT) topology under a 5G network provided in an embodiment of this application.
[0023] Figure 3 is a schematic diagram of another environmental Internet of Things (IoT) topology under a 5G network provided in an embodiment of this application.
[0024] Figure 4 is a schematic diagram of a radio frequency identification query process provided in an embodiment of this application;
[0025] Figure 5 is a flowchart illustrating the resource allocation method provided in an embodiment of this application;
[0026] Figure 6 is a schematic diagram of the total length of a terminal device ID provided in an embodiment of this application;
[0027] Figure 7 is a schematic diagram of the total length of a terminal device ID provided in an embodiment of this application;
[0028] Figure 8 is an example diagram of a set of multiple terminal devices that have experienced transmission resource conflicts, provided in an embodiment of this application.
[0029] Figure 9 is an example of the resource configuration results provided in an embodiment of this application;
[0030] Figure 10 is an example of the resource configuration results provided in the embodiments of this application;
[0031] Figure 11 is a schematic diagram of the interaction between the RFID reader and the A-IOT device provided in the embodiment of this application;
[0032] Figure 12 is a schematic diagram of an optional structure of a resource allocation device according to an embodiment of this application;
[0033] Figure 13 is a schematic diagram of an optional structure of a resource allocation device according to an embodiment of this application;
[0034] Figure 14 is a schematic structural diagram of a communication device provided in an embodiment of this application;
[0035] Figure 15 is a schematic structural diagram of a chip according to an embodiment of this application;
[0036] Figure 16 is a schematic block diagram of a communication system provided in an embodiment of this application. Detailed Implementation
[0037] The technical solutions of the embodiments of this application will now be described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0038] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship. It should also be understood that "instruction" mentioned in the embodiments of this application can be a direct instruction, an indirect instruction, or an indication of a related relationship. For example, A instructing B can mean that A directly instructs B, for example, B can be obtained through A; it can also mean that A indirectly instructs B, for example, A instructs C, B can be obtained through C; or it can mean that there is a related relationship between A and B. It should also be understood that "correspondence" mentioned in the embodiments of this application can indicate a direct or indirect correspondence between two objects, or an related relationship between two objects, or a relationship of instruction and being instructed, configuration and being configured, etc. It should also be understood that the "predefined" or "predefined rules" mentioned in the embodiments of this application can be implemented by pre-storing corresponding codes, tables, or other means that can be used to indicate relevant information in the device (e.g., including terminal devices and network devices), and this application does not limit the specific implementation method. For example, predefined can refer to those defined in a protocol. It should also be understood that in the embodiments of this application, the "protocol" can refer to standard protocols in the field of communication, such as LTE protocol, NR protocol, and related protocols applied to future communication systems, and this application does not limit this.
[0039] To facilitate understanding of the technical solutions of the embodiments of this application, the relevant technologies of the embodiments of this application are described below. The following relevant technologies are optional solutions and can be combined with the technical solutions of the embodiments of this application in any way, and they all fall within the protection scope of the embodiments of this application.
[0040] The Internet of Things (IoT) for the environment refers to a new type of wireless communication that is largely self-sufficient by using energy from the environment. It is an ecosystem for connecting and automating a large number of objects and devices, where each object is connected to form a wireless sensor network using low-cost, self-powered sensor nodes.
[0041] As a key mechanism for power generation, the Internet of Things (IoT) for the environment relies on energy harvesting to power or charge batteries in mobile devices and smart objects without the need for cables. Vibrations from equipment, machinery, and buildings, as well as the propagation of ambient radio signals, can all be used to generate electricity.
[0042] Figure 1 is a schematic diagram of the topology of an environmental Internet of Things under a 5G network provided in an embodiment of this application.
[0043] As shown in Figure 1, the system includes a base station 1101 and an Ambient IoT (A-IoT) device 1102, which communicates directly with the base station 1101 bidirectionally. Communication between the base station 1101 and the A-IoT device 1102 includes A-IoT data and / or signals. This topology allows for the possibility that the base station 1101 sending signals to the A-IoT device 1102 and the base station 1101 receiving signals from the A-IoT device 1102 may be a different base station.
[0044] Figure 2 is a schematic diagram of another environmental Internet of Things (IoT) topology under a 5G network provided in an embodiment of this application.
[0045] As shown in Figure 2, the system includes a base station 1101, an environmental IoT device 1102, and an intermediate node 1103. The environmental IoT device 1102 and the intermediate node 1103, as well as the base station 1101 and the intermediate node 1103, communicate bidirectionally. In this topology, the intermediate node 1103 can be a repeater, IAB node, user equipment (UE), or other nodes with environmental IoT functionality. The intermediate node 1103 transmits environmental IoT data and / or signals between the base station 1101 and the environmental IoT device 1102.
[0046] Figure 3 is a schematic diagram of another environmental Internet of Things (IoT) topology under a 5G network provided in an embodiment of this application.
[0047] As shown in Figure 3, the topology includes a base station 1101, an environmental IoT device 1102, and an auxiliary node 1104. The environmental IoT device 1102 sends data / signals to the base station 1101 and receives data / signals from the auxiliary node 1104; or the environmental IoT device 1102 receives data / signals from the base station 1101 and sends the data / signals to the auxiliary node 1104. In this topology, the auxiliary node 1104 can be a repeater, IAB (Integrated Access and Backhaul), user equipment (UE), etc., and these nodes have environmental IoT functions.
[0048] Figure 4 is a schematic diagram of a radio frequency identification query process provided in an embodiment of this application.
[0049] As shown in Figure 4, the steps include:
[0050] 1. An interrogator (or reader) selects a specific group via select signaling.
[0051] 2. The Interrogator sends a Query message after a certain time interval (indicating that a specific group or specific UE has been selected and includes a Q value).
[0052] 3. The tag randomly selects a value from the received (0, 2Q-1) values. Tags with a value of 0 are sent to the network via RN16 after a certain time interval.
[0053] 4. If the network correctly receives RN16, it sends an ACK to the tag.
[0054] 5. The tag sends its tag ID information to the network.
[0055] 6. The network sends QueryRep information to the terminal, and the random number held by all terminals is decremented by 1. Then, return to step 2, and the network resends the Query signaling.
[0056] To facilitate understanding of the technical solutions of the embodiments of this application, the technical solutions of this application are described in detail below through specific embodiments. The above-mentioned related technologies are optional solutions and can be arbitrarily combined with the technical solutions of the embodiments of this application, all of which fall within the protection scope of the embodiments of this application. The embodiments of this application include at least some of the following contents.
[0057] Figure 5 is a flowchart illustrating the resource configuration method provided in this embodiment of the application. As shown in Figure 5, the method may include the following steps:
[0058] S501, The network device sends a first message, which is used to configure the transmission resources of each of the one or more terminal devices.
[0059] It should be noted that the network device can be the base station in Figure 2, the intermediate node in Figure 3, or the auxiliary node in Figure 4. This application embodiment does not limit the type of network device. The network device can be a radio-frequency identification (RFID) reader, and the terminal device can be an ambient IoT (A-IoT) device.
[0060] It should also be noted that network devices can send the first message via broadcast or multicast. This allows multiple terminal devices within the network device's communication range to receive the first message, which is used to configure the transmission resources of one or more terminal devices. Transmission resources refer to the transmission resources used by terminal devices in a communication network when sending data to the network device.
[0061] Correspondingly, the third terminal device can receive the first message sent by the network device.
[0062] It should be noted that, for ease of description and to differentiate it from other similar terminal devices, the term "third terminal device" refers to or characterizes the terminal device configured by the network device through the first information. In other words, a third terminal device is any one of the one or more terminal devices configured by the first message.
[0063] In some embodiments, the first message includes first indication information, which is used to indicate one or more terminal devices.
[0064] In this embodiment, the first indication information may be mask information or the terminal device identifier (ID) of one or more terminal devices.
[0065] In some embodiments, the first indication information is mask information, wherein the one or more terminal devices indicated by the first indication information may be terminal devices whose first bit in the terminal device ID is consistent with the mask information.
[0066] It should be understood that the terminal device ID consists of multiple bits. Each bit has two states: 0 or 1. For example, the terminal device ID can be composed of 96 bits, as shown in Figure 6 or Figure 7.
[0067] It should be noted that there can be multiple first bits.
[0068] It should also be noted that the position of the first bit in the terminal ID can be preset.
[0069] In some embodiments, the first bit includes at least one of the following:
[0070] The ID is represented by the first bit to the Mth bit; M is an integer greater than 1.
[0071] The Mth bit to the Nth bit in ID, where M < N, and N is an integer greater than 1;
[0072] From the Nth bit to the last bit in the ID.
[0073] It should be understood that the one or more terminal devices indicated by the network device through the first message can be terminal devices whose first bit in the terminal device ID matches the mask information.
[0074] In other words, the terminal device receiving the first message can compare the first bit of its device ID with the mask information in the first message. If they match, it is determined that the network device has instructed / selected / selected the terminal device, and the terminal device can determine its own transmission resources according to certain rules and send data on the determined transmission resources. If they do not match, it is determined that the network device has not instructed / selected / selected the terminal device.
[0075] In one example, Figure 6 is a schematic diagram of the total length of a terminal device ID provided in an embodiment of this application. For example, if the total length of the terminal device ID is 96 bits, the first bit to the Mth bit of the terminal device ID, i.e., 101011…, is compared with the mask information to see if they are consistent; the Nth bit to the last bit of the terminal device ID, i.e., 0011001111…, is compared with the mask information to see if they are consistent; if both are consistent, it indicates that the terminal device is the device selected by the network device.
[0076] In another example, Figure 7 is a schematic diagram of the total length of a terminal device ID provided in an embodiment of this application. For example, if the total length of the terminal device ID is 96 bits, the first bit to the Mth bit of the terminal device ID, i.e., 101011…, is compared with the mask information to see if they are consistent. If they are consistent, it indicates that the terminal device is the device selected by the network device.
[0077] In some embodiments, the first bit is predefined by the protocol or configured by the network device via signaling.
[0078] It should be noted that the above signaling may include one or more of the following:
[0079] Radio Resource Control (RRC) signaling;
[0080] MAC control element (CE) signaling;
[0081] Downlink Control Information (DCI) signaling.
[0082] It should be noted that the signaling that configures the first bit and the signaling that carries the first message can be the same signaling or different signaling. This application embodiment does not limit this.
[0083] It should be noted that the first message can configure transmission resources corresponding to one or more terminal devices. The transmission resources of multiple terminal devices can be time-domain resources that are continuous in the time domain.
[0084] In some embodiments, the first message may implicitly indicate or not explicitly indicate one or more transport resources. In other words, the first message may be associated with one or more transport resources.
[0085] For example, the one or more transmission resources may be defined as one or more consecutive transmission resources that are located after the transmission resources of the first message and at a time interval of a preset number of time units from the start time (or end time) of the transmission resources of the first message.
[0086] In some embodiments, the first message may explicitly indicate one or more transport resources.
[0087] For example, the first message may include second indication information, which indicates one or more transmission resources. For instance, the second indication information indicates one or more transmission resources by specifying the index of the starting transmission resource and the number of transmission resources.
[0088] It should be noted that the one or more transmission resources associated with or indicated by the first message can correspond one-to-one with one or more terminal devices. The correspondence between one or more transmission resources and one or more terminal devices can be established in different ways. In one possible implementation, one or more terminal devices can be mapped to one or more transmission resources according to their ID order. In another possible implementation, one or more terminal devices can be mapped to one or more transmission resources according to the modulo operation result between the terminal device ID and the first parameter.
[0089] The following is a detailed explanation of methods #1 and #2.
[0090] Method #1: Assign one or more terminal devices to one or more transmission resources according to the ID order of one or more terminal devices.
[0091] In some embodiments, one or more terminal devices correspond one-to-one with one or more transmission resources according to the ID arrangement order; the ID arrangement order is either from largest to smallest, or from smallest to largest in reverse order.
[0092] In this embodiment, the terminal device determines its own transmission resources according to the ID arrangement order.
[0093] For example, with four terminal devices whose IDs are 1, 2, 3, and 4, if the IDs are arranged in descending order, the transmission resource of terminal device with ID 1 is the first transmission resource, the transmission resource of terminal device with ID 2 is the second transmission resource, the transmission resource of terminal device with ID 3 is the third transmission resource, and the transmission resource of terminal device with ID 4 is the fourth transmission resource; if the IDs are arranged in ascending order, the transmission resource of terminal device with ID 4 is the first transmission resource, the transmission resource of terminal device with ID 3 is the second transmission resource, the transmission resource of terminal device with ID 2 is the third transmission resource, and the transmission resource of terminal device with ID 1 is the fourth transmission resource.
[0094] In some embodiments, the first message is further used to indicate a reference terminal device (or anchor terminal device), the transmission resource corresponding to the reference terminal device being the first transmission resource among one or more transmission resources; the remaining terminal devices among the one or more terminal devices, excluding the reference terminal device, correspond one-to-one with the remaining transmission resources according to the ID arrangement order; the ID arrangement order is either from largest to smallest, or from smallest to largest in reverse order.
[0095] In this embodiment, the transmission resource corresponding to the reference terminal device is the first transmission resource among one or more transmission resources. For the remaining terminal devices among the one or more terminal devices excluding the reference terminal device, if arranged in descending order of ID, the terminal devices following the reference terminal device (i.e., the terminal devices with IDs larger than the reference terminal device's ID) will connect to the network in descending order of ID, following the terminal device with the smallest ID. If arranged in ascending order of ID, the terminal devices preceding the reference terminal device (i.e., the terminal devices with IDs smaller than the reference terminal device's ID) will connect to the network in ascending order of ID, following the terminal device with the largest ID.
[0096] For example, in the case of four terminal devices with IDs 1, 2, 3, and 4, if the terminal device with ID 3 is the reference terminal device, and the IDs are arranged in descending order, then the transmission resource of the terminal device with ID 3 is the first transmission resource, the transmission resource of the terminal device with ID 2 is the second transmission resource, the transmission resource of the terminal device with ID 1 is the third transmission resource, and the transmission resource of the terminal device with ID 4 is the fourth transmission resource; if the IDs are arranged in ascending order, then the transmission resource of the terminal device with ID 3 is the first transmission resource, the transmission resource of the terminal device with ID 4 is the second transmission resource, the transmission resource of the terminal device with ID 1 is the third transmission resource, and the transmission resource of the terminal device with ID 2 is the fourth transmission resource.
[0097] In some embodiments, the ID order is predefined or configured by the network device via signaling.
[0098] It should be noted that the signaling may include one or more of the following:
[0099] RRC signaling;
[0100] MAC CE signaling;
[0101] DCI signaling.
[0102] It should be noted that the signaling for configuring the ID order and the signaling carrying the first message can be the same signaling or different signaling; this application embodiment does not impose any restrictions on this.
[0103] In some embodiments, the first message may include third indication information, which is used to indicate the ID sorting order.
[0104] For example, the third indication information can indicate the ID order using a single bit.
[0105] Method #2: Based on the modulo operation result between the terminal device ID and the first parameter, one or more terminal devices are mapped to one or more transmission resources.
[0106] Understandably, the third terminal device can perform a modulo operation between its own terminal device ID and the first parameter, and determine the transmission resource index based on the result of the modulo operation.
[0107] It should be noted that the first parameter is predefined, or carried by the network device in the first message.
[0108] It should also be noted that if transmission resources are allocated to terminal devices based on the modulo operation result of the terminal device's own ID and the first parameter, it is unavoidable that multiple terminal devices may have the same modulo operation result, causing transmission conflicts among multiple terminal devices.
[0109] When multiple terminal devices have the same calculated initial transmission resource location, the network device needs to determine the actual transmission resource sending location of the multiple terminal devices according to certain rules.
[0110] In some embodiments, the terminal device may determine one or more sets of terminal devices, wherein the IDs of multiple terminal devices in each set are consistent with the result of modulo operation on the first parameter. This means that transmission resource conflicts may occur among the terminal devices in each set. Accordingly, the terminal device may determine its own set of terminal devices and, further, determine the actual transmission resources based on its position within that set to resolve resource conflicts.
[0111] In some embodiments, the network device may indicate one or more sets of terminal devices in the first message. For example, the network device may carry one or more sets of device IDs in the first message, with each set of device IDs corresponding to a set of terminal devices. As shown above, the multiple terminal device IDs in each set of terminal devices are consistent with the modulo operation result of the first parameter. Accordingly, the terminal device can determine the set of terminal devices it belongs to, and further, it can determine the actual transmission resources based on its position in the set of terminal devices to resolve resource conflicts.
[0112] It should be noted that the IDs of multiple terminal devices in each device set can be arranged in descending order of ID. For example, the IDs can be arranged in descending order of ID, or in reverse ascending order of ID.
[0113] For example, if the first parameter is 10, with 23 terminal devices whose IDs are 0, 1, 2, 3, ..., 23, the modulo operation result of the terminal device with ID 0 is the remainder after dividing 0 by 10, which is 0; the modulo operation result of the terminal device with ID 1 is the remainder after dividing 1 by 10, which is 1; the modulo operation result of the terminal device with ID 2 is the remainder after dividing 2 by 10, which is 2; the modulo operation result of the terminal device with ID 3 is the remainder after dividing 3 by 10, which is 3. Based on this calculation method, the modulo operation result of the terminal device with ID 4 is 4, the modulo operation result of the terminal device with ID 5 is 5, the modulo operation result of the terminal device with ID 6 is 6, the modulo operation result of the terminal device with ID 7 is 7, the modulo operation result of the terminal device with ID 8 is 8, and the modulo operation result of the terminal device with ID 9 is 23. The modulo operation result of the device is 9. The modulo operation result of the terminal device with ID 10 is 0. The modulo operation result of the terminal device with ID 11 is 1. The modulo operation result of the terminal device with ID 12 is 2. The modulo operation result of the terminal device with ID 13 is 3. The modulo operation result of the terminal device with ID 14 is 4. The modulo operation result of the terminal device with ID 15 is 5. The modulo operation result of the terminal device with ID 16 is 6. The modulo operation result of the terminal device with ID 17 is 7. The modulo operation result of the terminal device with ID 18 is 8. The modulo operation result of the terminal device with ID 19 is 9. The modulo operation result of the terminal device with ID 20 is 0. The modulo operation result of the terminal device with ID 21 is 1. The modulo operation result of the terminal device with ID 22 is 2. The modulo operation result of the terminal device with ID 23 is 3.Therefore, it can be concluded that the modulo operation results of terminal devices with IDs 10 and 20 are consistent, indicating a transmission resource conflict, i.e., a set of terminal devices [0, 10, 20]; the modulo operation results of terminal devices with IDs 1, 11, and 21 are consistent, indicating a transmission resource conflict, i.e., a set of terminal devices [1, 11, 21]; the modulo operation results of terminal devices with IDs 2, 12, and 22 are consistent, indicating a transmission resource conflict, i.e., a set of terminal devices [2, 12, 22]; the modulo operation results of terminal devices with IDs 3, 13, and 23 are consistent, indicating a transmission resource conflict, i.e., a set of terminal devices [3, 13, 23]; and the modulo operation results of terminal devices with IDs 4 and 14 are consistent, indicating a transmission resource conflict, i.e., a set of terminal devices [0, 10, 20]; Device sets [4, 14]; The modulo operation results of terminal devices with IDs 5 and 15 are consistent, that is, there is a conflict in transmission resources, i.e., a set of terminal devices [5, 15]; The modulo operation results of terminal devices with IDs 6 and 16 are consistent, that is, there is a conflict in transmission resources, i.e., a set of terminal devices [6, 16]; The modulo operation results of terminal devices with IDs 7 and 17 are consistent, that is, there is a conflict in transmission resources, i.e., a set of terminal devices [7, 17]; The modulo operation results of terminal devices with IDs 8 and 18 are consistent, that is, there is a conflict in transmission resources, i.e., a set of terminal devices [8, 18]; The modulo operation results of terminal devices with IDs 9 and 19 are consistent, that is, there is a conflict in transmission resources, i.e., a set of terminal devices [9, 19]; as shown in Figure 8.
[0114] It should be noted that for multiple terminal devices that may experience transmission resource conflicts, the corresponding transmission resources can be determined in different ways. Two possible implementation methods are described below.
[0115] In implementation method #A, terminal devices that experience transmission resource conflicts can decide, according to one or more sets of transmission resources, to send data in sequence on or after the conflicting transmission resources.
[0116] Wherein, if the third terminal device is a device in the first set, the third terminal device determines whether the first transmission resource is the transmission resource corresponding to the third terminal device based on the modulo operation result of the third terminal device's ID and the first parameter, the first offset, and the cumulative offset; the first offset is the position index of the third terminal device in its set of terminal devices.
[0117] If the third terminal device is a device outside the first set, the third terminal device determines whether the first transmission resource is the transmission resource corresponding to the first terminal device based on the modulo operation result of the third terminal device, the first offset, the cumulative offset, and the second parameter; the second parameter is the number of devices in the first set.
[0118] It should be noted that the first set can be a set determined from one or more sets of terminal devices based on the index of the first transmission resource. Optionally, the first set is the P-th set among one or more sets of terminal devices, where the index of the first transmission resource is greater than or equal to the total number of devices in the first P-1 sets and less than the total number of devices in the first P sets. P is an integer greater than or equal to 1.
[0119] It should be understood that in this implementation, resources can be allocated according to the order of the terminal device set. The first set can be understood as the set corresponding to the current transmission resources. Hereinafter, the first set will be referred to as the current transmission set, and the first set can also be referred to as the current terminal device set. The first transmission resource can be understood as the current transmission resource, and hereafter, the first transmission resource will be referred to as the current transmission resource.
[0120] For example, as shown in Figure 8, the set of terminal device IDs includes a set of modulo operation results in 0 [0, 10, 20], a set of modulo operation results in 1 [1, 11, 21], a set of modulo operation results in 2 [2, 12, 22], a set of modulo operation results in 3 [3, 13, 23], and so on.
[0121] When the current transmission resource is transmission resource #0, the third terminal device knows that the index of the current transmission resource is 0. It further determines that the total number of devices in set #1 (i.e. set [0, 10, 20]) that need to be allocated transmission resources is 3. Since 0 is less than 3, it means that there are devices in set #1 that have not been allocated transmission resources. Therefore, set [0, 10, 20] is considered to be the set corresponding to the current transmission resource.
[0122] Given that the current transmission resource is transmission resource #1, the third terminal device knows that the index of the current transmission resource is 1. It further determines that the total number of devices in set #1 (i.e. set [0, 10, 20]) that need to be allocated transmission resources is 3. Since 1 is less than 3, it means that there are still devices in set #1 that have not been allocated transmission resources. Therefore, it is considered that set [0, 10, 20] is still the set corresponding to the current transmission resource.
[0123] Given that the current transmission resource is transmission resource #2, the third terminal device knows that the index of the current transmission resource is 2. It further determines that the total number of devices in set #1 (i.e. set [0, 10, 20]) that need to be allocated transmission resources is 3. Since 2 is less than 3, it means that there are still devices in set #1 that have not been allocated transmission resources. Therefore, it is considered that set [0, 10, 20] is still the set corresponding to the current transmission resource.
[0124] Given that the current transmission resource is transmission resource #3, the third terminal device knows that the index of the current transmission resource is 3. It further determines that the total number of devices in set #1 (i.e., set [0, 10, 20]) and set #2 (set [1, 11, 21]) that need to be allocated transmission resources is 6. The index 3 of the current transmission resource is equal to the total number of devices in set [0, 10, 20], which is 3. However, the index 3 of the current transmission resource is less than the total number of devices in the first two sets, which is 6. This indicates that the transmission resource will be allocated to the devices in set #2. Therefore, set [1, 11, 21] is considered to be the set corresponding to the current transmission resource.
[0125] And so on.
[0126] Understandably, terminal devices can determine whether the next upcoming transmission resource (i.e., the current transmission resource) is their corresponding transmission resource before the start of each transmission resource.
[0127] In this embodiment of the application, if the third terminal device is a device in the current transmission set, the third terminal device determines whether the current transmission resource is the transmission resource corresponding to the third terminal device based on one or more of the following information:
[0128] The modulo operation result of the ID of the third terminal device and the first parameter;
[0129] First offset and cumulative offset;
[0130] The first offset is the position index of the third terminal device within its set of terminal devices;
[0131] The current transmission set is a set determined from one or more terminal devices based on the index of the current transmission resource;
[0132] For example, if the third terminal device is a device in the current transmission set, the third terminal device can determine whether the current transmission resource is the transmission resource corresponding to the third terminal device based on the calculation result of the following formula (1): Modulo operation result + (position in the set of terminal devices - 1) + cumulative offset (1)
[0133] It should be noted that if the third terminal device determines, based on the calculation result of formula (1), that the index of the current transmission resource at the next time moment is consistent with the index of the current transmission resource at the next time moment, it indicates that the current transmission resource at the next time moment is the transmission resource corresponding to the third terminal device. If the third terminal device determines, based on the calculation result of formula (1), that the index of the current transmission resource at the next time moment is inconsistent with the index of the current transmission resource at the next time moment, it indicates that the current transmission resource at the next time moment is not the transmission resource corresponding to the third terminal device.
[0134] If the third terminal device is a device outside the current transmission set, the third terminal device determines whether the current transmission resource is the transmission resource corresponding to the first terminal device based on one or more of the following information:
[0135] The modular calculation result of the third terminal device;
[0136] First offset, cumulative offset, and second parameter;
[0137] The second parameter is the number of devices in the current transmission set.
[0138] For example, if the third terminal device is a device outside the current transmission set, the third terminal device can determine whether the current transmission resource is the transmission resource corresponding to the third terminal device according to the following formula (2): Modulo operation result + (position in the set of terminal devices - 1) + cumulative offset + (number of devices in the current transmission set - 1) (2)
[0139] It should be noted that if the third terminal device determines, based on the calculation result of formula (2), that the index of the current transmission resource at the next time moment is consistent with the index of the current transmission resource at the next time moment, it indicates that the current transmission resource at the next time moment is the transmission resource corresponding to the third terminal device. If the third terminal device determines, based on the calculation result of formula (2), that the index of the current transmission resource at the next time moment is inconsistent with the index of the current transmission resource at the next time moment, it indicates that the current transmission resource at the next time moment is not the transmission resource corresponding to the third terminal device.
[0140] The following example illustrates the implementation method #A above.
[0141] When allocating transmission resources to each A-IoT device, the cumulative offset (i.e., the system cumulative offset) is 0.
[0142] Before the start time of transmission resource #0, based on its index value 0 and the multiple terminal device ID sets shown in Figure 8, it is determined that the terminal device set [0, 10, 20] with a modulo operation result of 0 has not yet been allocated transmission resources. That is, the terminal device set [0, 10, 20] is the current transmission set. Then, the transmission resource index of the terminal device with ID 0 is 0 + (1-1) + 0 = 0, the transmission resource index of the terminal device with ID 10 is 0 + (2-1) + 0 = 1, the transmission resource index of the terminal device with ID 20 is 0 + (3-1) + 0 = 2, and the transmission resource index of the terminal device with ID 1 is 1 + (1-1) + 0 + (3-1) = 0. 3 represents the number of devices in the set [0, 10, 20]. The transmission resource index of the terminal device with ID 11 is 1 + (2-1) + 0 + (3-1) = 4, the transmission resource index of the terminal device with ID 21 is 1 + (3-1) + 0 + (3-1) = 5, and so on. The transmission resource index 0 of the terminal device with ID 0 is consistent with the index value 0 of transmission resource #0, thus determining that transmission resource #0 is its corresponding transmission resource. Data is then sent through the transmission resource corresponding to transmission resource index 0 (as shown in Figure 9). Other terminal devices determine that transmission resource #0 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait. It should be noted that other terminal devices can calculate their transmission resource index according to formula (1) or formula (2) and determine whether transmission resource #0 is their corresponding transmission resource. For simplicity, this will not be elaborated here.
[0143] Before the start time of transmission resource #1, based on its index value 1 and the multiple terminal device ID sets shown in Figure 8, it is determined that there are devices in the terminal device set [0, 10, 20] whose modulo operation result is 0 that have not been allocated transmission resources. That is, the terminal device set [0, 10, 20] is still the current transmission set, so the cumulative offset is still 0. Then the transmission resource index of the terminal device with ID 10 is 0 + (2-1) + 0 = 1, the transmission resource index of the terminal device with ID 20 is 0 + (3-1) + 0 = 2, and the transmission resource index of the terminal device with ID 1 is 1 + (1-1) + 0 + (3-1) = 3. 3 is the set [0, 10, 20]. The number of devices [10, 20] is given. The transmission resource index of terminal device ID 11 is 1+(2-1)+0+(3-1)=4, the transmission resource index of terminal device ID 21 is 1+(3-1)+0+(3-1)=5, and so on. The transmission resource index 1 of terminal device ID 10 is consistent with the index value 1 of transmission resource #1. It is determined that transmission resource #1 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 1 (as shown in Figure 9). Other terminal devices determine that transmission resource #1 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait. It should be noted that other terminal devices can calculate their transmission resource index according to formula (1) or formula (2) and determine whether transmission resource #1 is their corresponding transmission resource. For simplicity, it will not be elaborated here.
[0144] Before the start time of transmission resource #2, based on its index value 2 and the multiple terminal device ID sets shown in Figure 8, it is determined that there are devices in the terminal device set [0, 10, 20] with a modulo operation result of 0 that have not been allocated transmission resources. That is, the terminal device set [0, 10, 20] is still the current transmission set, so the cumulative offset is still 0. Therefore, the transmission resource index of the terminal device with ID 20 is 0 + (3-1) + 0 = 2, and the transmission resource index of the terminal device with ID 1 is 1 + (1-1) + 0 + (3-1) = 3, where 3 is the number of devices in the set [0, 10, 20]. The transmission resource index of terminal device ID 11 is 1+(2-1)+0+(3-1)=4, the transmission resource index of terminal device ID 21 is 1+(3-1)+0+(3-1)=5, and so on. The transmission resource index 2 of terminal device ID 20 is consistent with the index value 2 of transmission resource #2. It is determined that transmission resource #2 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 2 (as shown in Figure 9). Other terminal devices determine that transmission resource #2 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0145] After allocating transmission resources to each terminal device in the terminal device set [0, 10, 20], the cumulative offset (i.e., the system cumulative offset) is updated to 2. This is because terminal devices with IDs 10 and 20 transmit before terminal device ID 1, hence the cumulative offset is updated to 2. It should be noted that the cumulative offset is incremented by 1 after each device causing an offset finishes sending data. Here, the IDs of the devices causing the offset are 10 and 20, so the cumulative offset is updated to 2.
[0146] Before the start time of transmission resource #3, based on its index value 3 and the multiple terminal device ID sets shown in Figure 8, it is determined that the devices in the terminal device set [1, 11, 21] with a modulo operation result of 1 have not yet been allocated transmission resources. That is, the terminal device set [1, 11, 21] is the current transmission set. Then, the transmission resource index of the terminal device with ID 1 is 1 + (1-1) + 2 = 3, the transmission resource index of the terminal device with ID 11 is 1 + (2-1) + 2 = 4, the transmission resource index of the terminal device with ID 21 is 1 + (3-1) + 2 = 5, and the transmission resource index of the terminal device with ID 2 is 2 + (1-1) + 2 + (3-1) + 2 = 5. =6, 3 is the number of devices in set [1, 11, 21]. The transmission resource index of terminal device with ID 12 is 2+(2-1)+2+(3-1)=7, the transmission resource index of terminal device with ID 22 is 2+(3-1)+2+(3-1)=8, and so on. The transmission resource index 3 of terminal device with ID 1 is consistent with the index value 3 of transmission resource #3. It is determined that transmission resource #3 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 3 (as shown in Figure 9). Other terminal devices determine that transmission resource #3 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0147] Before the start time of transmission resource #4, based on its index value 4 and the multiple terminal device ID sets shown in Figure 8, it is determined that there are devices in the terminal device set [1, 11, 21] with a modulo operation result of 1 that have not been allocated transmission resources. That is, the terminal device set [1, 11, 21] is still the current transmission set, so the cumulative offset is still 2. Therefore, the transmission resource index of the terminal device with ID 11 is 1+(2-1)+2=4, the transmission resource index of the terminal device with ID 21 is 1+(3-1)+2=5, the transmission resource index of the terminal device with ID 2 is 2+(1-1)+2+(3-1)=6, and 3 is the set [1, 11, 21]. The number of devices [11, 21], the transmission resource index of terminal device with ID 12 is 2+(2-1)+2+(3-1)=7, the transmission resource index of terminal device with ID 22 is 2+(3-1)+2+(3-1)=8, and so on. The transmission resource index 4 of terminal device with ID 11 is consistent with the index value 4 of transmission resource #4. It is determined that transmission resource #4 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 4 (as shown in Figure 9). Other terminal devices determine that transmission resource #4 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0148] Before the start time of transmission resource #5, based on its index value 5 and the multiple terminal device ID sets shown in Figure 8, it is determined that there are devices in the terminal device set [1, 11, 21] with a modulo operation result of 1 that have not been allocated transmission resources. That is, the terminal device set [1, 11, 21] is still the current transmission set, so the cumulative offset is still 2. Therefore, the transmission resource index of the terminal device with ID 21 is 1 + (3-1) + 2 = 5, and the transmission resource index of the terminal device with ID 2 is 2 + (1-1) + 2 + (3-1) = 6. 3 is the number of devices in the set [1, 11, 21]. The transmission resource index of terminal device ID 12 is 2+(2-1)+2+(3-1)=7, the transmission resource index of terminal device ID 22 is 2+(3-1)+2+(3-1)=8, and so on. The transmission resource index 5 of terminal device ID 21 is consistent with the index value 5 of transmission resource #5. It is determined that transmission resource #5 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 5 (as shown in Figure 9). Other terminal devices determine that transmission resource #5 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0149] After allocating transmission resources to each terminal device in the terminal device set [1, 11, 21], the cumulative offset (i.e., the system cumulative offset) is updated to 4. This is because the terminal devices with IDs 11 and 21 are inserted before the terminal device with ID 2 for transmission, so the cumulative offset is updated from 2 to 4.
[0150] Before the start time of transmission resource #6, based on its index value 6 and the multiple terminal device ID sets shown in Figure 8, it is determined that the devices in the terminal device set [2, 12, 22] with a modulo operation result of 2 have not yet been allocated transmission resources. That is, the terminal device set [2, 12, 22] is the current transmission set. Then, the transmission resource index of the terminal device with ID 2 is 2 + (1-1) + 4 = 6, the transmission resource index of the terminal device with ID 12 is 2 + (2-1) + 4 = 7, the transmission resource index of the terminal device with ID 22 is 2 + (3-1) + 4 = 8, and the transmission resource index of the terminal device with ID 3 is 3 + (1-1) + 4 + (3-1) = 9. The 3 inside the parentheses represents the number of devices in the set [2, 12, 22]. The transmission resource index of the terminal device with ID 13 is 3 + (2-1) + 4 + (3-1) = 10, the transmission resource index of the terminal device with ID 23 is 3 + (3-1) + 4 + (3-1) = 11, and so on. The transmission resource index 6 of the terminal device with ID 2 is consistent with the index value 6 of transmission resource #6. It is determined that transmission resource #6 is its corresponding transmission resource, so data is sent through the transmission resource corresponding to transmission resource index 6 (as shown in Figure 9). Other terminal devices determine that transmission resource #6 is not their corresponding transmission resource based on their own calculated transmission resource index, so they continue to wait.
[0151] And so on, without further explanation.
[0152] Based on this, for multiple terminal devices experiencing transmission resource conflicts, through the aforementioned implementation method #A, each terminal device can calculate its own actual transmission resource sending location. This resolves the problem of transmission resource conflicts among multiple terminal devices.
[0153] In implementation method #B, except for the first terminal device in the terminal device set, the other terminal devices in the terminal device set transmit on the end transmission resources according to certain rules.
[0154] Wherein, if the third terminal device is the first device in the current transmission set, the third terminal device determines whether the current transmission resource is the transmission resource corresponding to the third terminal device based on the modulo operation result of the third terminal device's ID and the first parameter; the current transmission set is a set determined from one or more terminal device sets based on the index of the current transmission resource.
[0155] If the third terminal device is another device in the current transmission set besides the first terminal device, the third terminal device determines whether the current transmission resource is the transmission resource corresponding to the third terminal device based on one or more of the following information: the modulo operation result of the third terminal device's ID and the first parameter, the second offset, the cumulative offset, and the first parameter; the second offset is the position index of the third terminal device in its set of terminal devices.
[0156] If the third terminal device is a device outside the current transmission set, and is another device in the set of terminal devices except the first terminal device, the third terminal device determines whether the current transmission resource is the transmission resource corresponding to the third terminal device based on one or more of the following information: the modulo operation result of the ID of the third terminal device and the first parameter, the second offset, the cumulative offset, the first parameter and the second parameter; the second parameter is the number of devices in the current transmission set.
[0157] It should be noted that the method for determining the current transmission set can be referred to the description in the above embodiments, and will not be elaborated here for the sake of brevity.
[0158] It should be noted that the aforementioned current transmission resource can be the transmission resource for the next moment. Understandably, the terminal device can determine whether the upcoming transmission resource is its corresponding transmission resource before the start time of each transmission resource.
[0159] In this embodiment, if the third terminal device is the first device in the current transmission set, the third terminal device can determine whether the current transmission resource is the transmission resource corresponding to the third terminal device based on the calculation result of the following formula (3). Modulo operation result of the first device (3)
[0160] It should be noted that if the third terminal device determines, based on the calculation result of formula (3), that the index of the current transmission resource at the next time moment is consistent with the index of the current transmission resource at the next time moment, it indicates that the current transmission resource at the next time moment is the transmission resource corresponding to the third terminal device. If the third terminal device determines, based on the calculation result of formula (3), that the index of the current transmission resource at the next time moment is inconsistent with the index of the current transmission resource at the next time moment, it indicates that the current transmission resource at the next time moment is not the transmission resource corresponding to the third terminal device.
[0161] Furthermore, if the third terminal device is any device other than the first device in the current transmission set, the third terminal device can determine whether the current transmission resource is the transmission resource corresponding to the third terminal device based on the calculation result of the following formula (4): Modulo operation result + (position in the set of terminal devices - 2) + cumulative offset + first parameter (4)
[0162] It should be noted that if the third terminal device determines, based on the calculation result of formula (4), that the index of the current transmission resource at the next time moment is consistent with the index of the current transmission resource at the next time moment, it indicates that the current transmission resource at the next time moment is the transmission resource corresponding to the third terminal device. If the third terminal device determines, based on the calculation result of formula (4), that the index of the current transmission resource at the next time moment is inconsistent with the index of the current transmission resource at the next time moment, it indicates that the current transmission resource at the next time moment is not the transmission resource corresponding to the third terminal device.
[0163] Furthermore, if the third terminal device is a device outside the current transmission set, and is another device in the set of terminal devices except for the first device, then the third terminal device can determine whether the current transmission resource is the transmission resource corresponding to the third terminal device based on the calculation result of the following formula (5). Modulo operation result + (position in the set of terminal devices - 2) + cumulative offset + first parameter + (number of devices in the current transmission set - 2) (5)
[0164] It should be noted that if the third terminal device determines, based on the calculation result of formula (5), that the index of the current transmission resource at the next time moment is consistent with the index of the current transmission resource at the next time moment, it indicates that the current transmission resource at the next time moment is the transmission resource corresponding to the third terminal device. If the third terminal device determines, based on the calculation result of formula (5), that the index of the current transmission resource at the next time moment is inconsistent with the index of the current transmission resource at the next time moment, it indicates that the current transmission resource at the next time moment is not the transmission resource corresponding to the third terminal device.
[0165] The following example illustrates the implementation method #B above.
[0166] When allocating transmission resources to each terminal device, the cumulative offset (i.e., the system cumulative offset) is 0.
[0167] Before the start time of transmission resource #0, based on its index value 0 and the multiple terminal device ID sets shown in Figure 8, it is determined that the terminal device set [0, 10, 20] with a modulo operation result of 0 has not yet been allocated transmission resources. That is, the terminal device set [0, 10, 20] is the current transmission set. The transmission resource index of the terminal device with ID 0 is the modulo operation result 0, the transmission resource index of the terminal device with ID 10 is 0 + (2-2) + 0 + 10 = 10, the transmission resource index of the terminal device with ID 20 is 0 + (3-2) + 0 + 10 = 11, and the transmission resource index of the terminal device with ID 1 is the modulo operation result 0. If 1, the transmission resource index of terminal device with ID 11 is 1+(2-2)+0+10+(3-2)=12, the transmission resource index of terminal device with ID 21 is 1+(3-2)+0+10+(3-2)=13, and so on. The transmission resource index 0 of terminal device with ID 0 is consistent with the index value 0 of transmission resource #0. It is determined that transmission resource #0 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 0 (as shown in Figure 10). Other terminal devices determine that transmission resource #0 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0168] Before the start time of transmission resource #1, based on its index value 1 and the multiple terminal device ID sets shown in Figure 8, it is determined that there are devices in the terminal device set [1, 11, 21] whose modulo operation result is 1 that have not been allocated transmission resources. That is, the terminal device set [1, 11, 21] is the current transmission set. Then, the transmission resource index of the terminal device with ID 10 is 0 + (2-2) + 0 + 10 = 10, the transmission resource index of the terminal device with ID 20 is 0 + (3-2) + 0 + 10 = 11, and the transmission resource index of the terminal device with ID 1 is the modulo operation result 1. The transmission resource index of the terminal device is 1+(2-2)+0+10+(3-2)=12, the transmission resource index of the terminal device with ID 21 is 1+(3-2)+0+10+(3-2)=13, and so on. The transmission resource index 1 of the terminal device with ID 1 is consistent with the index value 1 of transmission resource #1. It is determined that transmission resource #1 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 1 (as shown in Figure 10). Other terminal devices determine that transmission resource #1 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0169] Before the start time of transmission resource #2, based on its index value 2 and the multiple terminal device ID sets shown in Figure 8, it is determined that there are devices in the terminal device set [2, 12, 22] with a modulo operation result of 2 that have not been allocated transmission resources. That is, the terminal device set [2, 12, 22] is the current transmission set, so the cumulative offset is still 0. Therefore, the transmission resource index of the terminal device with ID 10 is 0 + (2-2) + 0 + 10 = 10, the transmission resource index of the terminal device with ID 20 is 0 + (3-2) + 0 + 10 + (3-2) = 11, and the transmission resource index of the terminal device with ID 2 is... The result of the modulo operation is 2. The transmission resource index of the terminal device with ID 12 is 2 + (2-2) + 0 + 10 = 12, the transmission resource index of the terminal device with ID 22 is 2 + (3-2) + 0 + 10 = 13, and so on. The transmission resource index 2 of the terminal device with ID 2 is consistent with the index value 2 of transmission resource #2. It is determined that transmission resource #2 is its corresponding transmission resource. Then, data is sent through the transmission resource corresponding to transmission resource index 2 (as shown in Figure 10). Other terminal devices determine that transmission resource #2 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0170] After allocating transmission resources to the terminal device sets [0, 10, 20], [1, 11, 21], and the first device with ID 0, 1, etc. in the other sets, the cumulative offset (i.e., the system cumulative offset) is still 0. This is because the transmission resource index of the terminal devices with ID 0, 1, etc., is the result of their respective modulo operations, and no offset has occurred, so the cumulative offset is still 0.
[0171] Similarly, the allocation of transmission resources #3 to #9 will not be elaborated here.
[0172] Before the start time of transmission resource #10, based on its index value 10 and the multiple terminal device ID sets shown in Figure 8, it is determined that there are devices in the terminal device set [0, 10, 20] whose modulo operation result is 0 that have not been allocated transmission resources. That is, the terminal device set [0, 10, 20] is still the current transmission set. At this time, the cumulative offset is still 0. Therefore, the transmission resource index of the terminal device with ID 10 is 0 + (2-2) + 0 + 10 = 10, and the transmission resource index of the terminal device with ID 20 is 0 + (3-2) + 0 + 10. =11, the transmission resource index of the terminal device with ID 11 is 1+(2-2)+0+10+(3-2)=12, and so on. The transmission resource index 10 of the terminal device with ID 10 is consistent with the index value 10 of transmission resource #10. It is determined that transmission resource #10 is its corresponding transmission resource, so data is sent through the transmission resource corresponding to transmission resource index 10 (as shown in Figure 10). Other terminal devices determine that transmission resource #10 is not their corresponding transmission resource based on their own calculated transmission resource index, so they continue to wait.
[0173] Before the start time of transmission resource #11, based on its index value 11 and the multiple terminal device ID sets shown in Figure 8, it is determined that there are devices in the terminal device set [0, 10, 20] whose modulo operation result is 0 that have not been allocated transmission resources. That is, the terminal device set [0, 10, 20] is still the current transmission set. At this time, the cumulative offset is still 0. Then the transmission resource index of the terminal device with ID 20 is 0 + (3-2) + 0 + 10 = 11, the transmission resource index of the terminal device with ID 11 is 1 + (2-2) + 0 + 10 + (3-2) = 12, and so on. The transmission resource index 20 of the terminal device with ID 20 is consistent with the index value 11 of transmission resource #11. It is determined that transmission resource #11 is its corresponding transmission resource. Then data is sent through the transmission resource corresponding to transmission resource index 11 (as shown in Figure 10). Other terminal devices determine that transmission resource #11 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0174] Before the start time of transmission resource #12, based on its index value 12 and the multiple terminal device ID sets shown in Figure 8, it is determined that there are devices in the terminal device set [1, 11, 21] with a modulo operation result of 1 that have not been allocated transmission resources. That is, the terminal device set [1, 11, 21] is the current transmission set. At this time, the cumulative offset 0 is updated to 1. Then, the transmission resource index of the terminal device with ID 11 is 1 + (2-2) + 1 + 10 = 12, and the transmission resource index of the terminal device with ID 21 is 1 + (3-2) + 1 + 1 0 = 13. The transmission resource index of terminal device with ID 12 is 2 + (2-2) + 1 + 10 + (3-2) = 14, and so on. The transmission resource index 12 of terminal device with ID 11 is consistent with the index value 12 of transmission resource #12. It is determined that transmission resource #11 is its corresponding transmission resource. Then, data is sent through the transmission resource corresponding to transmission resource index 12 (as shown in Figure 10). Other terminal devices determine that transmission resource #12 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0175] Before the start time of transmission resource #13, based on its index value 13 and the set of multiple terminal device IDs shown in Figure 8, it is determined that there are devices in the set of terminal devices [1, 11, 21] whose modulo operation result is 1 that have not been allocated transmission resources. That is, the set of terminal devices [1, 11, 21] is still the current transmission set, and the cumulative offset is still 1. Then the transmission resource index of the terminal device with ID 21 is 1 + (3-2) + 1 + 10 = 13, the transmission resource index of the terminal device with ID 12 is 2 + (2-2) + 1 + 10 + (3-2) = 14, and so on. The transmission resource index 13 of the terminal device with ID 21 is consistent with the index value 13 of transmission resource #13. It is determined that transmission resource #13 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 13 (as shown in Figure 10). Other terminal devices determine that transmission resource #13 is not their corresponding transmission resource based on their own calculated transmission resource index, and continue to wait. And so on.
[0176] Based on this, for multiple terminal devices experiencing transmission resource conflicts, through the aforementioned implementation method #B, each terminal device can calculate its own actual transmission resource sending location. This resolves the problem of transmission resource conflicts among multiple terminal devices.
[0177] As can be seen from implementation methods #A and #B, calculating the cumulative offset in real time for a single terminal device could be computationally intensive. A better solution is for the network device to inform the terminal device before the next terminal device sends data. This allows the terminal device to determine whether the next transmission resource is prepared for it based on the cumulative offset, its own ID's position within its set of terminal devices, and the current transmission resource index (an acknowledgment message sent by the network device confirming the end of the previous transmission resource).
[0178] In some embodiments, the network device sends a cumulative offset and a second parameter; the cumulative offset and / or the second parameter are used by the first terminal device to determine whether the current transmission resource is the transmission resource corresponding to the first terminal device; the first terminal device is a terminal device that has not sent data; the second parameter is the number of devices in the current transmission set; the current transmission set is a set determined from one or more terminal device sets based on the index of the current transmission resource; the current transmission resource is the transmission resource at the next moment.
[0179] Correspondingly, the third terminal device receives the cumulative offset and the second parameter.
[0180] In one feasible approach, terminal devices experiencing transmission resource conflicts can determine, based on one or more sets of transmission resources, whether to send data sequentially on the conflicting transmission resource or subsequently. If the third terminal device is a device in the current transmission set, the third terminal device determines whether the current transmission resource corresponds to it based on the modulo operation result of its ID and a first parameter, a first offset, and a cumulative offset; the first offset is the position index of the third terminal device within its set of terminal devices.
[0181] If the third terminal device is a device outside the current transmission set, the third terminal device determines whether the current transmission resource is the transmission resource corresponding to the first terminal device based on the modulo operation result of the third terminal device, the first offset, the cumulative offset, and the second parameter; the second parameter is the number of devices in the current transmission set.
[0182] In another possible implementation, except for the first terminal device in the terminal device set, the other terminal devices in the terminal device set transmit on the last transmission resource according to certain rules. If the third terminal device is the first device in the current transmission set, the third terminal device determines whether the current transmission resource is the transmission resource corresponding to the third terminal device based on the modulo operation result of the third terminal device's ID and the first parameter; the current transmission resource is the transmission resource for the next moment; the current transmission set is a set determined from one or more terminal device sets based on the index of the current transmission resource.
[0183] If the third terminal device is another device in the current transmission set besides the first terminal device, the third terminal device determines whether the current transmission resource is the transmission resource corresponding to the third terminal device based on the modulo operation result of the third terminal device's ID and the first parameter, the second offset, the cumulative offset, and the first parameter; the second offset is the position index of the third terminal device in its set of terminal devices.
[0184] If the third terminal device is a device outside the current transmission set, and is another device in the set of terminal devices except the first terminal device, the third terminal device determines whether the current transmission resource is the transmission resource corresponding to the third terminal device based on the modulo operation result of the third terminal device's ID and the first parameter, the second offset, the cumulative offset, the first parameter and the second parameter; the second parameter is the number of devices in the current transmission set.
[0185] In one example, terminal devices that experience transmission resource conflicts can decide to send data sequentially on or after the conflicting transmission resource, based on one or more sets of transmission resources. As shown in Figure 8, for the multiple sets of terminal devices [0, 10, 20], [1, 11, 21], [2, 12, 22], [3, 13, 23], before the start of the first transmission resource, based on the index 0 of the first transmission resource and the multiple set of terminal device IDs shown in Figure 8, it is determined that the set of terminal devices [10, 20] with a modulo operation result of 0 has not yet been allocated transmission resources; that is, the set of terminal devices [0, 10, 20] is the current transmission set, and the second parameter is 2. Before the start of the second transmission resource, based on the index 1 of the second transmission resource and the multiple set of terminal device IDs shown in Figure 8, it is determined that some devices in the set of terminal devices [10, 20] with a modulo operation result of 0 have not been allocated transmission resources; that is, the current transmission set is still the set of terminal devices [0, 10, 20], and the second parameter is 2. Before the start time of the third transmission resource, based on the index 2 of the third transmission resource and the multiple terminal device ID sets shown in Figure 8, it is determined that the devices in the terminal device set [1, 11, 21] with a modulo operation result of 1 have not yet been allocated transmission resources. That is, the terminal device set [1, 11, 21] is the current transmission set, i.e., the second parameter is 3. And so on.
[0186] If transmission resources are allocated to all devices in the terminal device set [0, 10, 20], the cumulative offset is updated from 0 to 2 (offset by two bits); if transmission resources are then allocated to all devices in the terminal device set [1, 11, 21], the cumulative offset is updated to 2+2 (offset by two bits), which is 4; if transmission resources are then allocated to all devices in the terminal device set [2, 12, 22], the cumulative offset is updated to 4+2 (offset by two bits), which is 6; and so on.
[0187] In another example, except for the first terminal device in one or more sets of terminal device IDs, other terminal devices transmit on the last transmission resource according to certain rules. Before the start time of the first transmission resource, based on the index 0 of the first transmission resource and the multiple sets of terminal device IDs shown in Figure 9, it is determined that the set of terminal devices [0, 10, 20] with a modulo operation result of 0 has not yet been allocated transmission resources, that is, the set of terminal devices [0, 10, 20] is the current transmission set, and the second parameter is 2. Before the start time of the second transmission resource, based on the index 1 of the second transmission resource and the multiple sets of terminal device IDs shown in Figure 9, it is determined that there are devices in the set of terminal devices [1, 11, 21] with a modulo operation result of 0 that have not been allocated transmission resources, that is, the set of terminal devices [1, 11, 21] is the current transmission set, and the second parameter is 3. Before the start time of the third transmission resource, based on index 2 of the third transmission resource and the multiple terminal device ID sets shown in Figure 9, it is determined that the devices in the terminal device set [2, 12, 22] with a modulo operation result of 1 have not yet been allocated transmission resources. That is, the terminal device set [2, 12, 22] is the current transmission set, and the second parameter is 3. This continues until the start time of the eleventh transmission resource. Based on index 10 of the eleventh transmission resource and the multiple terminal device ID sets shown in Figure 9, it is determined that the devices in the terminal device set [10, 20] with a modulo operation result of 0 have not been allocated transmission resources. That is, the terminal device set [0, 10, 20] is the current transmission set, and the second parameter is 2. And so on.
[0188] If all transmission resources are allocated to all devices in the terminal device set [0, 10, 20], the cumulative offset is updated to 1; if all transmission resources are then allocated to all devices in the terminal device set [1, 11, 21], the cumulative offset is updated to 1+1 (offset by one bit), which is 2; if all transmission resources are then allocated to all devices in the terminal device set [2, 12, 22], the cumulative offset is updated to 2+1 (offset by one bit), which is 3; and so on.
[0189] In some embodiments, the method further includes: the network device sending the modulo operation result of the ID of the terminal device corresponding to the first transmission resource and the first parameter.
[0190] Accordingly, the third terminal device receives the modulo operation result of the terminal device ID corresponding to the first transmission resource and the first parameter. If the modulo operation result of the third terminal device is inconsistent with the modulo operation result of the terminal device corresponding to the first transmission resource sent by the network device, or if the modulo operation result of the third terminal device plus 1 is inconsistent with the modulo operation result of the terminal device corresponding to the first transmission resource sent by the network device, it indicates that the third terminal device is a device other than the relevant device. Therefore, it is determined that the first transmission resource is not the transmission resource corresponding to the third terminal device, and the calculation step of the transmission resource index is no longer needed. This prevents other devices from performing unnecessary calculations, thus saving resources.
[0191] In some embodiments, the method further includes: when the third terminal device determines that the first transmission resource is the transmission resource it uses, updating the cumulative offset and sending the updated cumulative offset to the network device.
[0192] Correspondingly, after receiving the updated cumulative offset from the third terminal device, the network device then sends the updated cumulative offset via broadcast or multicast. In this way, when other terminal devices perform the calculation step of transmission resource index, they do not need to calculate the latest cumulative offset and can directly use the updated cumulative offset sent by the network device, thus saving certain resources.
[0193] Based on the above embodiments, this application example uses an RFID reader as the network device and an AIoT device as the terminal device to illustrate a resource allocation method, as follows:
[0194] The RFID reader sends a paging message (i.e., the first message), which includes mask information.
[0195] For example, if one or more A-IoT devices receive a paging message, and the first to the Mth bits and the Nth to the last bits of each A-IoT device's ID are consistent with the mask information in the paging message sent by the RFID reader, it indicates that the A-IoT device needs to upload data to the RFID reader.
[0196] Alternatively, if the first to the Mth bits of each A-IoT device's ID match the mask information in the paging message sent by the RFID reader, it indicates that the A-IoT device needs to upload data to the RFID reader.
[0197] Resource allocation method one:
[0198] The RFID reader can specify a bit (i.e., the ID order) in the paging message to indicate whether resource allocation is bottom-up or top-down. Specifically, it determines whether data transmission starts from the device with the smallest A-IoT device ID or the device with the largest. Each A-IoT device then calculates its assigned transmission resource index based on its own ID. Once its assigned transmission resource arrives, the A-IoT device transmits data.
[0199] For example, if the paging message includes a bit indicating the ID order from largest to smallest, and there are 4 A-IoT devices with IDs 1, 2, 3, and 4, then the A-IoT device with ID 1 calculates its transmission resource index as 3 (i.e., the fourth transmission resource), the A-IoT device with ID 2 calculates its transmission resource index as 2 (i.e., the third transmission resource), the A-IoT device with ID 3 calculates its transmission resource index as 1 (i.e., the second transmission resource), and the A-IoT device with ID 4 calculates its transmission resource index as 0 (i.e., the first transmission resource). If the paging message includes a bit indicating the ID order from smallest to largest, and there are 4 A-IoT devices with IDs 1, 2, 3, and 4, then the A-IoT device with ID 1 calculates its transmission resource index as 0 (i.e., the first transmission resource), the A-IoT device with ID 2 calculates its transmission resource index as 1 (i.e., the second transmission resource), the A-IoT device with ID 3 calculates its transmission resource index as 2 (i.e., the third transmission resource), and the A-IoT device with ID 4 calculates its transmission resource index as 3 (i.e., the fourth transmission resource).
[0200] Resource allocation method two:
[0201] The RFID reader can provide an anchor A-IoT device ID (i.e., a reference terminal device) in the paging message. Optionally, an order indication information (either ascending or descending) can be added. This indicates that the device-to-reader (D2R) data transmission begins from the A-IoT device corresponding to that anchor A-IoT device ID, and the subsequent transmission order of A-IoT devices is determined by the order indication information. If no order indication information is provided, the A-IoT devices will transmit D2R data sequentially according to the protocol, either ascending or descending order.
[0202] Additionally, if the order is from smallest to largest, then A-IoT devices preceding the anchor A-IoT device ID (A-IoT devices with IDs smaller than the anchor A-IoT device ID) are connected to the network following the largest A-IoT device ID, in ascending order. Conversely, if the order is from largest to smallest, then A-IoT devices following the anchor A-IoT device ID (A-IoT devices with IDs larger than the anchor A-IoT device ID) are connected to the network following the smallest A-IoT device ID, in ascending order.
[0203] For example, with four A-IoT devices and their IDs 1, 2, 3, and 4, if the anchor A-IoT device ID is 3, then the A-IoT device with ID 3 calculates its transmission resource index as 0 (i.e., the first transmission resource). If the IDs are arranged in descending order, then the A-IoT device with ID 2 calculates its transmission resource index as 1 (i.e., the second transmission resource), the A-IoT device with ID 1 calculates its transmission resource index as 2 (i.e., the third transmission resource), and the A-IoT device with ID 4 calculates its transmission resource index as 3 (i.e., the fourth transmission resource). If the IDs are arranged in ascending order, then the A-IoT device with ID 4 calculates its transmission resource index as 1 (i.e., the second transmission resource), the A-IoT device with ID 1 calculates its transmission resource index as 2 (i.e., the third transmission resource), and the A-IoT device with ID 2 calculates its transmission resource index as 3 (i.e., the fourth transmission resource).
[0204] Resource allocation method three:
[0205] The RFID reader can provide one or more sets of A-IoT device IDs that have clashed with the initial transmission resource index in the paging message. Each A-IoT device ID in each set must match the modulo result of the first parameter. The IDs of multiple A-IoT devices in each set are arranged in descending order of ID, or in reverse ascending order. The first parameter can be included in the paging message.
[0206] For example, as shown in Figure 8, the A-IOT device ID set includes sets of modulo operation results of 0 [10, 20], sets of modulo operation results of 1 [1, 11, 21], sets of modulo operation results of 2 [2, 12, 22], sets of modulo operation results of 3 [3, 13, 23], and so on.
[0207] Terminal devices experiencing transmission resource conflicts can determine whether to send data in sequence on the conflicting transmission resource or subsequently, based on one or more transmission resource sets. If any A-IoT device is a device in the current A-IoT device set (i.e., the current transmission set in the previous embodiment), then any A-IoT device determines whether the current transmission resource corresponds to any A-IoT device based on its modulo operation result + (its position in its own A-IoT device set - 1) + cumulative offset. If any A-IoT device is not in the current A-IoT device set, then any A-IoT device determines whether the current transmission resource corresponds to any A-IoT device based on its modulo operation result + (its position in its own A-IoT device set - 1) + cumulative offset + (the number of devices in the current A-IoT device set - 1). The current transmission resource becomes the transmission resource for the next time step.
[0208] For example, when the allocation of transmission resources to each A-IoT device begins, the cumulative offset (i.e., the system cumulative offset) is 0.
[0209] Before the start time of transmission resource #0, based on its index value 0 and the multiple A-IOT device ID sets shown in Figure 8, it is determined that the A-IOT device set [0, 10, 20] with a modulo operation result of 0 has not yet been allocated transmission resources. That is, the A-IOT device set [0, 10, 20] is the current transmission set. Then, the transmission resource index of the A-IOT device with ID 0 is 0 + (1-1) + 0 = 0, the transmission resource index of the A-IOT device with ID 10 is 0 + (2-1) + 0 = 1, the transmission resource index of the A-IOT device with ID 20 is 0 + (3-1) + 0 = 2, and the transmission resource index of the A-IOT device with ID 1 is 1 + (1-1) + 0 + ( 3-1) = 3, where 3 is the number of devices in the set [0, 10, 20]. The transmission resource index of the A-IOT device with ID 11 is 1+(2-1)+0+(3-1) = 4, the transmission resource index of the A-IOT device with ID 21 is 1+(3-1)+0+(3-1) = 5, and so on. The transmission resource index 0 of the A-IOT device with ID 0 is consistent with the index value 0 of transmission resource #0. It is determined that transmission resource #0 is its corresponding transmission resource, so data is sent through the transmission resource corresponding to transmission resource index 0 (as shown in Figure 9). Other A-IOT devices determine that transmission resource #0 is not their corresponding transmission resource based on their own calculated transmission resource index, so they continue to wait.
[0210] Before the start time of transmission resource #1, based on its index value 1 and the multiple A-IOT device ID sets shown in Figure 8, it is determined that there are devices in the A-IOT device set [0, 10, 20] with a modulo operation result of 0 that have not been allocated transmission resources. That is, the A-IOT device set [0, 10, 20] is still the current transmission set, so the cumulative offset is still 0. Therefore, the transmission resource index of the A-IOT device with ID 10 is 0 + (2-1) + 0 = 1, the transmission resource index of the A-IOT device with ID 20 is 0 + (3-1) + 0 = 2, and the transmission resource index of the A-IOT device with ID 1 is 1 + (1-1) + 0 + (3-1) = 3, where 3 is the set value. The number of devices in the range [0, 10, 20] is calculated. The transmission resource index of the A-IOT device with ID 11 is 1 + (2-1) + 0 + (3-1) = 4, the transmission resource index of the A-IOT device with ID 21 is 1 + (3-1) + 0 + (3-1) = 5, and so on. The transmission resource index 1 of the A-IOT device with ID 10 is consistent with the index value 1 of transmission resource #1. It is determined that transmission resource #1 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 1 (as shown in Figure 9). Other A-IOT devices determine that transmission resource #1 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0211] Before the start time of transmission resource #2, based on its index value 2 and the multiple A-IOT device ID sets shown in Figure 8, it is determined that there are devices in the A-IOT device set [0, 10, 20] with a modulo operation result of 0 that have not been allocated transmission resources. That is, the A-IOT device set [0, 10, 20] is still the current transmission set, so the cumulative offset is still 0. Therefore, the transmission resource index of the A-IOT device with ID 20 is 0 + (3-1) + 0 = 2, and the transmission resource index of the A-IOT device with ID 1 is 1 + (1-1) + 0 + (3-1) = 3. 3 is the set [0, 10, 20]. The number of devices in
[20] is as follows: the transmission resource index of A-IOT device with ID 11 is 1+(2-1)+0+(3-1)=4, the transmission resource index of A-IOT device with ID 21 is 1+(3-1)+0+(3-1)=5, and so on. The transmission resource index 2 of A-IOT device with ID 20 is consistent with the index value 2 of transmission resource #2. It is determined that transmission resource #2 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 2 (as shown in Figure 9). Other A-IOT devices determine that transmission resource #2 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0212] After allocating transmission resources to each A-IoT device in the A-IoT device set [0, 10, 20], the cumulative offset (i.e., the system cumulative offset) is updated to 2. This is because A-IoT devices with IDs 10 and 20 are inserted before A-IoT device with ID 1 for transmission, so the cumulative offset is updated to 2.
[0213] Before the start time of transmission resource #3, based on its index value 3 and the multiple A-IOT device ID sets shown in Figure 8, it is determined that the devices in the A-IOT device set [1, 11, 21] with a modulo operation result of 1 have not yet been allocated transmission resources. That is, the A-IOT device set [1, 11, 21] is the current transmission set. Then, the transmission resource index of the A-IOT device with ID 1 is 1 + (1-1) + 2 = 3, the transmission resource index of the A-IOT device with ID 11 is 1 + (2-1) + 2 = 4, the transmission resource index of the A-IOT device with ID 21 is 1 + (3-1) + 2 = 5, and the transmission resource index of the A-IOT device with ID 2 is 2 + (1-1) + 2 = 2. +(3-1)=6, where 3 is the number of devices in set [1, 11, 21]. The transmission resource index of A-IOT device with ID 12 is 2+(2-1)+2+(3-1)=7, the transmission resource index of A-IOT device with ID 22 is 2+(3-1)+2+(3-1)=8, and so on. The transmission resource index 3 of A-IOT device with ID 1 is consistent with the index value 3 of transmission resource #3. It is determined that transmission resource #3 is its corresponding transmission resource, so data is sent through the transmission resource corresponding to transmission resource index 3 (as shown in Figure 9). Other A-IOT devices determine that transmission resource #3 is not their corresponding transmission resource based on their own calculated transmission resource index, so they continue to wait.
[0214] Before the start time of transmission resource #4, based on its index value 4 and the multiple A-IOT device ID sets shown in Figure 8, it is determined that there are devices in the A-IOT device set [1, 11, 21] with a modulo operation result of 1 that have not been allocated transmission resources. That is, the A-IOT device set [1, 11, 21] is still the current transmission set, so the cumulative offset is still 2. Therefore, the transmission resource index of the A-IOT device with ID 11 is 1+(2-1)+2=4, the transmission resource index of the A-IOT device with ID 21 is 1+(3-1)+2=5, and the transmission resource index of the A-IOT device with ID 2 is 2+(1-1)+2+(3-1)=6. 3 is the set The number of devices in [1, 11, 21] is calculated. The transmission resource index of A-IOT device with ID 12 is 2 + (2-1) + 2 + (3-1) = 7, the transmission resource index of A-IOT device with ID 22 is 2 + (3-1) + 2 + (3-1) = 8, and so on. The transmission resource index 4 of A-IOT device with ID 11 is consistent with the index value 4 of transmission resource #4. It is determined that transmission resource #4 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 4 (as shown in Figure 9). Other A-IOT devices determine that transmission resource #4 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0215] Before the start time of transmission resource #5, based on its index value 5 and the multiple A-IOT device ID sets shown in Figure 8, it is determined that there are devices in the A-IOT device set [1, 11, 21] with a modulo operation result of 1 that have not been allocated transmission resources. That is, the A-IOT device set [1, 11, 21] is still the current transmission set, so the cumulative offset is still 2. Therefore, the transmission resource index of the A-IOT device with ID 21 is 1 + (3-1) + 2 = 5, and the transmission resource index of the A-IOT device with ID 2 is 2 + (1-1) + 2 + (3-1) = 6, where 3 is the number of devices in the set [1, 11, 21]. The transmission resource index of A-IoT device with ID 12 is 2 + (2-1) + 2 + (3-1) = 7, the transmission resource index of A-IoT device with ID 22 is 2 + (3-1) + 2 + (3-1) = 8, and so on. The transmission resource index 5 of A-IoT device with ID 21 is consistent with the index value 5 of transmission resource #5. It is determined that transmission resource #5 is its corresponding transmission resource, so data is sent through the transmission resource corresponding to transmission resource index 5 (as shown in Figure 9). Other A-IoT devices determine that transmission resource #5 is not their corresponding transmission resource based on their own calculated transmission resource index, so they continue to wait.
[0216] After allocating transmission resources to each A-IoT device in the A-IoT device set [1, 11, 21], the cumulative offset (i.e., the system cumulative offset) is updated to 4. This is because the A-IoT devices with IDs 11 and 21 are inserted before the terminal device with ID 2 for transmission, so the cumulative offset is updated from 2 to 4.
[0217] Before the start time of transmission resource #6, based on its index value 6 and the multiple A-IOT device ID sets shown in Figure 8, it is determined that the devices in the A-IOT device set [2, 12, 22] with a modulo operation result of 2 have not yet been allocated transmission resources. That is, the A-IOT device set [2, 12, 22] is the current transmission set. Then, the transmission resource index of the A-IOT device with ID 2 is 2 + (1-1) + 4 = 6, the transmission resource index of the A-IOT device with ID 12 is 2 + (2-1) + 4 = 7, the transmission resource index of the A-IOT device with ID 22 is 2 + (3-1) + 4 = 8, and the transmission resource index of the A-IOT device with ID 3 is 3 + (1-1) + 4 + (3-1) + 4 = 8. =9, and the 3 in the parentheses is the number of devices in set [2, 12, 22]. The transmission resource index of A-IOT device with ID 13 is 3+(2-1)+4+(3-1)=10, the transmission resource index of A-IOT device with ID 23 is 3+(3-1)+4+(3-1)=11, and so on. The transmission resource index 6 of A-IOT device with ID 2 is consistent with the index value 6 of transmission resource #6. It is determined that transmission resource #6 is its corresponding transmission resource, so data is sent through the transmission resource corresponding to transmission resource index 6 (as shown in Figure 9). Other A-IOT devices determine that transmission resource #6 is not their corresponding transmission resource based on their own calculated transmission resource index, so they continue to wait.
[0218] And so on, without further explanation.
[0219] Resource allocation method four:
[0220] The RFID reader can provide one or more sets of A-IoT device IDs that have clashed with the initial transmission resource index in the paging message. Each A-IoT device ID in each set must match the modulo result of the first parameter. The IDs of multiple A-IoT devices in each set are arranged in ID order. The ID order can be either descending or ascending. The first parameter can be included in the paging message.
[0221] For example, as shown in Figure 8, the A-IOT device ID set includes sets of modulo operation results of 0 [10, 20], sets of modulo operation results of 1 [1, 11, 21], sets of modulo operation results of 2 [2, 12, 22], sets of modulo operation results of 3 [3, 13, 23], and so on.
[0222] In cases where, except for the first A-IoT device in one or more A-IoT device ID sets, other A-IoT devices transmit on the last transmission resource according to certain rules, if any A-IoT device is the first device in the current A-IoT device set (i.e., the first set in the previous embodiment), and the current A-IoT device set is a set determined from one or more A-IoT device ID sets based on the index of the first transmission resource at the next time moment, then the transmission resource of any A-IoT device is the modulo operation result of the first device; if any A-IoT device is any other device in the current A-IoT device set besides the first device, then any A-IoT device... An IoT device determines whether a first transmission resource is a transmission resource corresponding to any A-IoT device based on its modulo operation result + (its position in its A-IoT device set - 2) + cumulative offset + a first parameter. If any A-IoT device is a device outside the current A-IoT device set, and is another device in its A-IoT device set excluding the first device, then any A-IoT device determines whether a first transmission resource is a transmission resource corresponding to any A-IoT device based on its modulo operation result + (its position in its A-IoT device set - 2) + cumulative offset + first parameter + (the number of devices in the current A-IoT device set - 2). The first transmission resource is the transmission resource for the next time step.
[0223] For example, when the allocation of transmission resources to each A-IoT device begins, the cumulative offset (i.e., the system cumulative offset) is 0.
[0224] Before the start time of transmission resource #0, based on its index value 0 and the multiple A-IOT device ID sets shown in Figure 8, it is determined that the A-IOT device set [0, 10, 20] with a modulo operation result of 0 has not yet been allocated transmission resources. That is, the A-IOT device set [0, 10, 20] is the current transmission set. The transmission resource index of the A-IOT device with ID 0 is the modulo operation result 0, the transmission resource index of the A-IOT device with ID 10 is 0 + (2-2) + 0 + 10 = 10, the transmission resource index of the A-IOT device with ID 20 is 0 + (3-2) + 0 + 10 = 11, and the transmission resource index of the A-IOT device with ID 1 is... The result of the modulo operation is 1. The transmission resource index of the A-IOT device with ID 11 is 1+(2-2)+0+10+(3-2)=12, the transmission resource index of the A-IOT device with ID 21 is 1+(3-2)+0+10+(3-2)=13, and so on. The transmission resource index 0 of the A-IOT device with ID 0 is consistent with the index value 0 of transmission resource #0. It is determined that transmission resource #0 is its corresponding transmission resource, so data is sent through the transmission resource corresponding to transmission resource index 0 (as shown in Figure 10). Other A-IOT devices determine that transmission resource #0 is not their corresponding transmission resource based on their own calculated transmission resource index, so they continue to wait.
[0225] Before the start time of transmission resource #1, based on its index value 1 and the multiple A-IOT device ID sets shown in Figure 8, it is determined that there are devices in the A-IOT device set [1, 11, 21] with a modulo operation result of 1 that have not been allocated transmission resources. That is, the A-IOT device set [1, 11, 21] is the current transmission set. Then, the transmission resource index of the A-IOT device with ID 10 is 0 + (2-2) + 0 + 10 = 10, the transmission resource index of the A-IOT device with ID 20 is 0 + (3-2) + 0 + 10 = 11, and the transmission resource index of the A-IOT device with ID 1 is the modulo operation result 1. The transmission resource index of A-IoT device ID 1 is 1+(2-2)+0+10+(3-2)=12, the transmission resource index of A-IoT device ID 21 is 1+(3-2)+0+10+(3-2)=13, and so on. The transmission resource index 1 of A-IoT device ID 1 is consistent with the index value 1 of transmission resource #1. It is determined that transmission resource #1 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 1 (as shown in Figure 10). Other A-IoT devices determine that transmission resource #1 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0226] Before the start time of transmission resource #2, based on its index value 2 and the multiple A-IOT device ID sets shown in Figure 8, it is determined that there are devices in the A-IOT device set [2, 12, 22] with a modulo operation result of 2 that have not been allocated transmission resources. That is, the A-IOT device set [2, 12, 22] is the current transmission set, so the cumulative offset is still 0. Therefore, the transmission resource index of the A-IOT device with ID 10 is 0 + (2-2) + 0 + 10 = 10, the transmission resource index of the A-IOT device with ID 20 is 0 + (3-2) + 0 + 10 + (3-2) = 11, and the transmission resource index of the terminal device with ID 2 is... The result of the modulo operation is 2. The transmission resource index of the A-IOT device with ID 12 is 2 + (2-2) + 0 + 10 = 12, the transmission resource index of the A-IOT device with ID 22 is 2 + (3-2) + 0 + 10 = 13, and so on. The transmission resource index 2 of the A-IOT device with ID 2 is consistent with the index value 2 of transmission resource #2. It is determined that transmission resource #2 is its corresponding transmission resource, so data is sent through the transmission resource corresponding to transmission resource index 2 (as shown in Figure 10). Other A-IOT devices determine that transmission resource #2 is not their corresponding transmission resource based on their own calculated transmission resource index, so they continue to wait.
[0227] After allocating transmission resources to the A-IoT device sets [0, 10, 20], [1, 11, 21], and the first device with ID 0, 1, etc. in other sets, the cumulative offset (i.e., the system cumulative offset) is still 0. This is because the transmission resource index of the A-IoT devices with ID 0, 1, etc., is the result of their respective modulo operations, and no offset has occurred, so the cumulative offset is still 0.
[0228] Similarly, the allocation of transmission resources #3 to #9 will not be elaborated here.
[0229] Before the start time of transmission resource #10, based on its index value 10 and the multiple A-IOT device ID sets shown in Figure 8, it is determined that there are devices in the A-IOT device set [0, 10, 20] with a modulo operation result of 0 that have not been allocated transmission resources. That is, the A-IOT device set [0, 10, 20] is still the current transmission set. At this time, the cumulative offset is still 0. Therefore, the transmission resource index of the A-IOT device with ID 10 is 0 + (2-2) + 0 + 10 = 10, and the transmission resource index of the A-IOT device with ID 20 is 0 + (3-2) + 0. +10 = 11. The transmission resource index of the A-IoT device with ID 11 is 1 + (2-2) + 0 + 10 + (3-2) = 12, and so on. The transmission resource index 10 of the A-IoT device with ID 10 is consistent with the index value 10 of transmission resource #10. It is determined that transmission resource #10 is its corresponding transmission resource. Then, data is sent through the transmission resource corresponding to transmission resource index 10 (as shown in Figure 10). Other A-IoT devices determine that transmission resource #10 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0230] Before the start time of transmission resource #11, based on its index value 11 and the multiple A-IOT device ID sets shown in Figure 8, it is determined that there are devices in the A-IOT device sets [0, 10, 20] with a modulo operation result of 0 that have not been allocated transmission resources. That is, the A-IOT device set [0, 10, 20] is still the current transmission set. At this time, the cumulative offset is still 0. Then the transmission resource index of the A-IOT device with ID 20 is 0+(3-2)+0+10=11, the transmission resource index of the A-IOT device with ID 11 is 1+(2-2)+0+10+(3-2)=12, and so on. The transmission resource index 20 of the A-IOT device with ID 20 is consistent with the index value 11 of transmission resource #11. It is determined that transmission resource #11 is its corresponding transmission resource. Then, data is sent through the transmission resource corresponding to transmission resource index 11 (as shown in Figure 10). Other A-IOT devices determine that transmission resource #11 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0231] Before the start time of transmission resource #12, based on its index value 12 and the multiple A-IOT device ID sets shown in Figure 8, it is determined that there are devices in the A-IOT device set [1, 11, 21] with a modulo operation result of 1 that have not been allocated transmission resources. That is, the A-IOT device set [1, 11, 21] is the current transmission set. At this time, the cumulative offset 0 is updated to 1. Then, the transmission resource index of the A-IOT device with ID 11 is 1 + (2-2) + 1 + 10 = 12, and the transmission resource index of the A-IOT device with ID 21 is 1 + (3-2) + 1+10=13. The transmission resource index of the A-IoT device with ID 12 is 2+(2-2)+1+10+(3-2)=14, and so on. The transmission resource index 12 of the A-IoT device with ID 11 is consistent with the index value 12 of transmission resource #12. It is determined that transmission resource #11 is its corresponding transmission resource. Then, data is sent through the transmission resource corresponding to transmission resource index 12 (as shown in Figure 10). Other A-IoT devices determine that transmission resource #12 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0232] Before the start time of transmission resource #13, based on its index value 13 and the multiple A-IOT device ID sets shown in Figure 8, it is determined that there are devices in the terminal device set [1, 11, 21] with a modulo operation result of 1 that have not been allocated transmission resources. That is, the A-IOT device set [1, 11, 21] is still the current transmission set. At this time, the cumulative offset is still 1. Then the transmission resource index of the A-IOT device with ID 21 is 1+(3-2)+1+10=13, the transmission resource index of the A-IOT device with ID 12 is 2+(2-2)+1+10+(3-2)=14, and so on. The transmission resource index 13 of the A-IOT device with ID 21 is consistent with the index value 13 of transmission resource #13. It is determined that transmission resource #13 is its corresponding transmission resource. Then, data is sent through the transmission resource corresponding to transmission resource index 13 (as shown in Figure 10). Other A-IOT devices determine that transmission resource #13 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait. And so on.
[0233] And so on, without further explanation.
[0234] Based on this, for multiple terminal devices experiencing transmission resource conflicts, each terminal device can calculate its own actual transmission resource transmission location using resource configuration method three or four described above. This resolves the problem of transmission resource conflicts among multiple terminal devices.
[0235] As can be seen from resource allocation methods three and four, calculating the cumulative offset in real time for a single terminal device could be computationally intensive. A better solution is for the network device to inform the terminal device before the next terminal device sends data. This allows the terminal device to determine whether the next transmission resource is prepared for it based on the cumulative offset, its own ID's position in the set of terminal devices, and the current transmission resource index (an acknowledgment message sent by the network device confirming the end of the previous transmission resource).
[0236] In one example, when a terminal device that has a conflicting transmission resource decides to allocate transmission resources to each A-IoT device based on one or more sets of transmission resources, the cumulative offset (i.e., the system cumulative offset) is 0, provided that the conflicting transmission resources are used or data is sent sequentially thereafter.
[0237] Before the start time of transmission resource #0, the current set of A-IOT devices is set [0, 10, 20]. Therefore, the transmission resource index of the A-IOT device with ID 0 is 0 + (1-1) + 0 = 0, the transmission resource index of the A-IOT device with ID 10 is 0 + (2-1) + 0 = 1, the transmission resource index of the A-IOT device with ID 20 is 0 + (3-1) + 0 = 2, and the transmission resource index of the A-IOT device with ID 1 is 1 + (1-1) + 0 + (3-1) = 3, where 3 is the number of devices in set [0, 10, 20]. The A-IOT device with ID 11... The transmission resource index of the IoT device is 1+(2-1)+0+(3-1)=4, the transmission resource index of the A-IoT device with ID 21 is 1+(3-1)+0+(3-1)=5, and so on. The transmission resource index 0 of the A-IoT device with ID 0 is consistent with the index value 0 of transmission resource #0. It is determined that transmission resource #0 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 0 (as shown in Figure 9). Other A-IoT devices determine that transmission resource #0 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0238] After the start time of transmission resource #0, the A-IOT device with ID 0 corresponding to transmission resource #0 sends the current cumulative offset of 0 to the RFID reader, and the RFID reader sends the current cumulative offset of 0. This is illustrated in Figure 11. Other A-IOT devices refer to devices that have not performed uplink transmission or have not sent data.
[0239] Before the start time of transmission resource #1, the current A-IOT device set is still set [0, 10, 20]. Each A-IOT device receives a cumulative offset of 0 from the RFID reader. Therefore, the transmission resource index of A-IOT device with ID 10 is 0 + (2-1) + 0 = 1, the transmission resource index of A-IOT device with ID 20 is 0 + (3-1) + 0 = 2, and the transmission resource index of A-IOT device with ID 1 is 1 + (1-1) + 0 + (3-1) = 3, where 3 is the number of devices in set [0, 10, 20]. The A-IOT device with ID 11... The transmission resource index of the device is 1+(2-1)+0+(3-1)=4. The transmission resource index of the A-IOT device with ID 21 is 1+(3-1)+0+(3-1)=5, and so on. The transmission resource index 1 of the A-IOT device with ID 10 is consistent with the index value 1 of transmission resource #1. It is determined that transmission resource #1 is its corresponding transmission resource, so data is sent through the transmission resource corresponding to transmission resource index 1 (as shown in Figure 9). Other A-IOT devices determine that transmission resource #1 is not their corresponding transmission resource based on their own calculated transmission resource index, so they continue to wait.
[0240] After the start time of transmission resource #1, the A-IOT device with ID 10 corresponding to transmission resource #1 sends the current cumulative offset 0 to the RFID reader, and the RFID reader sends the current cumulative offset 0.
[0241] Before the start time of transmission resource #2, the current set of A-IoT devices is set [0, 10, 20]. Each A-IoT device receives a cumulative offset of 0 from the RFID reader. Therefore, the transmission resource index of A-IoT device with ID 20 is 0 + (3-1) + 0 = 2, the transmission resource index of A-IoT device with ID 1 is 1 + (1-1) + 0 + (3-1) = 3, where 3 is the number of devices in set [0, 10, 20], and the transmission resource index of A-IoT device with ID 11 is 1 + (2-1). +0+(3-1)=4, the transmission resource index of the A-IOT device with ID 21 is 1+(3-1)+0+(3-1)=5, and so on. The transmission resource index 2 of the A-IOT device with ID 20 is consistent with the index value 2 of transmission resource #2. It is determined that transmission resource #2 is its corresponding transmission resource, so data is sent through the transmission resource corresponding to transmission resource index 2 (as shown in Figure 9). Other A-IOT devices determine that transmission resource #2 is not their corresponding transmission resource based on their own calculated transmission resource index, so they continue to wait.
[0242] After the start time of transmission resource #2, the A-IOT device with ID 20 corresponding to transmission resource #1 updates the cumulative offset to 2 and sends the current cumulative offset 2 to the RFID reader, which then sends the current cumulative offset 2.
[0243] Before the start time of transmission resource #3, the current set of A-IoT devices is set [1, 11, 21]. Each A-IoT device receives a cumulative offset of 2 from the RFID reader. Therefore, the transmission resource index of A-IoT device with ID 1 is 1 + (1-1) + 2 = 3, the transmission resource index of A-IoT device with ID 11 is 1 + (2-1) + 2 = 4, the transmission resource index of A-IoT device with ID 21 is 1 + (3-1) + 2 = 5, and the transmission resource index of A-IoT device with ID 2 is 2 + (1-1) + 2 + (3-1) = 6. 3 represents the set [1, 11, 21]. The number of devices is as follows: the transmission resource index of A-IOT device with ID 12 is 2 + (2-1) + 2 + (3-1) = 7, the transmission resource index of A-IOT device with ID 22 is 2 + (3-1) + 2 + (3-1) = 8, and so on. The transmission resource index 3 of A-IOT device with ID 1 is consistent with the index value 3 of transmission resource #3. It is determined that transmission resource #3 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 3 (as shown in Figure 9). Other A-IOT devices determine that transmission resource #3 is not their corresponding transmission resource based on their own calculated transmission resource index, and then continue to wait.
[0244] Similarly, the allocation of the remaining transmission resources will not be elaborated here.
[0245] In another example, if, except for the first A-IoT device in one or more A-IoT device ID sets, other A-IoT devices transmit on the last transmission resource according to certain rules, the cumulative offset (i.e., the system cumulative offset) is 0 when allocating transmission resources to each A-IoT device. Before the start time of transmission resource #0, the current A-IoT device set is set [0, 10, 20]. Then, the transmission resource index of the A-IoT device with ID 0 is the modulo operation result 0, the transmission resource index of the A-IoT device with ID 10 is 0 + (2-2) + 0 + 10 = 10, the transmission resource index of the A-IoT device with ID 20 is 0 + (3-2) + 0 + 10 = 11, the transmission resource index of the A-IoT device with ID 1 is the modulo operation result 1, and the transmission resource index of the A-IoT device with ID 11 is 1 + (2-2) + 0 + 10 = 11. 2) + 0 + 10 + (3-2) = 12. The transmission resource index of the A-IOT device with ID 21 is 1 + (3-2) + 0 + 10 + (3-2) = 13, and so on. The transmission resource index 0 of the A-IOT device with ID 0 is consistent with the index value 0 of transmission resource #0. It is determined that transmission resource #0 is its corresponding transmission resource, so data is sent through the transmission resource corresponding to transmission resource index 0 (as shown in Figure 10). Other A-IOT devices determine that transmission resource #0 is not their corresponding transmission resource based on their own calculated transmission resource index, so they continue to wait.
[0246] After the start time of transmission resource #0, the A-IOT device with ID 0 corresponding to transmission resource #0 sends the current cumulative offset 0 to the RFID reader, and the RFID reader sends the current cumulative offset 0.
[0247] Before the start time of transmission resource #1, the current A-IOT device set is still set [0, 10, 20]. Each A-IOT device receives a cumulative offset of 0 from the RFID reader. Therefore, the transmission resource index of A-IOT device with ID 10 is 0 + (2-2) + 0 + 10 = 10, the transmission resource index of A-IOT device with ID 20 is 0 + (3-2) + 0 + 10 = 11, the transmission resource index of A-IOT device with ID 1 is the modulo operation result 1, and the transmission resource index of A-IOT device with ID 11 is 1 + (2-2) + 0 + 10 = 10. 2) + 0 + 10 + (3-2) = 12. The transmission resource index of the A-IOT device with ID 21 is 1 + (3-2) + 0 + 10 + (3-2) = 13, and so on. The transmission resource index 1 of the A-IOT device with ID 1 is consistent with the index value 1 of transmission resource #1. It is determined that transmission resource #1 is its corresponding transmission resource, so data is sent through the transmission resource corresponding to transmission resource index 1 (as shown in Figure 10). Other A-IOT devices determine that transmission resource #1 is not their corresponding transmission resource based on their own calculated transmission resource index, so they continue to wait.
[0248] After the start time of transmission resource #1, the A-IOT device with ID 1 corresponding to transmission resource #1 still sends the cumulative offset 0 to the RFID reader, and the RFID reader sends the current cumulative offset 0.
[0249] Similarly, the allocation of transmission resources #2 to #9 will not be elaborated here.
[0250] Before the start time of transmission resource #10, the current A-IOT device set is [0, 10, 20]. Each A-IOT device still has a cumulative offset of 0 obtained from the RFID reader. Therefore, the transmission resource index of A-IOT device with ID 10 is 0 + (2-2) + 0 + 10 = 10, the transmission resource index of A-IOT device with ID 20 is 0 + (3-2) + 0 + 10 = 11, the transmission resource index of A-IOT device with ID 11 is 1 + (2-2) + 0 + 10 + (3-2) = 12, and so on. The transmission resource index 10 of A-IOT device with ID 10 is consistent with the index value 10 of transmission resource #10. It is determined that transmission resource #10 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 10 (as shown in Figure 10). Other A-IOT devices determine that transmission resource #10 is not their corresponding transmission resource based on their own calculated transmission resource index, and continue to wait.
[0251] After the start time of transmission resource #10, the A-IOT device with ID 10 corresponding to transmission resource #10 still sends the cumulative offset 0 to the RFID reader, and the RFID reader sends the current cumulative offset 0.
[0252] Before the start time of transmission resource #11, the current A-IOT device set is [0, 10, 20]. Each A-IOT device obtains a cumulative offset of 0 from the RFID reader. Therefore, the transmission resource index of A-IOT device with ID 20 is 0 + (3-2) + 0 + 10 = 11, the transmission resource index of A-IOT device with ID 11 is 1 + (2-2) + 0 + 10 + (3-2) = 12, and so on. The transmission resource index 11 of A-IOT device with ID 20 is consistent with the index value 11 of transmission resource #11. It is determined that transmission resource #11 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 11 (as shown in Figure 10). Other A-IOT devices determine that transmission resource #11 is not their corresponding transmission resource based on their own calculated transmission resource index, and continue to wait.
[0253] After the start time of transmission resource #11, the A-IOT device with ID 20 corresponding to transmission resource #11 updates the cumulative offset to 1 and sends the current cumulative offset 1 to the RFID reader, which then sends the current cumulative offset 1.
[0254] Before the start time of transmission resource #12, the current A-IOT device set is [1, 11, 21]. Each A-IOT device obtains a cumulative offset of 1 from the RFID reader. Therefore, the transmission resource index of A-IOT device with ID 11 is 1+(2-2)+1+10=12, the transmission resource index of A-IOT device with ID 21 is 1+(3-2)+1+10=13, the transmission resource index of A-IOT device with ID 12 is 2+(2-2)+1+10+(3-2)=14, and so on. The transmission resource index 12 of A-IOT device with ID 11 is consistent with the index value 12 of transmission resource #12. It is determined that transmission resource #12 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 12 (as shown in Figure 10). Other A-IOT devices determine that transmission resource #12 is not their corresponding transmission resource based on their own calculated transmission resource index, and continue to wait.
[0255] After the start time of transmission resource #12, the A-IOT device with ID 11 corresponding to transmission resource #12 sends the current cumulative offset 1 to the RFID reader, and the RFID reader sends the current cumulative offset 1.
[0256] Before the start time of transmission resource #13, the current A-IOT device set is [1, 11, 21]. Each A-IOT device obtains a cumulative offset of 1 from the RFID reader. Therefore, the transmission resource index of A-IOT device with ID 21 is 1+(3-2)+1+10=13, the transmission resource index of A-IOT device with ID 12 is 2+(2-2)+1+10+(3-2)=14, and so on. The transmission resource index 13 of A-IOT device with ID 21 is consistent with the index value 13 of transmission resource #13. It is determined that transmission resource #13 is its corresponding transmission resource, and data is sent through the transmission resource corresponding to transmission resource index 13 (as shown in Figure 10). Other A-IOT devices determine that transmission resource #13 is not their corresponding transmission resource based on their own calculated transmission resource index, and continue to wait.
[0257] Similarly, the allocation of the remaining transmission resources will not be elaborated here.
[0258] Furthermore, after the start time of the current transmission resource (i.e., the transmission resource at the next moment), the RFID reader sends the ID of the A-IoT device corresponding to the current transmission resource and the modulo operation result of the first parameter. In this way, only the devices in the current A-IoT device set corresponding to this modulo operation result, and the devices in the next set of the current A-IoT device set, execute the transmission resource index calculation step. This prevents devices in subsequent A-IoT device sets from performing unnecessary calculations, thus saving resources.
[0259] The preferred embodiments of this application have been described in detail above with reference to the accompanying drawings. However, this application is not limited to the specific details of the above embodiments. Within the scope of the technical concept of this application, various simple modifications can be made to the technical solutions of this application, and these simple modifications all fall within the protection scope of this application. For example, the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, this application will not describe the various possible combinations separately. Furthermore, various different embodiments of this application can also be arbitrarily combined, as long as they do not violate the spirit of this application, they should also be considered as the content disclosed in this application. Moreover, without conflict, the various embodiments and / or the technical features in the various embodiments described in this application can be arbitrarily combined with the prior art, and the resulting technical solutions should also fall within the protection scope of this application.
[0260] It should also be understood that in the various method embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. Furthermore, in the embodiments of this application, the terms "downlink," "uplink," and "sidelink" are used to indicate the transmission direction of signals or data. "Downlink" indicates that the transmission direction of signals or data is a first direction from the site to the user equipment in the cell; "uplink" indicates that the transmission direction of signals or data is a second direction from the user equipment in the cell to the site; and "sidelink" indicates that the transmission direction of signals or data is a third direction from user equipment 1 to user equipment 2. For example, "downlink signal" indicates that the transmission direction of the signal is the first direction. Additionally, in the embodiments of this application, the term "and / or" is merely a description of the association relationship between related objects, indicating that three relationships can exist. Specifically, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0261] Based on the foregoing embodiments, this application provides a corresponding resource configuration device.
[0262] Figure 12 is a schematic diagram of the structure of a resource configuration device provided in an embodiment of this application, applied to a network device. As shown in Figure 12, the resource configuration device 1200 includes:
[0263] The sending unit 1201 is configured to send a first message to the network device. The first message is used to configure the transmission resources of each of the one or more terminal devices.
[0264] In some embodiments, the first message includes first indication information, which is used to indicate one or more terminal devices.
[0265] In some embodiments, the first indication information is mask information, and one or more terminal devices include terminal devices whose first bit in the identifier ID is consistent with the mask information.
[0266] In some embodiments, the first bit includes at least one of the following:
[0267] The ID is represented by the first bit to the Mth bit; M is an integer greater than 1.
[0268] The Mth bit to the Nth bit in ID, where M < N, and N is an integer greater than 1;
[0269] From the Nth bit to the last bit in the ID.
[0270] In some embodiments, the first bit is predefined by the protocol or configured by the network device via signaling.
[0271] In some embodiments, the first message further includes second indication information, which is used to indicate one or more transmission resources, and the one or more transmission resources correspond one-to-one with one or more terminal devices.
[0272] In some embodiments, one or more terminal devices correspond one-to-one with one or more transmission resources according to the ID arrangement order; the ID arrangement order is either from largest to smallest, or from smallest to largest in reverse order.
[0273] In some embodiments, the first message is further used to indicate a reference terminal device, wherein the transmission resource corresponding to the reference terminal device is the first transmission resource among one or more transmission resources; the other terminal devices among the one or more terminal devices, excluding the reference terminal device, correspond one-to-one with the other transmission resources according to the ID arrangement order; the ID arrangement order is either from largest to smallest, or from smallest to largest in reverse order.
[0274] In some embodiments, the ID order is predefined or configured by the network device via signaling.
[0275] In some embodiments, the first message includes third indication information, which is used to indicate the ID sorting order.
[0276] In some embodiments, the first message may further include one or more terminal device IDs, and a set of terminal device IDs whose modulo operation result with the first parameter is consistent with the terminal device IDs.
[0277] In some embodiments, the sending unit 1201 is configured to send a cumulative offset and a second parameter to the network device; the cumulative offset and / or the second parameter are used by the first terminal device to determine whether the first transmission resource is a transmission resource corresponding to the first terminal device; the first terminal device is a terminal device that has not sent data; the second parameter is the number of devices in the first set; the first set is a set determined from one or more sets of terminal devices based on the index of the first transmission resource; the first transmission resource is the transmission resource at the next time moment.
[0278] In some embodiments, the sending unit 1201 is configured to send the modulo operation result of the ID of the terminal device corresponding to the first transmission resource and the first parameter to the network device.
[0279] In some embodiments, the system further includes a receiving unit configured to receive an updated cumulative offset sent by a second terminal device, wherein the second terminal device is the terminal device corresponding to the first transmission resource.
[0280] Figure 13 is a schematic diagram of the structure of the resource allocation device provided in this application embodiment, applied to a third terminal device. As shown in Figure 13, the resource allocation device 1300 includes:
[0281] The receiving unit 1301 is configured to receive a first message sent by a network device by a third terminal device. The first message is used to configure the transmission resources of each of the one or more terminal devices, including the third terminal device.
[0282] In some embodiments, the first message includes first indication information, which is used to indicate one or more terminal devices.
[0283] In some embodiments, the first indication information is mask information, and one or more terminal devices include terminal devices whose first bit in the ID is consistent with the mask information.
[0284] In some embodiments, the first bit includes at least one of the following:
[0285] The ID is represented by the first bit to the Mth bit; M is an integer greater than 1.
[0286] The Mth bit to the Nth bit in ID, where M < N, and N is an integer greater than 1;
[0287] From the Nth bit to the last bit in the ID.
[0288] In some embodiments, the first bit is predefined by the protocol or configured by the network device via signaling.
[0289] In some embodiments, the first message further includes second indication information, which is used to indicate one or more transmission resources, and the one or more transmission resources correspond one-to-one with one or more terminal devices.
[0290] In some embodiments, one or more terminal devices correspond one-to-one with one or more transmission resources according to the ID arrangement order; the ID arrangement order is either from largest to smallest, or from smallest to largest in reverse order.
[0291] In some embodiments, the first message is further used to indicate a reference terminal device, wherein the transmission resource corresponding to the reference terminal device is the first transmission resource among one or more transmission resources; the other terminal devices among the one or more terminal devices, excluding the reference terminal device, correspond one-to-one with the other transmission resources according to the ID arrangement order; the ID arrangement order is either from largest to smallest, or from smallest to largest in reverse order.
[0292] In some embodiments, the ID order is predefined or configured by the network device via signaling.
[0293] In some embodiments, the first message includes third indication information, which is used to indicate the ID sorting order.
[0294] In some embodiments, the first message may further include one or more terminal device IDs, and a set of terminal device IDs whose modulo operation result with the first parameter is consistent with the terminal device IDs.
[0295] In some embodiments, a determining unit is further included, configured to:
[0296] If the third terminal device is a device in the first set, the third terminal device determines whether the first transmission resource is the transmission resource corresponding to the third terminal device based on one or more of the following information: the modulo operation result of the third terminal device's ID and the first parameter, the first offset, and the cumulative offset; the first offset is the position index of the third terminal device in its set of terminal devices; the first transmission resource is the transmission resource at the next moment; the first set is a set determined from one or more sets of terminal devices based on the index of the first transmission resource.
[0297] If the third terminal device is a device outside the first set, the third terminal device determines whether the first transmission resource is the transmission resource corresponding to the first terminal device based on one or more of the following information: the modulo operation result of the third terminal device, the first offset, the cumulative offset, and the second parameter; the second parameter is the number of devices in the first set.
[0298] In some embodiments, a determining unit is further included, configured to:
[0299] If the third terminal device is the first device in the first set, then the third terminal device determines whether the first transmission resource is the transmission resource corresponding to the third terminal device based on the modulo operation result of the third terminal device's ID and the first parameter; the first transmission resource is the transmission resource at the next moment; the first set is a set determined from one or more terminal device sets based on the index of the first transmission resource.
[0300] If the third terminal device is another device in the first set besides the first terminal device, the third terminal device determines whether the first transmission resource is the transmission resource corresponding to the third terminal device based on one or more of the following information: the modulo operation result of the third terminal device's ID and the first parameter, the second offset, the cumulative offset, and the first parameter; the second offset is the position index of the third terminal device in the set of terminal devices to which it belongs;
[0301] If the third terminal device is a device outside the first set, and is another device in the set of terminal devices except the first terminal device, the third terminal device determines whether the first transmission resource is the transmission resource corresponding to the third terminal device based on one or more of the following information: the modulo operation result of the ID of the third terminal device and the first parameter, the second offset, the cumulative offset, the first parameter and the second parameter; the second parameter is the number of devices in the first set.
[0302] In some embodiments, the receiving unit 1301 is configured to receive the modulo operation result of the ID of the terminal device corresponding to the first transmission resource and the first parameter sent by the network device; if the third terminal device determines that the third terminal device is another device other than the related device based on the modulo operation result of the ID of the terminal device corresponding to the first transmission resource and the first parameter, the first transmission resource is determined to be a transmission resource corresponding to the third terminal device; the related devices include devices in the first set and devices in the next nearest set of the first set.
[0303] In some embodiments, a sending unit is also included, configured to accumulate the offset and the second parameter as being sent by the network device to the third terminal device.
[0304] In some embodiments, an update unit is further included, configured to update the cumulative offset and send the updated cumulative offset to the network device when the third terminal device determines that the first transmission resource is the transmission resource used.
[0305] Figure 14 is a schematic structural diagram of a communication device 1400 provided in an embodiment of this application. This communication device can be a terminal device or a network device. The communication device 1400 shown in Figure 14 includes a processor 1401, which can call and run computer programs from memory to implement the methods in the embodiments of this application.
[0306] Optionally, as shown in FIG14, the communication device 1400 may further include a memory 1402. The processor 1401 may retrieve and run computer programs from the memory 1402 to implement the methods in the embodiments of this application.
[0307] The memory 1402 can be a separate device independent of the processor 1401, or it can be integrated into the processor 1401.
[0308] Optionally, as shown in FIG14, the communication device 1400 may further include a transceiver 1403, and the processor 1401 may control the transceiver 1403 to communicate with other devices. Specifically, it may send information or data to other devices or receive information or data sent by other devices.
[0309] The transceiver 1403 may include a transmitter and a receiver. The transceiver 1403 may further include an antenna, and the number of antennas may be one or more.
[0310] Optionally, the communication device 1400 may specifically be a network device in the embodiments of this application, and the communication device 1400 may implement the corresponding processes implemented by the network device in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0311] Optionally, the communication device 1400 may specifically be a mobile terminal / terminal device in the embodiments of this application, and the communication device 1400 may implement the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0312] Figure 15 is a schematic structural diagram of a chip according to an embodiment of this application. The chip 1500 shown in Figure 15 includes a processor 1501, which can call and run computer programs from memory to implement the methods in the embodiments of this application.
[0313] Optionally, as shown in FIG15, chip 1500 may further include memory 1502. Processor 1501 can call and run computer programs from memory 1502 to implement the methods in the embodiments of this application.
[0314] The memory 1502 can be a separate device independent of the processor 1501, or it can be integrated into the processor 1501.
[0315] Optionally, the chip 1500 may also include an input interface 1503. The processor 1501 can control the input interface 1503 to communicate with other devices or chips; specifically, it can acquire information or data sent by other devices or chips.
[0316] Optionally, the chip 1500 may also include an output interface 1504. The processor 1501 can control the output interface 1504 to communicate with other devices or chips, specifically, to output information or data to other devices or chips.
[0317] Optionally, the chip can be applied to the network device in the embodiments of this application, and the chip can implement the corresponding processes implemented by the network device in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0318] Optionally, the chip can be applied to the mobile terminal / terminal device in the embodiments of this application, and the chip can implement the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0319] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0320] Figure 16 is a schematic block diagram of a communication system 1600 provided in an embodiment of this application. As shown in Figure 16, the communication system 1600 includes a terminal device 1601 and a network device 1602.
[0321] The terminal device 1601 can be used to implement the corresponding functions implemented by the terminal device in the above method, and the network device 1602 can be used to implement the corresponding functions implemented by the network device in the above method. For the sake of brevity, these will not be elaborated here.
[0322] It should be understood that the processor in the embodiments of this application may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.
[0323] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0324] It should be understood that the above-described memory is exemplary and not a limiting description. For example, the memory in the embodiments of this application may also be static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DR RAM), etc. That is to say, the memory in the embodiments of this application is intended to include, but is not limited to, these and any other suitable types of memory.
[0325] This application also provides a computer-readable storage medium for storing computer programs.
[0326] Optionally, the computer-readable storage medium can be applied to the network device in the embodiments of this application, and the computer program causes the computer to execute the corresponding processes implemented by the network device in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0327] Optionally, the computer-readable storage medium can be applied to the mobile terminal / terminal device in the embodiments of this application, and the computer program causes the computer to execute the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0328] This application also provides a computer program product, including computer program instructions.
[0329] Optionally, the computer program product can be applied to the network device in the embodiments of this application, and the computer program instructions cause the computer to execute the corresponding processes implemented by the network device in the various methods of the embodiments of this application. For the sake of brevity, they will not be described in detail here.
[0330] Optionally, the computer program product can be applied to the mobile terminal / terminal device in the embodiments of this application, and the computer program instructions cause the computer to execute the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of this application. For the sake of brevity, they will not be described in detail here.
[0331] This application also provides a computer program.
[0332] Optionally, the computer program can be applied to the network device in the embodiments of this application. When the computer program is run on the computer, it causes the computer to execute the corresponding processes implemented by the network device in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0333] Optionally, the computer program can be applied to the mobile terminal / terminal device in the embodiments of this application. When the computer program is run on a computer, it causes the computer to execute the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0334] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0335] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0336] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0337] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0338] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0339] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0340] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
A resource allocation method, the method comprising: The network device sends a first message, which is used to configure the transmission resources of each of the one or more terminal devices. According to the method of claim 1, wherein, The first message includes first indication information, which is used to instruct the one or more terminal devices. The method according to claim 2, wherein, The first indication information is mask information, and the one or more terminal devices include terminal devices whose first bit in the identifier ID is consistent with the mask information. The method according to claim 3, wherein, The first bit includes at least one of the following: The ID consists of the first bit to the Mth bit; M is an integer greater than 1. The ID consists of bits M to N, where M < N and N is an integer greater than 1. The ID is defined from the Nth bit to the last bit. The method according to claim 3, wherein, The first bit is predefined by the protocol or configured by the network device via signaling. According to any one of claims 1 to 5, the first message further includes second indication information, the second indication information being used to indicate one or more transmission resources, the one or more transmission resources corresponding one-to-one with the one or more terminal devices. The method according to any one of claims 1 to 5, wherein, The one or more terminal devices are arranged in an ID order and correspond one-to-one with one or more transmission resources; the ID order is either from largest to smallest or from smallest to largest in reverse order. The method according to any one of claims 1 to 5, wherein, The first message is also used to indicate a reference terminal device, wherein the transmission resource corresponding to the reference terminal device is the first transmission resource among one or more transmission resources; the other terminal devices among the one or more terminal devices, excluding the reference terminal device, correspond one-to-one with the other transmission resources according to the ID arrangement order; the ID arrangement order is either from largest to smallest, or from smallest to largest in reverse order. The method according to claim 7 or 8, wherein, The ID order is either predefined or configured by the network device via signaling. The method according to any one of claims 7 to 9, wherein, The first message includes a third indication information, which is used to indicate the order of the IDs. The method according to any one of claims 1 to 5, wherein, The first message also includes one or more terminal device IDs, and a set is formed of multiple terminal device IDs whose modulo operation result is consistent with the first parameter. The method according to claim 11, wherein, The network device sends a cumulative offset and a second parameter; the cumulative offset and / or the second parameter are used by the first terminal device to determine whether the first transmission resource is the transmission resource corresponding to the first terminal device; the first terminal device is a terminal device that has not sent data; the second parameter is the number of devices in the first set; the first set is a set determined from the one or more sets of terminal devices based on the index of the first transmission resource; the first transmission resource is the transmission resource at the next time moment. The method according to claim 12, wherein, The method further includes: The network device sends the ID of the terminal device corresponding to the first transmission resource and the modulo operation result of the first parameter. The method according to claim 12 or 13, wherein, The method further includes: The network device receives the updated cumulative offset sent by the second terminal device, which is the terminal device corresponding to the first transmission resource. A resource allocation method, the method comprising: The third terminal device receives a first message sent by the network device. The first message is used to configure the transmission resources of each of the one or more terminal devices, including the third terminal device. The method according to claim 15, wherein, The first message includes first indication information, which is used to instruct the one or more terminal devices. The method according to claim 16, wherein, The first indication information is mask information, and the one or more terminal devices include terminal devices whose first bit in the ID is consistent with the mask information. The method according to claim 17, wherein, The first bit includes at least one of the following: The ID consists of the first bit to the Mth bit; M is an integer greater than 1. The ID consists of bits M to N, where M < N and N is an integer greater than 1. The ID is defined from the Nth bit to the last bit. The method according to claim 16, wherein, The first bit is predefined by the protocol or configured by the network device via signaling. The method according to any one of claims 15 to 19, wherein the first message further includes second indication information, the second indication information being used to indicate one or more transmission resources, the one or more transmission resources corresponding one-to-one with the one or more terminal devices. The method according to any one of claims 15 to 19, wherein, The one or more terminal devices are arranged in an ID order and correspond one-to-one with one or more transmission resources; the ID order is either from largest to smallest or from smallest to largest in reverse order. The method according to any one of claims 15 to 19, wherein, The first message is also used to instruct a reference terminal device, wherein the transmission resource corresponding to the reference terminal device is the first transmission resource among one or more transmission resources; The remaining terminal devices among the one or more terminal devices, excluding the reference terminal device, are arranged in order of ID and correspond one-to-one with the remaining transmission resources; the ID arrangement order is either from largest to smallest, or from smallest to largest in reverse order. The method according to claim 21 or 22, wherein, The ID order is either predefined or configured by the network device via signaling. The method according to any one of claims 21 to 23, wherein, The first message includes a third indication information, which is used to indicate the order of the IDs. The method according to any one of claims 15 to 19, wherein, The first message also includes one or more terminal device IDs, and a set is formed of multiple terminal device IDs whose modulo operation result is consistent with the first parameter. The method according to claim 25, wherein, The method further includes: If the third terminal device is a device in the first set, then the third terminal device determines whether the first transmission resource is the transmission resource corresponding to the third terminal device based on one or more of the following information: the modulo operation result of the ID of the third terminal device and the first parameter, the first offset, and the cumulative offset; the first offset is the position index of the third terminal device in the set of terminal devices to which it belongs; the first transmission resource is the transmission resource at the next moment; the first set is a set determined from the one or more sets of terminal devices based on the index of the first transmission resource. If the third terminal device is a device outside the first set, the third terminal device determines whether the first transmission resource is the transmission resource corresponding to the first terminal device based on one or more of the following information: the modulo operation result of the third terminal device, the first offset, the cumulative offset, and the second parameter; the second parameter is the number of devices in the first set. The method according to claim 25, wherein, The method further includes: If the third terminal device is the first device in the first set, then the third terminal device determines whether the first transmission resource is the transmission resource corresponding to the third terminal device based on the modulo operation result of the ID of the third terminal device and the first parameter; the first transmission resource is the transmission resource at the next moment; the first set is a set determined from the set of one or more terminal devices based on the index of the first transmission resource. If the third terminal device is another device in the first set besides the first terminal device, the third terminal device determines whether the first transmission resource is the transmission resource corresponding to the third terminal device based on one or more of the following information: the modulo operation result of the ID of the third terminal device and the first parameter, the second offset, the cumulative offset, and the first parameter; the second offset is the position index of the third terminal device in the set of terminal devices to which it belongs; If the third terminal device is a device outside the first set, and is another device in the set of terminal devices other than the first terminal device, the third terminal device determines whether the first transmission resource is the transmission resource corresponding to the third terminal device based on one or more of the following information: the modulo operation result of the ID of the third terminal device and the first parameter, the second offset, the cumulative offset, the first parameter and the second parameter; the second parameter is the number of devices in the first set. The method according to claim 26 or 27, wherein, The method further includes: Receive the modulo operation result of the ID of the terminal device corresponding to the first transmission resource and the first parameter sent by the network device; If the third terminal device determines that it is a device other than the related devices based on the modulo operation result of the ID of the terminal device corresponding to the first transmission resource and the first parameter, then the first transmission resource is determined not to be the transmission resource corresponding to the third terminal device; the related devices include devices in the first set and devices in the next nearest set of the first set. The method according to claim 26 or 27, wherein, The method further includes: The cumulative offset and the second parameter are sent by the network device to the third terminal device. The method according to claim 29, wherein, The method further includes: When the third terminal device determines that the first transmission resource is the transmission resource it is using, it updates the cumulative offset and sends the updated cumulative offset to the network device. A resource allocation device, applied to a network device, comprising: The sending unit is configured to send a first message to the network device, the first message being used to configure the transmission resources of each of the one or more terminal devices. A resource allocation device, applied to a third terminal device, includes: The receiving unit is configured to receive a first message sent by the network device by the third terminal device. The first message is used to configure the transmission resources of each of the one or more terminal devices, including the third terminal device. A communication device, comprising: A processor and a memory for storing a computer program, the processor for calling and running the computer program stored in the memory to perform the method as described in any one of claims 1 to 14, or to perform the method as described in any one of claims 15 to 30. A chip, comprising: A processor for retrieving and running a computer program from memory, causing a device having the chip mounted to perform the method as claimed in any one of claims 1 to 14, or the method as claimed in any one of claims 15 to 30. A computer-readable storage medium for storing a computer program that causes a computer to perform the method as claimed in any one of claims 1 to 14, or the method as claimed in any one of claims 15 to 30. A computer program product includes computer program instructions that cause a computer to perform the method as claimed in any one of claims 1 to 14, or the method as claimed in any one of claims 15 to 30. A computer program that causes a computer to perform the method as claimed in any one of claims 1 to 14, or the method as claimed in any one of claims 15 to 30.
Citation Information
Patent Citations
Method and apparatus for performing device-to-device communication
CN105453675A
Transmission method and communication device
WO2020088441A1
Communication method and device
WO2021000679A1
Information processing method, device, storage medium, processor, and electronic device
WO2021168812A1