Transmission method, first device, second device and storage medium
By optimizing the transmission timing and format based on the coverage situation and measurement results in cellular passive IoT, the problems of transmission collision and low efficiency in tag communication are solved, and data transmission efficiency is improved.
Patent Information
- Application Number
- CN202410083621.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-19
- Publication Date
- 2025-07-22
AI Technical Summary
In the application scenarios of cellular passive IoT, such as in the inventory scenario, the existing transmission mechanism leads to the problems of transmission collision and low transmission efficiency of tag communication.
By determining the timing of sending data to the second device based on the coverage condition of the first device or the measurement result of sending signals to the second device, the timing of sending data to the second device is determined, and the data is sent at that time, while sending the coverage condition or measurement result to the second device, in order to optimize the transmission timing and format.
It realizes the evasion of transmission collisions and improves data transmission efficiency, and is suitable for various types of passive IoT devices.
Smart Images

Figure CN120358618A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of wireless communication technologies, and in particular, to a transmission method, a first device, a second device, and a storage medium. Background Art
[0002] In the design process of cellular passive IoT, there is a large amount of tag communication in application scenarios such as inventory and logistics tracking.
[0003] Currently, in application scenarios in cellular passive IoT, such as in an inventory scenario, if the existing transmission mechanism is adopted, the tags selected by the reader usually generate values without distinction, and decrement the values based on the commands sent by the reader until the values decrement to zero, and then respond to the reader using a certain transmission format. There are prone to problems of transmission collision and low transmission efficiency. Summary of the Invention
[0004] Embodiments of the present application provide a transmission method, a first device, a second device, and a storage medium, which improve the transmission efficiency between devices.
[0005] The technical solution of the embodiments of the present application is implemented as follows:
[0006] Embodiments of the present application provide a transmission method, which is applied to a first device. The method includes:
[0007] Based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device, determine a first timing for sending first data to the second device, and send the first data to the second device at the first timing;
[0008] and / or, send the coverage of the first device or the measurement result of the signal sent by the first device to the second device to the second device.
[0009] In the above method, before determining the first timing for sending first data to the second device based on the coverage of the first device; and / or, before sending the coverage of the first device to the second device, it further includes:
[0010] Based on the measurement result of the signal sent by the first device to the second device, determine the coverage of the first device.
[0011] In the above method, determining the first timing for sending first data to the second device based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device includes:
[0012] Based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device, determine a first value;
[0013] Decrease the first value based on the first command sent by the second device, or based on a natural time slot, or based on an available transmission time slot;
[0014] Determine the time when the first value is decreased to the target value as the first time.
[0015] In the above method, the first value satisfies a first constraint condition between the index of the first device and the total number of indexes;
[0016] Among them, the index of the first device is determined based on the coverage of the first device, or based on the measurement result of the signal sent by the first device to the second device and the measurement value threshold.
[0017] In the above method, the first constraint condition is: the result of taking the modulo of the first value with respect to the total number of indexes is the same as or has a corresponding relationship with the index of the first device.
[0018] In the above method, determining the first value based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device includes:
[0019] Generate a random number and determine it as the initial value;
[0020] Calculate the result of taking the modulo of the initial value with respect to the total number of indexes to obtain a first calculation result;
[0021] Calculate the difference between the initial value and the first calculation result to obtain a second calculation result;
[0022] Calculate the sum of the second calculation result and the index of the first device to obtain the first value.
[0023] In the above method, determining the first value based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device includes:
[0024] Generate a random number and determine it as the initial value;
[0025] Calculate the result of rounding down the quotient of the initial value divided by the total number of indexes to obtain a third calculation result;
[0026] Calculate the product of the third calculation result and the total number of indexes to obtain a fourth calculation result;
[0027] Calculate the sum of the fourth calculation result and the index of the first device to obtain the first value.
[0028] In the above method, determining a first timing for sending first data to the second device based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device includes:
[0029] Generate a random number and determine it as a second value;
[0030] Based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device, determine a decreasing timing for the second value to decrease the second value;
[0031] Determine the timing when the second value is decreased to a target value as the first timing.
[0032] In the above method, determining the decreasing timing for the second value based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device includes:
[0033] Increment a variable initially set to zero based on a first command sent by the second device, or based on a natural time slot, or an available transmission time slot;
[0034] Based on the coverage of the first device, or based on the measurement result and measurement value threshold of the signal sent by the first device to the second device, determine an index of the first device;
[0035] Determine the decreasing timing as the timing when the variable is incremented to satisfy a second constraint condition between the index of the first device and the total number of indexes.
[0036] In the above method, determining a first timing for sending first data to the second device based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device includes:
[0037] Generate a random number and determine it as a third value;
[0038] Based on a first command sent by the second device, or based on a natural time slot, or an available transmission time slot, decrease the third value and increment a variable initially set to zero;
[0039] When the third value is decreased to the target value, determine the first timing based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device in combination with the variable.
[0040] In the above method, determining the first timing based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device in combination with the variable includes:
[0041] Determine the index of the first device based on the coverage of the first device, or based on the measurement result and measurement value threshold of the signal sent by the first device to the second device.
[0042] Increment the variable until the time when the second constraint condition is satisfied between the index of the first device and the total number of indexes, and determine it as the first time.
[0043] In the above method, the second constraint condition is: the result of taking the modulo of the variable with respect to the total number of indexes is the same as or has a corresponding relationship with the index of the first device.
[0044] In the above method, it further includes:
[0045] Receive the indication information sent by the second device; wherein, the indication information is used to indicate the transmission format for the first device to transmit data, and the transmission format is determined by the second device based on the first time, or based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device.
[0046] Transmit data to the second device according to the transmission format.
[0047] An embodiment of the present application provides a transmission method, which is applied to a second device, and the method includes:
[0048] Receive the first data sent by the first device.
[0049] Determine the coverage or transmission format of the first device based on the first time when the first device sends the first data.
[0050] And / or, receive the coverage of the first device or the measurement result of the signal sent by the first device to the second device sent by the first device.
[0051] Determine the transmission format of the first device based on the coverage of the first device, or determine the coverage or transmission format of the first device based on the measurement result of the signal sent by the first device to the second device.
[0052] In the above method, the first time is determined based on the coverage of the first device, before receiving the first data sent by the first device; and / or, before receiving the coverage of the first device sent by the first device, it further includes:
[0053] Send a signal to the first device, so that the first device determines the coverage of the first device based on the measurement result of the signal sent to the second device.
[0054] In the above method, it further includes:
[0055] Sending a measurement value threshold to the first device, so that the first device determines the coverage of the first device based on the measurement result of the signal sent by the second device and the measurement value threshold;
[0056] Wherein, the measurement value threshold is a received signal quality threshold or a received signal level threshold.
[0057] In the above method, it further includes:
[0058] After determining the transmission format of the first device, sending indication information to the first device;
[0059] Wherein, the indication information is used to indicate the transmission format of the first device.
[0060] An embodiment of the present application provides a first device, including: a first processor, a first memory, and a first communication bus;
[0061] The first communication bus is used to implement a communication connection between the first processor and the first memory;
[0062] The first processor is configured to execute one or more computer programs stored in the first memory to implement a transmission method applied to the first device.
[0063] An embodiment of the present application provides a second device, including: a second processor, a second memory, and a second communication bus;
[0064] The second communication bus is used to implement a communication connection between the second processor and the second memory;
[0065] The second processor is configured to execute one or more computer programs stored in the second memory to implement a transmission method applied to the second device.
[0066] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and characterized in that when the computer program is executed, the above transmission method is implemented.
[0067] The embodiments of the present application provide a transmission method, a first device, a second device, and a storage medium. The transmission method applied to the first device includes: determining a first timing for sending first data to the second device based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device, and sending the first data to the second device at the first timing; and / or, sending the coverage of the first device or the measurement result of the signal sent by the first device to the second device to the second device. The technical solution provided by the embodiments of the present application, on the one hand, utilizes the coverage of the first device or the measurement result of the signal sent by the first device to the second device, can divide the sending timing of the first device, realizes the avoidance of transmission collision, and improves the efficiency of data transmission; on the other hand, can also indicate the coverage of the first device or the measurement result of the signal sent by the first device to the second device to the second device, so that the second device obtains the coverage of the first device or the adapted transmission format to perform corresponding transmission control and improve the efficiency of data transmission. In addition, the solution of the present application is applicable to various types of passive Internet of Things devices and has strong applicability. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 is a schematic flowchart of a transmission method provided by an embodiment of the present application Figure 1 ;
[0069] Figure 2 is an exemplary data transmission schematic provided by an embodiment of the present application Figure 1 ;
[0070] Figure 3 is an exemplary data transmission schematic provided by an embodiment of the present application Figure 2 ;
[0071] Figure 4 is a schematic flowchart of a transmission method provided by an embodiment of the present application Figure 2 ;
[0072] Figure 5 is a schematic structure diagram of a first device provided by an embodiment of the present application Figure 1 ;
[0073] Figure 6 is a schematic structure diagram of a first device provided by an embodiment of the present application Figure 2 ;
[0074] Figure 7 is a schematic structure diagram of a second device provided by an embodiment of the present application Figure 1 ;
[0075] Figure 8 is a schematic structure diagram of a second device provided by an embodiment of the present application Figure 2 . DETAILED DESCRIPTION OF THE EMBODIMENTS
[0076] In order to make the objectives, technical solutions, and advantages of the present application clearer and more understandable, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0077] The technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be specifically described below through embodiments in conjunction with the accompanying drawings. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0078] In addition, the technical solutions described in the embodiments of the present application can be arbitrarily combined without conflict.
[0079] The embodiments of the present application provide a transmission method, which is applied to a first device and a second device. The first device may be a terminal device, for example, a tag device, a passive device, an active device, and the second device may be a node device, for example, a base station, a relay device, or other devices that can provide communication services for the first device. In addition, the first device and the second device may also be devices of the same type, for example, both are terminal devices. The first device and the second device can be determined according to actual needs and application scenarios, and the embodiments of the present application do not make any limitations.
[0080] Figure 1 Flow schematic of a transmission method provided for the embodiments of the present application Figure 1 As Figure 1 shown, in the embodiments of the present application, the transmission method applied to the first device mainly includes the following steps:
[0081] S101. Determine a first timing for sending first data to the second device based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device, and send the first data to the second device at the first timing;
[0082] And / or, send the coverage of the first device or the measurement result of the signal sent by the first device to the second device to the second device.
[0083] In the embodiments of the present application, the first device can determine the first timing for sending the first data to the second device based on its coverage or the measurement result of the signal it sends to the second device, so as to send the first data.
[0084] In an embodiment of the present application, the second device may send a signal to the first device. Based on this, the first device may perform signal measurement to obtain a measurement result. Further, the first device may also determine the coverage of the first device based on the measurement result of the signal sent by the second device. For example, the measurement result may be signal quality or signal level, which may be compared with a corresponding measurement value threshold to determine the coverage of the first device. The measurement value threshold may be configured by the first device for the second device. Of course, the measurement value threshold may also be pre-configured in the first device, or obtained by the first device from other channels. The embodiments of the present application do not make any limitations in this regard.
[0085] It should be noted that in an embodiment of the present application, the coverage of the first device may not only be determined by the first device based on the measurement result of the signal sent by the second device, but also be determined by the first device based on pre-configured relevant information. The embodiments of the present application do not make any limitations in this regard.
[0086] It should be noted that sending the coverage of the first device or the measurement result of the signal sent by the first device to the second device includes carrying the coverage or the measurement result in the information sent to the second device, or implicitly carrying the coverage or the measurement result through the information sent to the second device. For example, by setting or configuring the correspondence between the value range of the information sent to the second device and the coverage or the measurement result, the effect of sending the coverage or the measurement result can be achieved. For example, if the value of the information sent to the second device is an even number, it represents one coverage situation, and if the value is an odd number, it represents another coverage situation.
[0087] It should be noted that in an embodiment of the present application, when the first device can obtain relatively accurate synchronization with the second device, the timing operation of uplink and downlink transmission can be performed through the definition of time slots. Based on this, the first timing for sending the first data may be a time slot. When it is difficult for the first device to obtain accurate synchronization with the second device, it can only rely on the second device to continuously send downlink information to trigger the uplink transmission. For example, each time a downlink command is sent, it serves as an opportunity for the uplink to respond. Then, when another downlink command is sent, it serves as the next opportunity for the uplink to respond. The first timing for sending the first data may be the time to respond to the downlink command, or the time between two adjacent downlink commands.
[0088] In an embodiment of the present application, there are three ways for the first device to determine the first timing for sending the first data based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device. The following will elaborate on each of them.
[0089] In an embodiment of the present application, the first device determines a first timing for sending first data to the second device based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device. The first method includes the following steps: determining a first value based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device; decrementing the first value based on the first command sent by the second device, or based on a natural time slot, or based on an available transmission time slot; and determining the timing when the first value is decremented to a target value as the first timing.
[0090] In an embodiment of the present application, the first value satisfies a first constraint condition with respect to the index of the first device and the total number of indexes; wherein, the index of the first device is determined based on the coverage of the first device, or based on the measurement result of the signal sent by the first device to the second device and a measurement value threshold.
[0091] It should be noted that, in an embodiment of the present application, different coverage level indexes can be set for different coverage levels to represent the corresponding coverage levels. The index of the first device can be the coverage level index of the first device, determined based on the coverage of the first device, or based on the comparison result of the measurement result of the signal sent by the first device to the second device and the measurement value threshold. Correspondingly, the total number of indexes can be the total number of coverage levels, or the number of comparison results obtained by comparing the measurement result with the measurement value threshold. For example, if there are three measurement value thresholds, by comparing the measurement result with the thresholds, at most 4 results can be obtained: result 1 below threshold 1, result 2 between threshold 1 and threshold 2, result 3 between threshold 2 and threshold 3, and result 4 greater than threshold 3. Therefore, the total number of indexes corresponds to the number of comparison results. The total number of indexes can be indicated by the second device to the first device. In addition, the number of devices within each coverage level can be controlled by controlling the coverage level. Generally speaking, the coverage level is also obtained by comparing the measurement result of the first device on the channel with the measurement value threshold, but the relationship between the comparison result and the coverage level is explicitly defined. By controlling the threshold value, the number of terminals falling within each coverage level can be controlled.
[0092] In an embodiment of the present application, the first constraint condition is: the result of taking the modulus of the first value with respect to the total number of indexes is the same as or has a corresponding relationship with the index of the first device.
[0093] Exemplarily, in an embodiment of the present application, the index of the first device, i.e., the coverage level index i of the first device, the total number of indexes, i.e., the total number of coverage levels, is N, where N is a natural number greater than 1, and the value of i ranges from 0 to N - 1. The first value SC1 generated by the first device needs to satisfy: SC1 mod N = i.
[0094] It should be noted that in the embodiments of the present application, the result of the first value modulo the total number of indexes may not only be the same as the index of the first device as in the above example, but also have a corresponding relationship with it. Specifically, the sum of the result of the first value modulo the total number of indexes and the rated offset is the same as the index of the first device. Of course, it may also be a corresponding relationship established based on other features, which is not limited in the embodiments of the present application.
[0095] In the embodiments of the present application, the first device may determine the first value that satisfies the first constraint condition in two ways.
[0096] In the embodiments of the present application, the first device determines the first value based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device, including: generating a random number and determining it as the initial value; calculating the result of the initial value modulo the total number of indexes to obtain the first calculation result; calculating the difference between the initial value and the first calculation result to obtain the second calculation result; calculating the sum of the second calculation result and the index of the first device to obtain the first value.
[0097] In the embodiments of the present application, the first device determines the first value based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device, and may also include: generating a random number and determining it as the initial value; calculating the result of rounding down the quotient of the initial value divided by the total number of indexes to obtain the third calculation result; calculating the product of the third calculation result and the total number of indexes to obtain the fourth calculation result; calculating the sum of the fourth calculation result and the index of the first device to obtain the first value.
[0098] It should be noted that in the embodiments of the present application, the first device may generate a random number, take a subset of Q bits, and determine the random number represented by the subset as the initial value. In addition, a Q-bit random number may also be directly generated and determined as the initial value. The specific random number and the number of bits of the random number are not limited in the embodiments of the present application.
[0099] Exemplarily, in the embodiments of the present application, in the embodiments of the present application, the index of the first device is the coverage level index i of the first device, the total number of indexes is the total number of coverage levels N, N is a natural number greater than 1, the value of i ranges from 0 to N-1, and the first value generated by the first device is SC1. Referring to the above two ways of determining the first value, SC1 = SC'-(SC'mod N)+i, or SC1 = floor(SC' / N)N+i, where SC' represents the initial value.
[0100] In an embodiment of the present application, after determining the first value, the first device may use different methods to decrement the first value until the first value is decremented to the target value. The time when the first value is decremented to the target value is the first time, and the first device sends the first data to the second device at the first time. The target value may be zero.
[0101] Another possible implementation may be to obtain the first value as the target value, and different methods can be used to increment a variable with an initial value of 0. When the increment reaches the first value, the first data is sent, which can achieve the same effect.
[0102] In an embodiment of the present application, the first device may decrement the first value based on the first command sent by the second device. For example, each time the first command sent by the second device is received, the first value is decremented by one; the first device may also decrement the first value based on natural time slots. For example, every time a natural time slot passes, the first value is decremented by one; the first device may also decrement the first value based on available transmission time slots. For example, every time an available transmission time slot passes, the first value is decremented by one.
[0103] It should be noted that in an embodiment of the present application, the first command refers to the downlink information sent by the second device to the first device, and this downlink information can trigger the first device to send uplink information, that is, the first data, to the second device when certain conditions are met. The first command may include one or more commands. Exemplarily, the first command may be a Query command or a QueryRep command, both of which can cause the first device to feedback a 16-bit random number or pseudo-random number (RN16), that is, the first data. The first data may also be related information such as the identifier of the first device. The specific first command and first data can be set according to actual requirements and application scenarios, and are not limited in the embodiments of the present application.
[0104] It should be noted that in an embodiment of the present application, when the first device decrements the first value based on natural time slots or available transmission time slots, it may be the case where the first device has its own clock and has good time synchronization accuracy. At this time, the frame structure can be set and the time slots can be divided. The first device and the second device have a common understanding of the start and numbering of the time slots. Therefore, there is no need to rely on the first command to determine the transmission time, that is, the first time.
[0105] Exemplarily, in an embodiment of the present application, an inventory round starts at natural time slot n. Starting from natural time slot n + k1, a first value decreases in each natural time slot (where the natural time slot here refers to the time slot that increases with time defined by the frame structure). When it decreases to 0, the first data is sent, such as reporting relevant information such as the generated random number, its own identifier, etc. It should be noted that in a passive Internet of Things, random numbers of different bit lengths may be generated, such as 20 bits, 24 bits, etc. k1 can be obtained based on the device capabilities of the first device, or based on network indication, and is a natural number greater than or equal to 0.
[0106] Exemplarily, in an embodiment of the present application, an inventory round starts at natural time slot n. Starting from natural time slot n + k1, a first value decreases in each available transmission time slot. When it decreases to 0, the first data is sent, such as reporting relevant information such as the generated random number, its own identifier, etc.
[0107] It can be understood that in an embodiment of the present application, the index of the first device is the coverage level index i of the first device, and the total number of indexes is the total number of coverage levels N. N is a natural number greater than 1, and the value of i ranges from 0 to N - 1. Assuming that the total number of coverage levels is 3 and i is the coverage level index of the first device, the first value satisfies the above first constraint condition, that is, x mod 3 = i (or x ÷ 3 = k remainder i), where x is the first value and k is an integer not less than 0. During an inventory round, the first device actually sends at the time when the number of times the first command is sent is 3×k + i, or the 3×k + i-th natural time slot, or the 3×k + i-th available transmission time slot. For example, the first device with a coverage level index of 0 only selects the time when the number of times the first command is sent is 3×k for sending. That is, it can be understood that the time is divided by the first command, and the time between every two commands can be regarded as a time slot for response. Based on this, devices with the same coverage situation can be ensured to respond at the same time as much as possible, so that some non-orthogonal transmission methods can be used for multiplexing, such as using code division or baseband frequency shift, thereby improving resource utilization and reducing the probability of conflicts. Since the coverage situations are similar, the near-far effect of such multiplexing can be effectively overcome.
[0108] Figure 2 An exemplary data transmission diagram provided for the embodiment of the present application Figure 1 As Figure 2 shown, the total number of coverage levels is 3, the first value is SC1, the coverage level index of 1 first device is 0, and its SC1 is 0. The coverage level indexes of 3 first devices are 1, and their SC1s are 1, 1, and 4 respectively. The coverage level index of 1 device is 2, and its SC1 is 2. For each first device, SC1 can be decreased to zero based on the first command, and then the first data is sent.
[0109] In an embodiment of the present application, the first device determines a first timing for sending first data to the second device based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device. The second method includes the following steps: generating a random number and determining it as a second value; determining a decreasing timing for the second value based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device, so as to decrease the second value; determining the timing when the second value is decreased to a target value as the first timing.
[0110] It should be noted that in an embodiment of the present application, similar to the above initial value, the second value can be a random number, and the determination method is similar to the above initial value, which will not be elaborated here.
[0111] In an embodiment of the present application, the first device determines the decreasing timing for the second value based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device, including: incrementing a variable initially set to zero based on a first command sent by the second device, or based on a natural time slot, or an available transmission time slot; determining an index of the first device based on the coverage of the first device, or based on the measurement result of the signal sent by the first device to the second device and a measurement value threshold; determining the timing when the variable is incremented to satisfy a second constraint condition between the index of the first device and the total number of indexes as the decreasing timing.
[0112] In an embodiment of the present application, the first device can increment the variable based on a first command sent by the second device. For example, each time the first device receives a first command sent by the second device, the variable is incremented by one; the first device can also increment the variable based on a natural time slot. For example, each time a natural time slot passes, the variable is incremented by one; the first device can also increment the variable based on an available transmission time slot. For example, each time an available transmission time slot passes, the variable is incremented by one.
[0113] It should be noted that in an embodiment of the present application, when the first device increments the variable based on a natural time slot or an available transmission time slot, it may be the case where the first device has its own clock and has good time synchronization accuracy. At this time, a frame structure can be set, and time slots can be divided. The first device and the second device have a common understanding of the start and numbering of the time slots. Therefore, there is no need to rely on a first command to determine the incrementing timing.
[0114] In an embodiment of the present application, the second constraint condition is that the result of taking the modulus of the variable with respect to the total number of indexes is the same as or has a corresponding relationship with the index of the first device.
[0115] It should be noted that in the embodiments of the present application, the result of taking the modulus of the variable with respect to the total number of indexes may not only be the same as the index of the first device as in the above example, but may also have a corresponding relationship therewith. Specifically, the sum of the result of taking the modulus of the variable with respect to the total number of indexes and the rated offset is the same as the index of the first device. Of course, it may also be a corresponding relationship established based on other features, which is not limited in the embodiments of the present application.
[0116] In the embodiments of the present application, when the first device determines the decrement timing, it can decrement the second value, and the timing when the second value decrements to the target value is the first timing for sending the first data. Among them, the target value may be zero.
[0117] Exemplarily, in the embodiments of the present application, the index of the first device is the coverage level index i of the first device, the total number of indexes is the total number of coverage levels N, N is a natural number greater than 1, and the value of i ranges from 0 to N - 1. When a round of inventory starts for the first device, for a variable C initially zero, C is incremented by 1 every time a natural time slot or an available transmission time slot passes. The second value is SC2. The first device decrements SC2 when C mod N = i. When SC2 decrements to 0, the first device determines this timing as the first timing and sends the first data.
[0118] Exemplarily, in the embodiments of the present application, the index of the first device is the coverage level index i of the first device, the total number of indexes is the total number of coverage levels N, N is a natural number greater than 1, and the value of i ranges from 0 to N - 1. Every time the first device receives a first command sent by the second device, for a variable C initially zero, C is incremented by 1. The second value is SC2. The first device decrements SC2 when C mod N = i. When SC2 decrements to 0, the first device determines this timing as the first timing and sends the first data. In addition, if SC2 is initially zero, the first data is also sent only when C mod N = i.
[0119] Figure 3 An exemplary data transmission diagram provided for the embodiments of the present application Figure 2 As Figure 3 shown, the total number of coverage levels is 3, the second value is SC2, the coverage level index of 1 first device is 0, and its SC2 is 0. The coverage level indexes of 3 first devices are 1, and the SC2 values are 1, 1, and 4 respectively. The coverage level index of 1 first device is 2, and its SC2 is 2. For each first device, SC2 can be decremented at the timing that satisfies the second constraint condition, so that when SC2 decrements to zero, the first data is sent again.
[0120] Exemplarily, in the embodiments of the present application, the total number of coverage levels is 3, and the coverage level indices are 0, 1, and 2 respectively. If the coverage level index of the first device is 1 and the second value SC2 is 5, since SC2 is not zero, no transmission will be performed. The first device increments the variable C, which is initially zero, every time it receives a first command;
[0121] When C = 1, it satisfies C mod 3 = 1, and the value of SC2 is reduced to 4;
[0122] When C = 2, it does not satisfy C mod 3 = 1, and the value of SC2 remains unchanged, still 4;
[0123] When C = 3, it does not satisfy C1 mod 3 = 1, and the value of SC2 remains unchanged, still 4;
[0124] When C = 4, it satisfies C1 mod 3 = 1, and the value of SC2 is reduced to 3;
[0125] ……
[0126] When C = 12, it does not satisfy C mod 3 = 1, and the value of SC2 remains unchanged, still 1;
[0127] When C = 13, it satisfies C mod 3 = 1, and the value of SC2 is reduced to 0. The first device determines this moment as the first moment and sends the first data to the second device.
[0128] In the embodiments of the present application, the first device determines the first moment to send the first data to the second device based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device. The third method includes the following steps: generating a random number and determining it as the third value; decrementing the third value based on the first command sent by the second device, or based on the natural time slot, or the available transmission time slot, and incrementing the initially zero variable; when the third value is decremented to the target value, determining the first moment based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device in combination with the variable.
[0129] It should be noted that, in the embodiments of the present application, similar to the above initial value, the third value can be a random number, and the determination method is similar to the above initial value, which will not be elaborated here.
[0130] In the embodiments of the present application, the first device determines the first moment based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device in combination with the variable, including: determining the index of the first device based on the coverage of the first device, or based on the measurement result of the signal sent by the first device to the second device and the measurement value threshold; determining the moment when the variable is incremented to satisfy the second constraint condition between the index of the first device and the total number of indices as the first moment.
[0131] It can be understood that in the embodiments of the present application, similar to the above-mentioned second method for determining the first timing, in the third method for determining the first timing, the variable initially set to zero can also be incremented based on the first command sent by the second device, or based on natural time slots, or available transmission time slots. At the same time, the third value also needs to be decremented until the third value is decremented to the target value, and then further determine whether the index of the first device and the total number of indexes satisfy the second constraint condition to determine the first timing. The second constraint condition is detailed in the above relevant content and will not be elaborated here.
[0132] Exemplarily, in the embodiments of the present application, the index of the first device is the coverage level index i of the first device, and the total number of indexes is the total number of coverage levels N, where N is a natural number greater than 1, and the value of i ranges from 0 to N - 1. When the first device starts a round of inventory, each time it receives the first command sent by the second device, the variable C initially set to zero is incremented by 1. The third value is SC3. Each time the first device receives the first command sent by the second device, SC3 is also decremented. When SC3 is decremented to 0, it is judged whether C mod N = i is satisfied. If satisfied, the first data is sent. If not satisfied, continue to wait until C mod N = i is satisfied, and then send the first data.
[0133] It should be noted that in the embodiments of the present application, the above various values, such as the above-mentioned first value, second value, and third value, etc., can be loaded in a counter and perform corresponding incrementing or decrementing.
[0134] In the embodiments of the present application, the first device can not only determine the first timing as described above and send the first data to the second device at the first timing, but also directly send the coverage situation of the first device or the measurement result of the signal sent by the first device to the second device.
[0135] In the embodiments of the present application, the first device can also receive the indication information sent by the second device; wherein, the indication information is used to indicate the transmission format for the first device to transmit data, and the transmission format is determined by the second device based on the first timing, or based on the coverage situation of the first device or the measurement result of the signal sent by the first device to the second device. Correspondingly, the first device can transmit data to the second device according to this transmission format.
[0136] It should be noted that in the embodiments of the present application, the transmission format of the first device can include data rate, modulation method, etc. When the first device communicates with the second device subsequently, it can send data to the second device according to this transmission format. Correspondingly, the second device will also use the corresponding format to receive.
[0137] It can be understood that in the embodiments of the present application, the transmission timing of the first device is divided by using the coverage of the first device or the measurement result of the signal sent by the first device to the second device. On the one hand, the avoidance of data transmission collisions of the device is achieved, and on the other hand, the second device can obtain the coverage of the first device or the adapted transmission format to perform corresponding transmission control, improving the efficiency of data transmission. In addition, this solution is applicable to all types of passive Internet of Things devices and has strong applicability.
[0138] It can be understood that in the embodiments of the present application, the first timing, the coverage of the first device, and the measurement result of the signal sent by the first device to the second device can all characterize the coverage level of the first device. The transmission format of the first device determined based on this information matches the coverage level of the first device, which can improve the data transmission efficiency.
[0139] Figure 4 Schematic flow of a transmission method provided by an embodiment of the present application Figure 2 As Figure 4 shown, in the embodiments of the present application, the transmission method applied to the second device mainly includes the following steps:
[0140] S201. Receive the first data sent by the first device; determine the coverage of the first device or the transmission format based on the first timing when the first device sends the first data;
[0141] And / or, receive the coverage of the first device or the measurement result of the signal sent by the first device to the second device; determine the transmission format of the first device based on the coverage of the first device, or determine the coverage or transmission format of the first device based on the measurement result of the signal sent by the first device to the second device.
[0142] In the embodiments of the present application, corresponding to the above transmission method applied to the first device, the second device can receive the first data sent by the first device, and this first data is sent at the first timing. The second device can determine the coverage of the first device or the transmission format based on the first timing. In addition, the second device can also receive the coverage of the first device or the measurement result of the signal sent by the first device to the second device to determine the coverage or transmission format of the first device. The specific way to determine the coverage or transmission format of the first device can be determined according to the information sent by the first device, and the embodiments of the present application do not make limitations.
[0143] It should be noted that, in the embodiments of the present application, the first timing for sending the first data, the coverage of the first device, and the measurement result of the signal sent by the first device to the second device all characterize the coverage level of the first device. For the relevant descriptions, please refer to the above-mentioned transmission method applied to the first device, which will not be elaborated here.
[0144] In the embodiments of the present application, the second device may send indication information to the first device after determining the transmission format of the first device. The indication information is used to indicate the transmission format of the first device, so that the first device can perform data transmission to the second device according to the transmission format subsequently. Since the transmission format of the first device is determined based on the above-mentioned information characterizing the coverage level of the first device, this transmission format can well adapt to the actual communication scenario, thereby ensuring the transmission efficiency.
[0145] In the embodiments of the present application, the second device may send a signal to the first device to enable the first device to perform signal measurement. The measurement result can be used to determine the coverage of the first device. Further, the measurement result or the coverage of the first device can be used to determine the first timing.
[0146] In the embodiments of the present application, the second device may also send a measurement value threshold to the first device, so that the first device determines the coverage of the first device based on the measurement result of the signal sent by the second device and the measurement value threshold; wherein, the measurement value threshold is a received signal quality threshold or a received signal level threshold.
[0147] It can be understood that, in the embodiments of the present application, the first device can determine the coverage of the first device based on the measurement result of the signal sent by the first device to the second device. Specifically, the measurement result can be signal quality or signal level, and it can be compared with the corresponding threshold value to determine the coverage of the first device. The measurement value threshold can be configured by the second device to the first device.
[0148] The embodiments of the present application provide a first device. Figure 5 The structural schematic diagram of a first device provided by the embodiments of the present application Figure 1 As Figure 5 shown, in the embodiments of the present application, the first device includes:
[0149] A first determination module 301, configured to determine a first timing for sending first data to the second device based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device;
[0150] A first communication module 302, configured to send the first data to the second device at the first timing;
[0151] And / or, the first communication module 302 is configured to send the coverage of the first device or the measurement result of the signal sent by the first device to the second device to the second device.
[0152] In an embodiment of the present application, before the first determination module 301 determines the first timing for sending the first data to the second device based on the coverage of the first device; and / or, before sending the coverage of the first device to the second device, it is further configured to determine the coverage of the first device based on the measurement result of the signal sent by the first device to the second device.
[0153] In an embodiment of the present application, the first determination module 301 is further configured to determine a first value based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device; decrement the first value based on the first command sent by the second device, or based on a natural time slot, or based on an available transmission time slot; and determine the timing when the first value is decremented to a target value as the first timing.
[0154] In an embodiment of the present application, the first value satisfies a first constraint condition with respect to the index of the first device and the total number of indexes;
[0155] Wherein, the index of the first device is determined based on the coverage of the first device, or based on the measurement result of the signal sent by the first device to the second device and a measurement value threshold.
[0156] In an embodiment of the present application, the first constraint condition is: the result of taking the modulus of the first value with respect to the total number of indexes is the same as or has a corresponding relationship with the index of the first device.
[0157] In an embodiment of the present application, the first determination module 301 is further configured to generate a random number and determine it as an initial value; calculate the result of taking the modulus of the initial value with respect to the total number of indexes to obtain a first calculation result; calculate the difference between the initial value and the first calculation result to obtain a second calculation result; and calculate the sum of the second calculation result and the index of the first device to obtain the first value.
[0158] In an embodiment of the present application, the first determination module 301 is further configured to generate a random number and determine it as an initial value; calculate the result of rounding down the quotient of the initial value divided by the total number of indexes to obtain a third calculation result; calculate the product of the third calculation result and the total number of indexes to obtain a fourth calculation result; and calculate the sum of the fourth calculation result and the index of the first device to obtain the first value.
[0159] In an embodiment of the present application, the first determination module 301 is further configured to generate a random number and determine it as a second value; determine a decreasing opportunity for the second value based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device, so as to decrease the second value; determine the opportunity when the second value is decreased to a target value as the first opportunity.
[0160] In an embodiment of the present application, the first determination module 301 is further configured to increment a variable initially set to zero based on the first command sent by the second device, or based on a natural time slot, or an available transmission time slot; determine an index of the first device based on the coverage of the first device, or based on the measurement result and measurement value threshold of the signal sent by the first device to the second device; determine the decreasing opportunity as the opportunity when the variable is incremented to satisfy a second constraint condition between the index of the first device and the total number of indexes.
[0161] In an embodiment of the present application, the first determination module 301 is further configured to generate a random number and determine it as a third value; decrement the third value and increment a variable initially set to zero based on the first command sent by the second device, or based on a natural time slot, or an available transmission time slot; when the third value is decremented to the target value, determine the first opportunity based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device in combination with the variable.
[0162] In an embodiment of the present application, the first determination module 301 is further configured to determine an index of the first device based on the coverage of the first device, or based on the measurement result and measurement value threshold of the signal sent by the first device to the second device; determine the first opportunity as the opportunity when the variable is incremented to satisfy a second constraint condition between the index of the first device and the total number of indexes.
[0163] In an embodiment of the present application, the second constraint condition is that the result of taking the modulus of the variable with respect to the total number of indexes is the same as or has a corresponding relationship with the index of the first device.
[0164] In an embodiment of the present application, the first communication module 302 is further configured to receive indication information sent by the second device; wherein, the indication information is used to indicate a transmission format for the first device to transmit data; the transmission format is determined by the second device based on the first opportunity, or based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device; transmit data to the second device according to the transmission format.
[0165] Figure 6 Structural schematic of a first device provided by an embodiment of the present application Figure 2 As shown in Figure 6 In the embodiment of the present application, the first device includes: a first processor 401, a first memory 402, and a first communication bus 403;
[0166] The first communication bus 403 is used to implement a communication connection between the first processor 401 and the first memory 402;
[0167] The first processor 401 is configured to execute one or more computer programs stored in the first memory 402 to implement a transmission method applied to the first device.
[0168] An embodiment of the present application provides a second device. Figure 7 Structural schematic of a second device provided by an embodiment of the present application Figure 1 As shown in Figure 7 In the embodiment of the present application, the second device includes:
[0169] A second communication module 501, configured to receive first data sent by the first device;
[0170] A second determination module 502, configured to determine the coverage or transmission format of the first device based on a first timing when the first device sends the first data;
[0171] And / or, the second communication module 501 is configured to receive the coverage of the first device sent by the first device or a measurement result of a signal sent by the first device to the second device;
[0172] The second determination module 502 is configured to determine the transmission format of the first device based on the coverage of the first device, or determine the coverage or transmission format of the first device based on a measurement result of a signal sent by the first device to the second device.
[0173] In an embodiment of the present application, the first timing is determined based on the coverage of the first device. Before the second communication module 501 receives the first data sent by the first device; and / or, before receiving the coverage of the first device sent by the first device, it is further configured to send a signal to the first device, so that the first device determines the coverage of the first device based on a measurement result of a signal sent to the second device.
[0174] In an embodiment of the present application, the second communication module 501 is further configured to send a measurement value threshold to the first device, so that the first device determines the coverage of the first device based on the measurement result of the signal sent by the second device and the measurement value threshold; wherein, the measurement value threshold is a received signal quality threshold or a received signal level threshold.
[0175] In an embodiment of the present application, the second communication module 501 is further configured to send indication information to the first device after determining the transmission format of the first device; wherein, the indication information is used to indicate the transmission format of the first device.
[0176] Figure 8 Structural schematic of a second device provided by an embodiment of the present application Figure 2 As Figure 8 shown, in an embodiment of the present application, the second device includes: a second processor 801, a second memory 802, and a second communication bus 803;
[0177] The second communication bus 803 is used to implement a communication connection between the second processor 801 and the second memory 802;
[0178] The second processor 801 is configured to execute one or more computer programs stored in the second memory 802 to implement a transmission method applied to the second device.
[0179] The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the above-mentioned transmission method is implemented. The computer-readable storage medium may be a volatile memory, such as a random access memory (Random-Access Memory, RAM); or a non-volatile memory, such as a read-only memory (Read-Only Memory, ROM), a flash memory, a hard disk (Hard Disk Drive, HDD) or a solid-state drive (Solid-State Drive, SSD); it may also be a respective device including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc.
[0180] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories and optical memories, etc.) that contain computer-usable program code.
[0181] The present application is described with reference to the schematic implementation flow diagrams and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the schematic implementation flow diagrams and / or block diagrams, and the combination of the flows and / or blocks in the schematic implementation flow diagrams and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0182] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing devices to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0183] These computer program instructions can also be loaded onto a computer or other programmable data processing devices, such that a series of operation steps are executed on the computer or other programmable devices to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable devices provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0184] As mentioned above, the above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed in the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claimed rights.
Claims
1. A transmission method, characterized in that, Applied to a first device, the method includes: Based on the coverage of the first device or the measurement result of the signal sent by the first device to a second device, determining a first timing for sending first data to the second device, and sending the first data to the second device at the first timing; And / or, sending the coverage of the first device or the measurement result of the signal sent by the first device to the second device to the second device.
2. The method according to claim 1, wherein Before determining the first timing for sending first data to the second device based on the coverage of the first device; And / or, before sending the coverage of the first device to the second device, the method further includes: Based on the measurement result of the signal sent by the first device to the second device, determining the coverage of the first device.
3. The method according to claim 1, characterized in that, The determining the first timing for sending first data to the second device based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device includes: Based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device, determining a first value; Based on a first command sent by the second device, or based on a natural time slot, or based on an available transmission time slot, decrementing the first value; Determining the timing when the first value is decremented to a target value as the first timing.
4. The method according to claim 3, wherein The first value satisfies a first constraint condition between the index of the first device and the total number of indexes; Wherein, the index of the first device is determined based on the coverage of the first device, or based on the measurement result of the signal sent by the first device to a second device and a measurement value threshold.
5. The method according to claim 4, wherein The first constraint condition is: the result of taking the modulus of the first value with respect to the total number of indexes is the same as or has a corresponding relationship with the index of the first device.
6. The method according to claim 4, characterized in that, The determining the first value based on the coverage of the first device or the measurement result of the signal sent by the first device to a second device includes: Generating a random number and determining it as an initial value; Calculating the result of taking the modulus of the initial value with respect to the total number of indexes to obtain a first calculation result; Calculating the difference between the initial value and the first calculation result to obtain a second calculation result; Calculating the sum of the second calculation result and the index of the first device to obtain the first value.
7. The method according to claim 4, wherein The determining the first value based on the coverage of the first device or the measurement result of the signal sent by the first device to a second device includes: Generating a random number and determining it as an initial value; Calculating the result of rounding down the quotient of the initial value divided by the total number of indexes to obtain a third calculation result; Calculating the product of the third calculation result and the total number of indexes to obtain a fourth calculation result; Calculating the sum of the fourth calculation result and the index of the first device to obtain the first value.
8. The method according to claim 1, characterized in that, Determining a first timing for sending first data to the second device based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device includes: Generating a random number and determining it as a second value; Based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device, determining a decrement timing for the second value to decrement the second value; Determining the timing when the second value is decremented to a target value as the first timing.
9. The method according to claim 8, wherein The determining the decrement timing for the second value based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device includes: Incrementing a variable initially set to zero based on a first command sent by the second device, or based on a natural time slot, or an available transmission time slot; Determining an index of the first device based on the coverage of the first device, or based on the measurement result and measurement value threshold of the signal sent by the first device to the second device; Determining the timing when the variable is incremented to satisfy a second constraint condition between the index of the first device and the total number of indexes as the decrement timing.
10. The method according to claim 1, wherein Determining a first timing for sending first data to the second device based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device includes: Generating a random number and determining it as a third value; Based on a first command sent by the second device, or based on a natural time slot, or an available transmission time slot, decrementing the third value and incrementing a variable initially set to zero; When the third value is decremented to the target value, determining the first timing in combination with the variable based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device.
11. The method according to claim 10, wherein The determining the first timing in combination with the variable based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device includes: Determining an index of the first device based on the coverage of the first device, or based on the measurement result and measurement value threshold of the signal sent by the first device to the second device; Determining the timing when the variable is incremented to satisfy a second constraint condition between the index of the first device and the total number of indexes as the first timing.
12. The method according to claim 9 or 11, characterized in that, The second constraint condition is: the result of taking the modulo of the variable with respect to the total number of indexes is the same as or has a corresponding relationship with the index of the first device.
13. The method according to claim 1, wherein The method further includes: Receiving indication information sent by the second device; wherein the indication information is used to indicate a transmission format for the first device to transmit data, and the transmission format is determined by the second device based on the first timing, or based on the coverage of the first device or the measurement result of the signal sent by the first device to the second device; Transmitting data to the second device according to the transmission format.
14. A transmission method, characterized in that, Applied to the second device, the method includes: Receiving first data sent by the first device; Based on a first timing when the first device sends the first data, determine the coverage condition or transmission format of the first device; and / or, receive the coverage condition of the first device sent by the first device or the measurement result of the signal sent by the first device to the second device; Based on the coverage condition of the first device, determine the transmission format of the first device, or based on the measurement result of the signal sent by the first device to the second device, determine the coverage condition or transmission format of the first device.
15. The method according to claim 14, wherein The first timing is determined based on the coverage condition of the first device, before receiving the first data sent by the first device; and / or, before receiving the coverage condition of the first device sent by the first device, the method further includes: Send a signal to the first device, so that the first device determines the coverage condition of the first device based on the measurement result of the signal sent by the first device to the second device.
16. The method according to claim 15, characterized in that The method further includes: Send a measurement value threshold to the first device, so that the first device determines the coverage condition of the first device based on the measurement result of the signal sent by the first device to the second device and the measurement value threshold; wherein, the measurement value threshold is a received signal quality threshold or a received signal level threshold.
17. The method according to claim 14, characterized in that, The method further includes: After determining the transmission format of the first device, send indication information to the first device; wherein, the indication information is used to indicate the transmission format of the first device.
18. A first device, characterized in that, Comprises: A first processor, a first memory and a first communication bus; The first communication bus is used to realize the communication connection between the first processor and the first memory; The first processor is used to execute one or more computer programs stored in the first memory to implement the transmission method according to any one of claims 1-13.
19. A second device, characterized in that, Comprises: A second processor, a second memory and a second communication bus; The second communication bus is used to realize the communication connection between the second processor and the second memory; The second processor is used to execute one or more computer programs stored in the second memory to implement the transmission method according to any one of claims 14-17.
20. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed, it implements the transmission method according to any one of claims 1-17.