Message transmission method and device, communication equipment and storage medium

By using the remaining access time and the maximum number of retransmissions to determine the message transmission time between the reader and the Ambient IoT device, a second acquisition message is sent to resolve the message transmission anomaly, thus achieving smooth communication and access between the devices.

CN121509913APending Publication Date: 2026-02-10CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411093255.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2026-02-10

AI Technical Summary

Technical Problem

During the interaction and connection process between the reader and the Ambient IoT device, message transmission anomalies caused the connection to stall, affecting the smooth connection between the devices.

Method used

When a reader and Ambient IoT device receive an abnormal response message, they send a second acquisition message to ensure smooth communication by determining the remaining access time and the maximum number of retransmissions, including the use of timers and abnormal indication messages.

Benefits of technology

This prevents message interaction between the reader and the Ambient IoT device from stalling, ensuring the smooth completion of the device access operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121509913A_ABST
    Figure CN121509913A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of mobile terminals, in particular to a message transmission method and device, communication equipment and a storage medium. The method comprises the following steps: sending a first acquisition message to Ambient IoT equipment; if it is determined that abnormity exists in the process of receiving the first response message returned by the Ambient IoT device, determining the current remaining access time; and if the current residual access time is not the first target value and the current first maximum retransmission frequency is greater than or equal to a second target value, sending a second acquisition message to the Ambient IoT device, the second acquisition message at least comprising the first acquisition message, so that the Ambient IoT device returns a second response message to the reader-writer. According to the method and the device, the situation that message interaction between the reader-writer and the Ambient IoT equipment is stagnated due to the fact that message transmission between the reader-writer and the Ambient IoT equipment is abnormal can be prevented, and the fact that equipment access operation can be smoothly completed between the reader-writer and the Ambient IoT equipment is further guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of mobile terminal technology, and in particular to a message transmission method, apparatus, communication device, and storage medium. Background Technology

[0002] Ambient IoT (or Passive Internet of Things) features technologies such as radio frequency energy harvesting, backscattering, and low-power computing. With its ultra-low-cost deployment and operation characteristics, it is widely used in supply chain management, inventory counting / control in warehousing and logistics.

[0003] However, if there is an abnormal message transmission during the interaction and connection process between the reader and the Ambient IoT device, the interaction and connection process between the reader and the Ambient IoT device will be interrupted, affecting the smooth connection between the reader and the Ambient IoT device. Summary of the Invention

[0004] Therefore, it is necessary to provide a message transmission method, apparatus, communication device, and storage medium that can prevent the interruption of the interaction and connection process between the reader and the Ambient IoT device in order to address the above-mentioned technical problems.

[0005] In a first aspect, this application provides a message transmission method applied to a reader / writer, the method comprising:

[0006] Send the first retrieval message to the Ambient IoT device;

[0007] If an anomaly is determined during the receipt of the first response message returned by the Ambient IoT device, the remaining access time is determined.

[0008] If the current remaining access time is not the first target value, and the current first maximum retransmission count is greater than or equal to the second target value, then a second acquisition message is sent to the Ambient IoT device. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader / writer.

[0009] In one embodiment, the reader includes a timer, the timer's duration being less than or equal to a preset access duration; after sending the first acquisition message to the Ambient IoT device, the method further includes:

[0010] Start the timer.

[0011] In one embodiment, determining that an anomaly exists during the receipt of the first response message returned by the Ambient IoT device includes:

[0012] If the timer times out and the first response message corresponding to the first acquisition message is not received, it is determined that there is an anomaly in the process of receiving the first response message returned by the Ambient IoT device.

[0013] In one embodiment, determining that an anomaly exists during the receipt of the first response message returned by the Ambient IoT device includes:

[0014] Receive the first response message returned by the Ambient IoT device and verify the first response message;

[0015] If the verification of the first response message fails, it is determined that there is an anomaly in the process of receiving the first response message returned by the Ambient IoT device.

[0016] In one embodiment, determining that an anomaly exists during the receipt of the first response message returned by the Ambient IoT device includes:

[0017] Receive the first response message returned by the Ambient IoT device, and parse the first response message;

[0018] If the parsing of the first response message fails, it is determined that an anomaly exists in the process of receiving the first response message returned by the Ambient IoT device.

[0019] In one embodiment, the method further includes:

[0020] If the current remaining access time is the first target value, and / or the current first maximum retransmission count is less than the second target value, then stop waiting for the Ambient IoT device to return the first response message.

[0021] In one embodiment, after sending the second acquisition message to the Ambient IoT device, the method further includes:

[0022] Reduce the current first maximum retransmission count to obtain the updated current first maximum retransmission count.

[0023] In one embodiment, the second acquisition message further includes an exception indication message; the exception indication message is used to indicate an exception condition of the first response message; the exception condition includes at least one of timer timeout, message verification failure, and message parsing failure.

[0024] Secondly, this application provides a message transmission method applied to an Ambient IoT device, the method comprising:

[0025] Receive the first acquisition message sent by the reader and determine the current remaining access time;

[0026] If the current remaining access time is not the first target value, and the current second maximum retransmission count is greater than or equal to the third target value, then a first response message is returned to the reader.

[0027] In one embodiment, the method further includes:

[0028] If the current remaining access time is the first target value, and / or the current second maximum retransmission count is less than the third target value, then the operation of returning the first response message to the reader / writer is stopped.

[0029] In one embodiment, after sending the first response message to the reader, the method further includes:

[0030] Reduce the current second maximum retransmission count to obtain the updated current maximum retransmission count.

[0031] Thirdly, this application also provides a message transmission device configured in a reader / writer, the device comprising:

[0032] The first sending module is used to send a first acquisition message to the Ambient IoT device;

[0033] The determination module is used to determine the current remaining access time if it is determined that an anomaly exists during the process of receiving the first response message returned by the Ambient IoT device.

[0034] The second sending module is configured to send a second acquisition message to the Ambient IoT device if the current remaining access time is not a first target value and the current first maximum retransmission count is greater than or equal to a second target value. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader / writer.

[0035] Fourthly, this application also provides a message transmission device configured in an Ambient IoT device, the device comprising:

[0036] The receiving module is used to receive the first acquisition message sent by the reader and determine the current remaining access time;

[0037] The return module is configured to return a first response message to the reader if the current remaining access time is not a first target value and the current second maximum retransmission count is greater than or equal to a third target value.

[0038] Fifthly, this application also provides a communication device. The communication device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0039] Send the first retrieval message to the Ambient IoT device;

[0040] If an anomaly is determined during the receipt of the first response message returned by the Ambient IoT device, the remaining access time is determined.

[0041] If the current remaining access time is not the first target value, and the current first maximum retransmission count is greater than or equal to the second target value, then a second acquisition message is sent to the Ambient IoT device. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader / writer.

[0042] Sixthly, this application also provides a communication device. The communication device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0043] Receive the first acquisition message sent by the reader and determine the current remaining access time;

[0044] If the current remaining access time is not the first target value, and the current second maximum retransmission count is greater than or equal to the third target value, then a first response message is returned to the reader.

[0045] Seventhly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0046] Send the first retrieval message to the Ambient IoT device;

[0047] If an anomaly is determined during the receipt of the first response message returned by the Ambient IoT device, the remaining access time is determined.

[0048] If the current remaining access time is not the first target value, and the current first maximum retransmission count is greater than or equal to the second target value, then a second acquisition message is sent to the Ambient IoT device. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader / writer.

[0049] Eighthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0050] Receive the first acquisition message sent by the reader and determine the current remaining access time;

[0051] If the current remaining access time is not the first target value, and the current second maximum retransmission count is greater than or equal to the third target value, then a first response message is returned to the reader.

[0052] Ninthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0053] Send the first retrieval message to the Ambient IoT device;

[0054] If an anomaly is determined during the receipt of the first response message returned by the Ambient IoT device, the remaining access time is determined.

[0055] If the current remaining access time is not the first target value, and the current first maximum retransmission count is greater than or equal to the second target value, then a second acquisition message is sent to the Ambient IoT device. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader / writer.

[0056] Tenthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0057] Receive the first acquisition message sent by the reader and determine the current remaining access time;

[0058] If the current remaining access time is not the first target value, and the current second maximum retransmission count is greater than or equal to the third target value, then a first response message is returned to the reader.

[0059] In the aforementioned message transmission method, apparatus, communication device, and storage medium, the reader sends a first retrieval message to the Ambient IoT device to determine the current remaining access time in the event of an anomaly during the reader's receipt of the first response message returned by the Ambient IoT device. Then, if the current remaining access time is not a first target value and the current first maximum retransmission count is greater than or equal to a second target value, the reader sends a second retrieval message to the Ambient IoT device. The Ambient IoT device receives the first retrieval message from the reader and, if the current remaining access time is not a first target value and the current second maximum retransmission count is greater than or equal to a third target value, the Ambient IoT device returns a first response message to the reader. As can be seen from the above, when an anomaly is detected in the process of the reader receiving the first response message returned by the Ambient IoT device, this application will not wait indefinitely for the first response message returned by the Ambient IoT device. Instead, if the current remaining access time is not the first target value and the current first maximum retransmission count is greater than or equal to the second target value, it will send a second acquisition message to the Ambient IoT device. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader, thereby ensuring smooth message transmission between the reader and the Ambient IoT device. Furthermore, the Ambient IoT device will also return a first response message to the reader if the current remaining access time is not the first target value and the current second maximum retransmission count is greater than or equal to the third target value. This prevents the message interaction between the reader and the Ambient IoT device from stalling due to an anomaly in message transmission between them, further ensuring that the reader and the Ambient IoT device can successfully complete the device access operation. Attached Figure Description

[0060] Figure 1 An application environment diagram of a message transmission method provided in an embodiment of this application;

[0061] Figure 2 A flowchart illustrating the first message transmission method provided in this application embodiment;

[0062] Figure 3 This is a schematic diagram of the first type of access duration provided in the embodiments of this application;

[0063] Figure 4 This is a schematic diagram illustrating the second type of access duration provided in an embodiment of this application;

[0064] Figure 5A flowchart illustrating the second message transmission method provided in this application embodiment;

[0065] Figure 6 This is a schematic diagram illustrating the third type of access duration provided in the embodiments of this application;

[0066] Figure 7 A signaling diagram of a message transmission method provided in an embodiment of this application;

[0067] Figure 8 A structural block diagram of a first message transmission device provided in the embodiments of this application;

[0068] Figure 9 This is a structural block diagram of a second message transmission device provided in an embodiment of this application;

[0069] Figure 10 This is an internal structural diagram of a communication device in one embodiment. Detailed Implementation

[0070] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0071] It is understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application. In the description of this application, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0072] The message transmission method provided in this application embodiment can be applied to, for example... Figure 1In the application environment shown, reader 102 communicates with Ambient IoT device 104 via a network. A data storage system can store the data that Ambient IoT device 104 needs to process. The data storage system can be integrated onto Ambient IoT device 104 or placed in the cloud or on other network servers. The reader sends a first retrieval message to the Ambient IoT device to determine the remaining access time in case of an anomaly during the reader's reception of the first response message returned by the Ambient IoT device. Then, if the remaining access time is not a first target value and the current first maximum retransmission count is greater than or equal to a second target value, the reader sends a second retrieval message to the Ambient IoT device. The Ambient IoT device receives the first retrieval message from the reader and, if the remaining access time is not a first target value and the current second maximum retransmission count is greater than or equal to a third target value, returns a first response message to the reader. Reader 102 can be a standalone base station or a base station cluster consisting of multiple base stations. Ambient IoT devices 104 can be, but are not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc.

[0073] In one embodiment, such as Figure 2 As shown, a message transmission method is provided, which is applied to... Figure 1 Taking the reader 102 as an example, the following steps are included:

[0074] S201, Send the first acquisition message to the Ambient IoT device.

[0075] It should be noted that the access operation between the Ambient IoT device and the reader / writer may specifically include the following steps: The reader / writer sends a random factor and / or other relevant parameters to the Ambient IoT device, which is the Msg0 (Message) message; the Ambient IoT device receives the random factor and generates a random number N based on the random factor, or a temporary identifier of the Ambient IoT device, and sends the random number N or the temporary identifier back to the reader / writer as the Msg1 message; after receiving the random number N or the temporary identifier in the Msg1 message, the reader / writer decodes and verifies the random number N or the temporary identifier, and then sends an ACK (acknowledgment) message to the Ambient IoT device, and / or carries the random number N or the temporary identifier previously obtained from Msg1, which is the Msg2 message (corresponding to the first acquisition message in this application), wherein, upon receiving the Msg2 message sent by the reader / writer, the Ambient IoT device sends a permanent identifier (such as: the physical identifier of the Ambient IoT device) and uplink data to the reader / writer, which is the Msg3 message; subsequently, the reader / writer receives the Ambient... For IoT devices, the Msg3 message is sent as an ACK message or a NACK (negative acknowledgment) message, which is the Msg4 message.

[0076] To further explain, since message transmission failures can easily occur due to abnormal message transmission during the process of the reader sending the Msg2 message to the Ambient IoT device, and during the process of the Ambient IoT device sending the Msg3 message back to the reader, affecting the access operation between the Ambient IoT device and the reader, the subsequent process of this application can be used to process the message transmission during the process of the reader sending the Msg2 message to the Ambient IoT device, and during the process of the Ambient IoT device sending the Msg3 message back to the reader. This prevents the message interaction between the reader and the Ambient IoT device from being interrupted due to abnormal message transmission between them, thus ensuring that the reader and the Ambient IoT device can successfully complete the device access operation.

[0077] The first acquisition message includes an acknowledgment message from the Ambient IoT device, and a random number N generated by the Ambient IoT device based on a random factor, or a temporary identifier of the Ambient IoT device.

[0078] S202, if it is determined that an anomaly exists during the process of receiving the first response message returned by the Ambient IoT device, then determine the current remaining access time.

[0079] It should be noted that the remaining access time refers to the difference between the pre-set access time (Occasion) during the device access process between the Ambient IoT device and the reader, and the access time already consumed. In other words, if the remaining access time is empty, the Ambient IoT device and the reader will not perform message transmission operations.

[0080] The access duration can be determined based on the number of Ambient IoT devices covered by the reader. If the number of Ambient IoT devices covered by the reader is large, then for a certain access round period, the access round period needs to be divided into access durations corresponding to each Ambient IoT device. Furthermore, the access durations corresponding to different Ambient IoT devices can be the same or different, and there is no limitation on the access duration of Ambient IoT devices here.

[0081] To further explain, such as Figure 3 As shown, during the access operation between the Ambient IoT device and the reader, if the Ambient IoT generates a random number N based on a random factor, or the temporary identifier of the Ambient IoT device, the random number N or the temporary identifier is used as the Msg1 message, and the time when the Msg1 message is fed back to the reader is used as the start time of the access duration.

[0082] It should be noted that there are many possible abnormal situations that may occur when the reader receives the first response message returned by the Ambient IoT device. For example, the reader may not receive the first response message corresponding to the first acquisition message within the preset waiting time after sending the first acquisition message to the Ambient IoT device, or the verification of the first response message received by the reader may fail, or the parsing of the first response message received by the reader may fail. Here, we will not limit the possible abnormal situations that may occur when the reader receives the first response message returned by the Ambient IoT device.

[0083] S203, if the current remaining access time is not the first target value, and the current first maximum retransmission count is greater than or equal to the second target value, then send a second acquisition message to the Ambient IoT device.

[0084] The second acquisition message includes at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader / writer.

[0085] It should be noted that if the current remaining access time is not the first target value, it means that the current remaining access time is not zero. Therefore, the first target value can be set to zero, or a preset value set according to the actual situation.

[0086] To further explain, if the current first maximum retransmission count is greater than or equal to the second target value, it means that the remaining first maximum retransmission count at the current moment is not zero. Therefore, the second target value can be set to zero, or a preset value set according to the actual situation.

[0087] In summary, if the current remaining access time is not the first target value, and the current first maximum retransmission count is greater than or equal to the second target value, it means that the current remaining access time is not zero, and messages can still be sent to the Ambient IoT device. Furthermore, if the reader's remaining maximum retransmission count is not zero, the reader still has the ability to send messages, and therefore, a second acquisition message can be sent to the Ambient IoT device.

[0088] In the aforementioned message transmission method, the reader sends a first retrieval message to the Ambient IoT device to determine the remaining access time in case of an anomaly during the reader's receipt of the first response message returned by the Ambient IoT device. Then, if the remaining access time is not a first target value and the current first maximum retransmission count is greater than or equal to a second target value, the reader sends a second retrieval message to the Ambient IoT device. The Ambient IoT device receives the first retrieval message from the reader and, if the remaining access time is not a first target value and the current second maximum retransmission count is greater than or equal to a third target value, returns a first response message to the reader. As can be seen from the above, when an anomaly is detected in the process of the reader receiving the first response message returned by the Ambient IoT device, this application will not wait indefinitely for the first response message returned by the Ambient IoT device. Instead, if the current remaining access time is not the first target value and the current first maximum retransmission count is greater than or equal to the second target value, it will send a second acquisition message to the Ambient IoT device. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader, thereby ensuring smooth message transmission between the reader and the Ambient IoT device. Furthermore, the Ambient IoT device will also return a first response message to the reader if the current remaining access time is not the first target value and the current second maximum retransmission count is greater than or equal to the third target value. This prevents the message interaction between the reader and the Ambient IoT device from stalling due to an anomaly in message transmission between them, further ensuring that the reader and the Ambient IoT device can successfully complete the device access operation.

[0089] In one embodiment, the reader includes a timer, the timer duration of which is less than or equal to a preset access duration; therefore, after sending the first acquisition message to the Ambient IoT device, the following may be included: starting the timer.

[0090] The access duration (Occasion) is the pre-set duration during which the Ambient IoT device is allowed to access the reader; and the time when the Ambient IoT device sends the Msg1 message back to the reader is taken as the start time of the access duration.

[0091] It should be noted that after starting the timer, it is necessary to check in real time whether the timer has timed out. If it times out, it means that the first response message returned by the Ambient IoT device has not been received within the preset time period, which indicates that there is an anomaly in the process of receiving the first response message returned by the Ambient IoT device.

[0092] Therefore, in the process of determining that there is an anomaly in the process of receiving the first response message returned by the Ambient IoT device, if the timer times out and the first response message corresponding to the first acquisition message is not received, then it is determined that there is an anomaly in the process of receiving the first response message returned by the Ambient IoT device.

[0093] To further explain, if a first response message corresponding to the first acquisition message sent by the Ambient IoT device is received before the timer expires, the first response message can be verified and parsed, and based on the verification and parsing results, it can be determined whether there is any abnormality in the process of receiving the first response message returned by the Ambient IoT device.

[0094] In one embodiment of this application, when it is necessary to determine if there is an anomaly in the process of receiving the first response message returned by the Ambient IoT device, the following may be included: receiving the first response message returned by the Ambient IoT device and verifying the first response message; if the verification of the first response message fails, it is determined that there is an anomaly in the process of receiving the first response message returned by the Ambient IoT device.

[0095] As an example, the integrity of the first response message can be checked. If the check determines that the first response message was not present during transmission, the check is deemed to have failed, thus indicating an anomaly in receiving the first response message returned by the Ambient IoT device.

[0096] In another embodiment of this application, when it is necessary to determine that an exception exists in the process of receiving the first response message returned by the Ambient IoT device, the following may also be included: receiving the first response message returned by the Ambient IoT device and parsing the first response message; if the parsing of the first response message fails, it is determined that an exception exists in the process of receiving the first response message returned by the Ambient IoT device.

[0097] To further explain, in order to ensure that the reader and the Ambient IoT device can successfully complete the device access operation, an anomaly indication message can be added to the second acquisition message. The anomaly indication message is used to indicate the reason for the anomaly in the process of the reader receiving the first response message returned by the Ambient IoT device, so that the Ambient IoT device can avoid or repair the anomaly.

[0098] Specifically, the second message acquisition also includes an exception indication message; the exception indication message is used to indicate an exception in the first response message; the exception includes at least one of timer timeout, message verification failure, and message parsing failure.

[0099] The aforementioned message transmission method can determine if there is an anomaly during the process of receiving the first response message returned by the Ambient IoT device, thus providing a sending condition for the reader / writer to send a second acquisition message to the Ambient IoT device. This prevents the message interaction between the reader / writer and the Ambient IoT device from stalling due to anomalies in message transmission between them, further ensuring that the reader / writer and the Ambient IoT device can successfully complete the device access operation.

[0100] In one embodiment, if the current remaining access time is a first target value, it means that the current time has exceeded the preset access time allowed for Ambient IoT devices and readers to perform access operations, and access operations between Ambient IoT devices and readers cannot be performed; if the current first maximum retransmission count is less than a second target value, it means that the reader has no remaining attempts to send messages to Ambient IoT devices, and the reader cannot send messages to Ambient IoT devices.

[0101] Therefore, if the current remaining access time is the first target value, and / or the current first maximum retransmission count is less than the second target value, then stop waiting for the Ambient IoT device to return the first response message.

[0102] like Figure 4 As shown, if the reader sends the second acquisition message to the Ambient IoT device for more than the access time, i.e., the current remaining access time is the first target value, then it stops waiting for the Ambient IoT device to return the first response message.

[0103] The above message transmission method stops waiting for the Ambient IoT device to return a first response message when the current remaining access time is a first target value and / or the current first maximum retransmission count is less than a second target value. This prevents the reader from waiting for the Ambient IoT device to return a first response message for a long time due to an anomaly in the process of the reader receiving the first response message returned by the Ambient IoT device.

[0104] In one embodiment, after the reader sends the second retrieval message to the Ambient IoT device, to prevent the reader from encountering anomalies in the subsequent process of receiving the first response message returned by the Ambient IoT device and needing to resend the second retrieval message, the maximum number of retransmissions needs to be updated to prevent the reader from exceeding the remaining maximum number of retransmissions when resending the second retrieval message.

[0105] Specifically, after the reader sends the second acquisition message to the Ambient IoT device, the current first maximum retransmission count can be reduced to obtain the updated current first maximum retransmission count.

[0106] In one embodiment of this application, it can be pre-defined that the maximum number of retransmissions is decremented by one each time the reader sends the second acquisition message to the Ambient IoT device. Therefore, after the reader sends the second acquisition message to the Ambient IoT device, the current maximum number of retransmissions is decremented by one to obtain the updated current maximum number of retransmissions.

[0107] The above message transmission method, by updating the maximum number of retransmissions, prevents the reader from exceeding the remaining maximum number of retransmissions when a second message needs to be retransmitted in subsequent processes, thus ensuring that the reader and Ambient IoT device can successfully complete the device access operation.

[0108] In one embodiment, such as Figure 5 As shown, a message transmission method is provided, which is applied to... Figure 1 Taking Ambient IoT device 104 as an example, the following steps are included:

[0109] S501 receives the first acquisition message sent by the reader and determines the current remaining access time.

[0110] The first acquisition message includes an acknowledgment message from the Ambient IoT device, and a random number N generated by the Ambient IoT device based on a random factor, or a temporary identifier of the Ambient IoT device.

[0111] It should be noted that the remaining access time refers to the difference between the pre-set access time (Occasion) during the device access process between the Ambient IoT device and the reader, and the access time already consumed. In other words, if the remaining access time is empty, the Ambient IoT device and the reader will not perform message transmission operations.

[0112] The access duration can be determined based on the number of Ambient IoT devices covered by the reader. If the number of Ambient IoT devices covered by the reader is large, then for a certain access round period, the access round period needs to be divided into access durations corresponding to each Ambient IoT device. Furthermore, the access durations corresponding to different Ambient IoT devices can be the same or different, and there is no limitation on the access duration of Ambient IoT devices here.

[0113] S502, if the current remaining access time is not the first target value, and the current second maximum retransmission count is greater than or equal to the third target value, then return the first response message to the reader / writer.

[0114] The first response message refers to the Msg3 message sent by the Ambient IoT device to the reader during the access operation between the Ambient IoT device and the reader, which contains a permanent identifier and uplink data.

[0115] It should be noted that if the current remaining access time is not the first target value, it means that the current remaining access time is not zero. Therefore, the first target value can be set to zero, or a preset value set according to the actual situation.

[0116] To further explain, if the current second maximum retransmission count is greater than or equal to the third target value, it means that the remaining second maximum retransmission count at the current moment is not zero. Therefore, the third target value can be set to zero, or a preset value set according to the actual situation.

[0117] In summary, if the current remaining access time is not the first target value, and the current second maximum retransmission count is greater than or equal to the third target value, it means that the remaining access time at the current moment is not zero, and the Ambient IoT device can still send messages to the reader; furthermore, if the remaining maximum retransmission count of the Ambient IoT device is not zero, the Ambient IoT device still has the ability to send messages, and therefore can return the first response message to the reader.

[0118] In one embodiment of this application, if the current remaining access time is a first target value, it means that the current time has exceeded the preset access time allowed for Ambient IoT devices to access the reader, and access operations between Ambient IoT devices and readers cannot be performed; if the current second maximum retransmission count is less than a third target value, it means that the remaining number of times Ambient IoT devices can send messages to the reader is empty, and Ambient IoT devices cannot send messages to the reader.

[0119] Therefore, if the current remaining access time is the first target value, and / or the current second maximum retransmission count is less than the third target value, the operation of returning the first response message to the reader is stopped.

[0120] like Figure 6 As shown, if the time it takes for the Ambient IoT device to send the first response message to the reader exceeds the access duration, i.e., the current remaining access time is the first target value, then the operation of returning the first response message to the reader will stop.

[0121] In another embodiment of this application, after sending the first response message to the reader, in order to prevent the reader from exceeding the remaining maximum number of retransmissions when retransmitting the first response message, the current second maximum number of retransmissions can be reduced to obtain the updated current second maximum number of retransmissions.

[0122] In one embodiment of this application, it can be pre-defined that the second maximum retransmission count is decremented by one each time the Ambient IoT device sends a first response message to the reader. Therefore, after the Ambient IoT device sends a first response message to the reader, the current second maximum retransmission count is decremented by one to obtain the updated current second maximum retransmission count.

[0123] In the aforementioned message transmission method, the reader sends a first retrieval message to the Ambient IoT device to determine the remaining access time in case of an anomaly during the reader's receipt of the first response message returned by the Ambient IoT device. Then, if the remaining access time is not a first target value and the current first maximum retransmission count is greater than or equal to a second target value, the reader sends a second retrieval message to the Ambient IoT device. The Ambient IoT device receives the first retrieval message from the reader and, if the remaining access time is not a first target value and the current second maximum retransmission count is greater than or equal to a third target value, returns a first response message to the reader. As can be seen from the above, when an anomaly is detected in the process of the reader receiving the first response message returned by the Ambient IoT device, this application will not wait indefinitely for the first response message returned by the Ambient IoT device. Instead, if the current remaining access time is not the first target value and the current first maximum retransmission count is greater than or equal to the second target value, it will send a second acquisition message to the Ambient IoT device. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader, thereby ensuring smooth message transmission between the reader and the Ambient IoT device. Furthermore, the Ambient IoT device will also return a first response message to the reader if the current remaining access time is not the first target value and the current second maximum retransmission count is greater than or equal to the third target value. This prevents the message interaction between the reader and the Ambient IoT device from stalling due to an anomaly in message transmission between them, further ensuring that the reader and the Ambient IoT device can successfully complete the device access operation.

[0124] In one embodiment, such as Figure 7 As shown, when the reader connects to an Ambient IoT device, it may include the following:

[0125] S701, the reader sends a Msg0 message to the Ambient IoT device.

[0126] S702, the Ambient IoT device receives the Msg0 message and generates a random number N based on the random factor in the Msg0 message, or a temporary identifier of the Ambient IoT device, and feeds back the random number N or the temporary identifier as the Msg1 message to the reader.

[0127] S703: After receiving the random number N or temporary identifier in the Msg1 message, the reader decodes and verifies the random number N or temporary identifier, and then sends the first acquisition message to the Ambient IoT device.

[0128] S704, if the timer times out and no first response message corresponding to the first acquisition message is received, the reader determines the current remaining access time.

[0129] S705, if the current remaining access time is not the first target value, and the current first maximum retransmission count is greater than or equal to the second target value, the reader sends a second acquisition message to the Ambient IoT device.

[0130] S706, the Ambient IoT device receives a second acquisition message from the reader and determines the current remaining access time.

[0131] S707, if the current remaining access time is not the first target value, and the current second maximum retransmission count is greater than or equal to the third target value, then the Ambient IoT device returns a first response message to the reader / writer.

[0132] In the aforementioned message transmission method, the reader sends a first retrieval message to the Ambient IoT device to determine the remaining access time in case of an anomaly during the reader's receipt of the first response message returned by the Ambient IoT device. Then, if the remaining access time is not a first target value and the current first maximum retransmission count is greater than or equal to a second target value, the reader sends a second retrieval message to the Ambient IoT device. The Ambient IoT device receives the first retrieval message from the reader and, if the remaining access time is not a first target value and the current second maximum retransmission count is greater than or equal to a third target value, returns a first response message to the reader. As can be seen from the above, when an anomaly is detected in the process of the reader receiving the first response message returned by the Ambient IoT device, this application will not wait indefinitely for the first response message returned by the Ambient IoT device. Instead, if the current remaining access time is not the first target value and the current first maximum retransmission count is greater than or equal to the second target value, it will send a second acquisition message to the Ambient IoT device. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader, thereby ensuring smooth message transmission between the reader and the Ambient IoT device. Furthermore, the Ambient IoT device will also return a first response message to the reader if the current remaining access time is not the first target value and the current second maximum retransmission count is greater than or equal to the third target value. This prevents the message interaction between the reader and the Ambient IoT device from stalling due to an anomaly in message transmission between them, further ensuring that the reader and the Ambient IoT device can successfully complete the device access operation.

[0133] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0134] Based on the same inventive concept, this application also provides a message transmission apparatus for implementing the message transmission method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more message transmission apparatus embodiments provided below can be found in the limitations of the message transmission method described above, and will not be repeated here.

[0135] In one embodiment, such as Figure 8 As shown, a message transmission device is provided, configured in a reader / writer, including: a first sending module 10, a determining module 20, and a second sending module 30, wherein:

[0136] The first sending module 10 is used to send a first acquisition message to the Ambient IoT device.

[0137] The determination module 20 is used to determine the current remaining access time if an anomaly is determined during the receipt of the first response message returned by the Ambient IoT device.

[0138] The second sending module 30 is configured to send a second acquisition message to the Ambient IoT device if the current remaining access time is not the first target value and the current first maximum retransmission count is greater than or equal to the second target value. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader.

[0139] In one embodiment, the reader includes a timer, the timer duration being less than or equal to a preset access duration; the timer is started after sending a first acquisition message to the Ambient IoT device.

[0140] In one embodiment, if the timer times out and the first response message corresponding to the first acquisition message is not received, it is determined that an anomaly exists in the process of receiving the first response message returned by the Ambient IoT device.

[0141] In one embodiment, a first response message returned by an Ambient IoT device is received, and the first response message is verified.

[0142] If the first response message verification fails, it is determined that there is an anomaly in the process of receiving the first response message returned by the Ambient IoT device.

[0143] In one embodiment, a first response message returned by an Ambient IoT device is received, and the first response message is parsed.

[0144] If parsing the first response message fails, it indicates an anomaly occurred during the process of receiving the first response message returned by the Ambient IoT device.

[0145] In one embodiment, if the current remaining access time is a first target value, and / or the current first maximum retransmission count is less than a second target value, then the waiting for the Ambient IoT device to return a first response message is stopped.

[0146] In one embodiment, the current first maximum retransmission count is reduced to obtain an updated current first maximum retransmission count.

[0147] In one embodiment, the second acquisition message further includes an exception indication message; the exception indication message is used to indicate an exception in the first response message; the exception includes at least one of timer timeout, message verification failure, and message parsing failure.

[0148] In the aforementioned message transmission device, the reader sends a first retrieval message to the Ambient IoT device to determine the current remaining access time in the event of an anomaly during the reader's receipt of the first response message returned by the Ambient IoT device. Then, if the current remaining access time is not a first target value and the current first maximum retransmission count is greater than or equal to a second target value, the reader sends a second retrieval message to the Ambient IoT device. The Ambient IoT device receives the first retrieval message from the reader and, if the current remaining access time is not a first target value and the current second maximum retransmission count is greater than or equal to a third target value, the Ambient IoT device returns a first response message to the reader. As can be seen from the above, when an anomaly is detected in the process of the reader receiving the first response message returned by the Ambient IoT device, this application will not wait indefinitely for the first response message returned by the Ambient IoT device. Instead, if the current remaining access time is not the first target value and the current first maximum retransmission count is greater than or equal to the second target value, it will send a second acquisition message to the Ambient IoT device. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader, thereby ensuring smooth message transmission between the reader and the Ambient IoT device. Furthermore, the Ambient IoT device will also return a first response message to the reader if the current remaining access time is not the first target value and the current second maximum retransmission count is greater than or equal to the third target value. This prevents the message interaction between the reader and the Ambient IoT device from stalling due to an anomaly in message transmission between them, further ensuring that the reader and the Ambient IoT device can successfully complete the device access operation.

[0149] In one embodiment, such as Figure 9 As shown, a message transmission device is provided, configured in an Ambient IoT device, including: a receiving module 40 and a returning module 50, wherein:

[0150] The receiving module 40 is used to receive the first acquisition message sent by the reader and determine the current remaining access time.

[0151] The return module 50 is used to return a first response message to the reader if the current remaining access time is not the first target value and the current second maximum retransmission count is greater than or equal to the third target value.

[0152] In one embodiment, if the current remaining access time is a first target value, and / or the current second maximum retransmission count is less than a third target value, then the operation of returning a first response message to the reader is stopped.

[0153] In one embodiment, the current second maximum retransmission count is reduced to obtain the updated current maximum retransmission count.

[0154] In the aforementioned message transmission device, the reader sends a first retrieval message to the Ambient IoT device to determine the current remaining access time in the event of an anomaly during the reader's receipt of the first response message returned by the Ambient IoT device. Then, if the current remaining access time is not a first target value and the current first maximum retransmission count is greater than or equal to a second target value, the reader sends a second retrieval message to the Ambient IoT device. The Ambient IoT device receives the first retrieval message from the reader and, if the current remaining access time is not a first target value and the current second maximum retransmission count is greater than or equal to a third target value, the Ambient IoT device returns a first response message to the reader. As can be seen from the above, when an anomaly is detected in the process of the reader receiving the first response message returned by the Ambient IoT device, this application will not wait indefinitely for the first response message returned by the Ambient IoT device. Instead, if the current remaining access time is not the first target value and the current first maximum retransmission count is greater than or equal to the second target value, it will send a second acquisition message to the Ambient IoT device. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader, thereby ensuring smooth message transmission between the reader and the Ambient IoT device. Furthermore, the Ambient IoT device will also return a first response message to the reader if the current remaining access time is not the first target value and the current second maximum retransmission count is greater than or equal to the third target value. This prevents the message interaction between the reader and the Ambient IoT device from stalling due to an anomaly in message transmission between them, further ensuring that the reader and the Ambient IoT device can successfully complete the device access operation.

[0155] Each module in the aforementioned message transmission device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware within or independently of the processor in the communication device, or stored in software within the memory of the communication device, so that the processor can invoke and execute the corresponding operations of each module.

[0156] In one embodiment, a communication device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 10 As shown, the communication device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a message transmission method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the communication device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the communication device, or external keyboards, touchpads, or mice, etc.

[0157] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the communication device to which the present application is applied. Specific communication devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0158] In one embodiment, a communication device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0159] Send the first retrieval message to the Ambient IoT device;

[0160] If an anomaly is detected during the receipt of the first response message from the Ambient IoT device, the remaining access time is determined.

[0161] If the current remaining access time is not the first target value, and the current first maximum retransmission count is greater than or equal to the second target value, then a second acquisition message is sent to the Ambient IoT device. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader.

[0162] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0163] The reader / writer includes a timer, the timer duration of which is less than or equal to a preset access duration; after sending the first acquisition message to the AmbientIoT device, the method further includes:

[0164] Start the timer.

[0165] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0166] If the timer times out and the first response message corresponding to the first acquisition message is not received, it is determined that there is an anomaly in the process of receiving the first response message returned by the Ambient IoT device.

[0167] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0168] Receive the first response message returned by the Ambient IoT device and verify the first response message;

[0169] If the first response message verification fails, it is determined that there is an anomaly in the process of receiving the first response message returned by the Ambient IoT device.

[0170] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0171] Receive the first response message returned by the Ambient IoT device and parse the first response message;

[0172] If parsing the first response message fails, it indicates an anomaly occurred during the process of receiving the first response message returned by the Ambient IoT device.

[0173] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0174] If the current remaining access time is the first target value, and / or the current first maximum retransmission count is less than the second target value, then stop waiting for the Ambient IoT device to return the first response message.

[0175] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0176] Reduce the current maximum number of retransmissions to obtain the updated current maximum number of retransmissions.

[0177] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0178] The second message to be retrieved also includes an exception indication message; the exception indication message is used to indicate an exception in the first response message; the exception includes at least one of timer timeout, message verification failure, and message parsing failure.

[0179] In one embodiment, a communication device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0180] Receive the first acquisition message sent by the reader and determine the current remaining access time;

[0181] If the current remaining access time is not the first target value, and the current second maximum retransmission count is greater than or equal to the third target value, then return the first response message to the reader.

[0182] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0183] If the current remaining access time is the first target value, and / or the current second maximum retransmission count is less than the third target value, then stop returning the first response message to the reader.

[0184] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0185] Reduce the current second maximum number of retransmissions to obtain the updated current maximum number of retransmissions.

[0186] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0187] Send the first retrieval message to the Ambient IoT device;

[0188] If an anomaly is detected during the receipt of the first response message from the Ambient IoT device, the remaining access time is determined.

[0189] If the current remaining access time is not the first target value, and the current first maximum retransmission count is greater than or equal to the second target value, then a second acquisition message is sent to the Ambient IoT device. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader.

[0190] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0191] The reader / writer includes a timer, the timer duration of which is less than or equal to a preset access duration; after sending the first acquisition message to the AmbientIoT device, the method further includes:

[0192] Start the timer.

[0193] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0194] If the timer times out and the first response message corresponding to the first acquisition message is not received, it is determined that there is an anomaly in the process of receiving the first response message returned by the Ambient IoT device.

[0195] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0196] Receive the first response message returned by the Ambient IoT device and verify the first response message;

[0197] If the first response message verification fails, it is determined that there is an anomaly in the process of receiving the first response message returned by the Ambient IoT device.

[0198] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0199] Receive the first response message returned by the Ambient IoT device and parse the first response message;

[0200] If parsing the first response message fails, it indicates an anomaly occurred during the process of receiving the first response message returned by the Ambient IoT device.

[0201] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0202] If the current remaining access time is the first target value, and / or the current first maximum retransmission count is less than the second target value, then stop waiting for the Ambient IoT device to return the first response message.

[0203] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0204] Reduce the current maximum number of retransmissions to obtain the updated current maximum number of retransmissions.

[0205] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0206] The second message to be retrieved also includes an exception indication message; the exception indication message is used to indicate an exception in the first response message; the exception includes at least one of timer timeout, message verification failure, and message parsing failure.

[0207] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0208] Receive the first acquisition message sent by the reader and determine the current remaining access time;

[0209] If the current remaining access time is not the first target value, and the current second maximum retransmission count is greater than or equal to the third target value, then return the first response message to the reader.

[0210] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0211] If the current remaining access time is the first target value, and / or the current second maximum retransmission count is less than the third target value, then stop returning the first response message to the reader.

[0212] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0213] Reduce the current second maximum number of retransmissions to obtain the updated current maximum number of retransmissions.

[0214] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0215] Send the first retrieval message to the Ambient IoT device;

[0216] If an anomaly is detected during the receipt of the first response message from the Ambient IoT device, the remaining access time is determined.

[0217] If the current remaining access time is not the first target value, and the current first maximum retransmission count is greater than or equal to the second target value, then a second acquisition message is sent to the Ambient IoT device. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader.

[0218] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0219] The reader / writer includes a timer, the timer duration of which is less than or equal to a preset access duration; after sending the first acquisition message to the AmbientIoT device, the method further includes:

[0220] Start the timer.

[0221] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0222] If the timer times out and the first response message corresponding to the first acquisition message is not received, it is determined that there is an anomaly in the process of receiving the first response message returned by the Ambient IoT device.

[0223] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0224] Receive the first response message returned by the Ambient IoT device and verify the first response message;

[0225] If the first response message verification fails, it is determined that there is an anomaly in the process of receiving the first response message returned by the Ambient IoT device.

[0226] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0227] Receive the first response message returned by the Ambient IoT device and parse the first response message;

[0228] If parsing the first response message fails, it indicates an anomaly occurred during the process of receiving the first response message returned by the Ambient IoT device.

[0229] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0230] If the current remaining access time is the first target value, and / or the current first maximum retransmission count is less than the second target value, then stop waiting for the Ambient IoT device to return the first response message.

[0231] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0232] Reduce the current maximum number of retransmissions to obtain the updated current maximum number of retransmissions.

[0233] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0234] The second message to be retrieved also includes an exception indication message; the exception indication message is used to indicate an exception in the first response message; the exception includes at least one of timer timeout, message verification failure, and message parsing failure.

[0235] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0236] Receive the first acquisition message sent by the reader and determine the current remaining access time;

[0237] If the current remaining access time is not the first target value, and the current second maximum retransmission count is greater than or equal to the third target value, then return the first response message to the reader.

[0238] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0239] If the current remaining access time is the first target value, and / or the current second maximum retransmission count is less than the third target value, then stop returning the first response message to the reader.

[0240] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0241] Reduce the current second maximum number of retransmissions to obtain the updated current maximum number of retransmissions.

[0242] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0243] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0244] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0245] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A message transmission method, characterized in that, Applied to a reader / writer, the method includes: Send a first acquisition message to an Ambient IoT or Passive IoT device; If an anomaly is determined during the receipt of the first response message returned by the Ambient IoT device, the remaining access time is determined. If the current remaining access time is not the first target value, and the current first maximum retransmission count is greater than or equal to the second target value, then a second acquisition message is sent to the Ambient IoT device. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader / writer.

2. The method according to claim 1, characterized in that, The reader includes a timer, the timing duration of which is less than or equal to a preset access duration; After sending the first acquisition message to the Ambient IoT device, the method further includes: Start the timer.

3. The method according to claim 2, characterized in that, The determination that an anomaly exists during the receipt of the first response message returned by the Ambient IoT device includes: If the timer times out and the first response message corresponding to the first acquisition message is not received, it is determined that there is an anomaly in the process of receiving the first response message returned by the Ambient IoT device.

4. The method according to claim 2, characterized in that, The determination that an anomaly exists during the receipt of the first response message returned by the Ambient IoT device includes: Receive the first response message returned by the Ambient IoT device and verify the first response message; If the verification of the first response message fails, it is determined that there is an anomaly in the process of receiving the first response message returned by the Ambient IoT device.

5. The method according to claim 2, characterized in that, The determination that an anomaly exists during the receipt of the first response message returned by the Ambient IoT device includes: Receive the first response message returned by the Ambient IoT device, and parse the first response message; If the parsing of the first response message fails, it is determined that an anomaly exists in the process of receiving the first response message returned by the Ambient IoT device.

6. The method according to claim 1, characterized in that, The method further includes: If the current remaining access time is the first target value, and / or the current first maximum retransmission count is less than the second target value, then stop waiting for the Ambient IoT device to return the first response message.

7. The method according to claim 1, characterized in that, After sending the second acquisition message to the Ambient IoT device, the method further includes: Reduce the current first maximum retransmission count to obtain the updated current first maximum retransmission count.

8. The method according to claim 1, characterized in that, The second acquisition message further includes an exception indication message; the exception indication message is used to indicate an exception in the first response message; the exception includes at least one of timer timeout, message verification failure, and message parsing failure.

9. A message sending method, characterized in that, Applied to Ambient IoT devices, the method includes: Receive the first acquisition message sent by the reader and determine the current remaining access time; If the current remaining access time is not the first target value, and the current second maximum retransmission count is greater than or equal to the third target value, then a first response message is returned to the reader.

10. The method according to claim 9, characterized in that, The method further includes: If the current remaining access time is the first target value, and / or the current second maximum retransmission count is less than the third target value, then the operation of returning the first response message to the reader / writer is stopped.

11. The method according to claim 9, characterized in that, After sending the first response message to the reader, the method further includes: Reduce the current second maximum retransmission count to obtain the updated current maximum retransmission count.

12. A message transmission device, characterized in that, Configured in a reader / writer, the device includes: The first sending module is used to send a first acquisition message to the Ambient IoT device; The determination module is used to determine the current remaining access time if it is determined that an anomaly exists during the process of receiving the first response message returned by the Ambient IoT device. The second sending module is configured to send a second acquisition message to the Ambient IoT device if the current remaining access time is not a first target value and the current first maximum retransmission count is greater than or equal to a second target value. The second acquisition message contains at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader / writer.

13. A message transmission device, characterized in that, Configured in an Ambient IoT device, the device includes: The receiving module is used to receive the first acquisition message sent by the reader and determine the current remaining access time; The return module is configured to return a first response message to the reader if the current remaining access time is not a first target value and the current second maximum retransmission count is greater than or equal to a third target value.

14. A communication device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 11.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 11.

16. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 11.