Message transmission method and apparatus, and communication device and storage medium

By detecting the remaining access time and the maximum number of retransmissions, the reader and Ambient IoT device send a second acquisition message in abnormal situations, which solves the message transmission abnormality problem during the connection process between the Ambient IoT device and the reader, and ensures smooth communication between the devices.

WO2026031778A1PCT designated stage Publication Date: 2026-02-12CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/101343
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-08-09
Filing Date
2025-06-17
Publication Date
2026-02-12

AI Technical Summary

Technical Problem

During the interaction and connection process between Ambient IoT devices and readers, abnormal message transmission caused the connection to stall, affecting the smooth connection between devices.

Method used

The reader and Ambient IoT device detect the remaining access time and maximum retransmission count. If an abnormality is detected, a second acquisition message is sent to ensure a successful connection, including timer and abnormal indication message processing.

Benefits of technology

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

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025101343_12022026_PF_FP_ABST
    Figure CN2025101343_12022026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to a message transmission method and apparatus, and a communication device and a storage medium. The method comprises: sending a first acquisition message to an Ambient IoT device; if it is determined that there is an anomaly during the process of receiving a first response message returned by the Ambient IoT device, determining a current remaining access time; and if the current remaining access time is not a first target value and a current first maximum number of retransmissions is greater than or equal to a second target value, sending a second acquisition message to the Ambient IoT device, wherein the second acquisition message at least includes the first acquisition message, such that the Ambient IoT device returns a second response message to a reader-writer.
Need to check novelty before this filing date? Find Prior Art

Description

Message transmission method and device, communication device, and storage medium

[0001] Related applications

[0002] The present application claims priority to the Chinese patent application No. 2024110932557, filed on August 9, 2024, entitled "Message transmission method and device, communication device, and storage medium", the contents of which are hereby incorporated by reference in its entirety. TECHNICAL FIELD

[0003] The present application relates to the technical field of mobile terminals, in particular to a message transmission method and device, a communication device, and a storage medium. BACKGROUND

[0004] Ambient IoT (passive Internet of Things or Ambient Internet of Things) has technical characteristics such as radio frequency energy harvesting, backscattering, and low-power computing, and is widely used in fields such as supply chain management, warehouse logistics inventory control, etc. due to its ultra-low-cost deployment and operation characteristics.

[0005] However, during the process of interaction connection between the reader / writer and the Ambient IoT device, if there is an abnormality in message transmission, the process of interaction connection between the reader / writer and the Ambient IoT device will be stalled, affecting the smooth connection between the reader / writer and the Ambient IoT device. SUMMARY

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

[0007] sending a first acquisition message to an Ambient IoT device;

[0008] if it is determined that there is an abnormality in receiving a first response message returned by the Ambient IoT device, determining a current remaining access time;

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

[0010] In one of the embodiments, the reader / writer comprises a timer, the timing duration of the timer being less than or equal to a preset access duration; after sending the first acquisition message to the Ambient IoT device, the method further comprises:

[0011] starting the timer.

[0012] In one of the embodiments, the determining that there is an exception in the process of receiving the first response message returned by the Ambient IoT device comprises:

[0013] If the first response message corresponding to the first acquisition message is not received before the timer expires, it is determined that there is an exception in the process of receiving the first response message returned by the Ambient IoT device.

[0014] In one of the embodiments, the determining that there is an exception in the process of receiving the first response message returned by the Ambient IoT device comprises:

[0015] In the case where the timer does not expire, receiving the first response message returned by the Ambient IoT device, and verifying the first response message;

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

[0017] In one of the embodiments, the verifying the first response message, and if the first response message fails the verification, determining that there is an exception in the process of receiving the first response message returned by the Ambient IoT device comprises:

[0018] Performing integrity verification on the first response message, and if the verification determines that the first response message is missing, determining that the first response message fails the verification, and determining that there is an exception in the process of receiving the first response message returned by the Ambient IoT device.

[0019] In one of the embodiments, the determining that there is an exception in the process of receiving the first response message returned by the Ambient IoT device comprises:

[0020] In the case where the timer does not expire, receiving the first response message returned by the Ambient IoT device, and performing message parsing on the first response message;

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

[0022] In one of the embodiments, the method further comprises:

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

[0024] In one of the embodiments, after the sending of the second acquisition message to the Ambient IoT device, the method further comprises:

[0025] Decreasing the current first maximum retransmission number to obtain an updated first maximum retransmission number.

[0026] In one of the embodiments, the decreasing of the current first maximum retransmission number to obtain an updated first maximum retransmission number comprises:

[0027] Decreasing the current first maximum retransmission number by one to obtain an updated first maximum retransmission number.

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

[0029] In one of the embodiments, the determining of the current remaining access time comprises:

[0030] Obtaining a preset access duration of an access operation of the Ambient IoT device with the reader;

[0031] Calculating a difference value between the preset access duration and a current access elapsed duration, and taking the difference value as the current remaining access time.

[0032] In a second aspect, the application provides a message transmission method, applied to an Ambient IoT device, the method comprising:

[0033] Receiving a first acquisition message sent by a reader, and determining a current remaining access time;

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

[0035] In one of the embodiments, the method further comprises:

[0036] If the current remaining access time is the first target value, and / or the current second maximum retransmission number is less than the third target value, stopping the operation of returning the first response message to the reader.

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

[0038] decreasing the current second maximum retransmission number to obtain an updated second maximum retransmission number.

[0039] In a third aspect, the present application also provides a message transmission device configured in a reader, the device comprising:

[0040] a first sending module configured to send a first acquisition message to an Ambient IoT device;

[0041] a determining module configured to determine a current remaining access time if it is determined that there is an abnormality in receiving a first response message returned by the Ambient IoT device;

[0042] a second sending module 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 a current first maximum retransmission number is greater than or equal to a second target value, the second acquisition message containing at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader.

[0043] In a fourth aspect, the present application also provides a message transmission device configured in an Ambient IoT device, the device comprising:

[0044] a receiving module configured to receive a first acquisition message sent by a reader and determine a current remaining access time;

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

[0046] In a fifth aspect, the present application also provides a communication device. The communication device comprises a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:

[0047] sending a first acquisition message to an Ambient IoT device;

[0048] determining a current remaining access time if it is determined that there is an abnormality in receiving a first response message returned by the Ambient IoT device;

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

[0050] In a sixth aspect, the present application provides a communication device. The communication device comprises a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:

[0051] receiving a first acquisition message sent by a reader, and determining a current remaining access time;

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

[0053] In a seventh aspect, the present application provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps:

[0054] sending a first acquisition message to an Ambient IoT device;

[0055] If it is determined that there is an exception in receiving a first response message returned by the Ambient IoT device, a current remaining access time is determined;

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

[0057] In an eighth aspect, the present application provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps:

[0058] receiving a first acquisition message sent by a reader, and determining a current remaining access time;

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

[0060] In a ninth aspect, the present application provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the following steps:

[0061] sending a first acquisition message to the Ambient IoT device;

[0062] determining a current remaining access time if it is determined that an exception exists in the process of receiving the first response message returned by the Ambient IoT device;

[0063] sending a second acquisition message to the Ambient IoT device if the current remaining access time is not a first target value and a current first maximum retransmission number is greater than or equal to a second target value, the second acquisition message comprising at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader-writer.

[0064] In a tenth aspect, the present application provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the following steps:

[0065] receiving a first acquisition message sent by a reader-writer and determining a current remaining access time;

[0066] returning a first response message to the reader-writer if the current remaining access time is not a first target value and a current second maximum retransmission number is greater than or equal to a third target value.

[0067] The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the application will be apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF DRAWINGS

[0068] FIG. 1 is an application environment diagram of a message transmission method provided by an embodiment of the present application;

[0069] FIG. 2 is a flow diagram of a first message transmission method provided by an embodiment of the present application;

[0070] FIG. 3 is a first access time diagram provided by an embodiment of the present application;

[0071] FIG. 4 is a second access time diagram provided by an embodiment of the present application;

[0072] FIG. 5 is a flow diagram of a second message transmission method provided by an embodiment of the present application;

[0073] FIG. 6 is a third access time diagram provided by an embodiment of the present application;

[0074] Figure 7 is a signaling diagram of a message transmission method according to an embodiment of the present application;

[0075] Figure 8 is a structural block diagram of a first message transmission apparatus according to an embodiment of the present application;

[0076] Figure 9 is a structural block diagram of a second message transmission apparatus according to an embodiment of the present application;

[0077] Figure 10 is an internal structure diagram of a communication device in an embodiment. DETAILED DESCRIPTION

[0078] In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and should not be used to limit the present application.

[0079] It can be understood that the specific embodiments described herein are only used to explain the present application and should not be used to limit the present application. In the description of the present application, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. In addition, the skilled in the art can combine and combine the different embodiments or examples described in the specification and the features of the different embodiments or examples without contradiction.

[0080] The message transmission method provided by the embodiments of the present application can be applied in the application environment as shown in FIG. 1. Among them, the reader 102 communicates with the Ambient IoT device 104 through the network. The data storage system can store the data that the Ambient IoT device 104 needs to process. The data storage system can be integrated on the Ambient IoT device 104, or placed on the cloud or other network servers. The reader sends the first acquisition message to the Ambient IoT device to achieve the case that there is an exception in the process that the reader receives the first response message returned by the Ambient IoT device, and then determines the current remaining access time. Further, in the case that the current remaining access time is not the first target value, and the current first maximum retransmission number is greater than or equal to the second target value, the reader sends the second acquisition message to the Ambient IoT device. The Ambient IoT device receives the first acquisition message sent by the reader, and in the case that the current remaining access time is not the first target value, and the current second maximum retransmission number is greater than or equal to the third target value, the Ambient IoT device returns the first response message to the reader. Among them, the reader 102 can be an independent base station, and the reader 102 can also be a base station cluster composed of multiple base stations. The Ambient IoT device 104 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things device can be a smart speaker, a smart TV, a smart air conditioner, a smart vehicle device, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc.

[0081] In one embodiment, as shown in FIG. 2, a message transmission method is provided. Taking the reader 102 in FIG. 1 as an example, the method includes the following steps:

[0082] S201, sending a first acquisition message to the Ambient IoT device.

[0083] It should be noted that when the access operation is performed between the Ambient IoT device and the reader, the following steps can be included: the reader sends a random factor and / or other related parameters, i.e., a Msg0 (Message) message, to the Ambient IoT device; the Ambient IoT device receives the random factor and generates a random number N according to the random factor, or a temporary identifier of the Ambient IoT device, and feeds back the random number N or the temporary identifier as a Msg1 message to the reader; the reader decodes and verifies the random number N or the temporary identifier after receiving the random number N or the temporary identifier in the Msg1 message, and then sends an ACK (acknowledgement) message to the Ambient IoT device, and / or carries the random number N or the temporary identifier obtained from the Msg1 message, i.e., a Msg2 message (corresponding to the first acquisition message in the present application); wherein the Ambient IoT device receives the Msg2 message sent by the reader, and sends a permanent identifier (such as a physical identifier of the Ambient IoT device) and uplink data to the reader, i.e., a Msg3 message (corresponding to the first response message in the present application); further, the reader receives the Msg3 message of the Ambient IoT device, and sends an ACK message or a NACK (negative acknowledgement) message, i.e., a Msg4 message.

[0084] Further, since the reader is in the process of sending the Msg2 message to the Ambient IoT device, and the Ambient IoT device is in the process of feeding back the Msg3 message to the reader, both of which are prone to message transmission failure due to abnormal message transmission, affecting the access operation between the Ambient IoT device and the reader; therefore, the message transmission method of the present application can be used to process the message transmission of the process of the reader sending the Msg2 message to the Ambient IoT device and the process of the Ambient IoT device feeding back the Msg3 message to the reader, so as to prevent the message interaction between the reader and the Ambient IoT device from being stagnant due to abnormal message transmission between the reader and the Ambient IoT device, and further ensure that the device access operation between the reader and the Ambient IoT device can be successfully completed.

[0085] Among them, the first acquisition message contains the confirmation message of the Ambient IoT device Internet of Things device, and the random number N generated by the Ambient IoT device according to the random factor, or the temporary identifier of the Ambient IoT device.

[0086] S202, if it is determined that there is an abnormality in receiving the first response message returned by the Ambient IoT device, the remaining access time is determined.

[0087] It should be noted that the remaining access time refers to the difference between the access time length (Occasion) corresponding to the pre-set allowed access operation of the Ambient IoT device and the reader and the access time length. It can be understood that if the remaining access time is empty, the Ambient IoT device and the reader will not perform message transmission operation.

[0088] Among them, the access time length can be determined according to the number of Ambient IoT devices covered by the reader. If the number of Ambient IoT devices covered by the reader is large, the access round period needs to be split into the access time length corresponding to each Ambient IoT device for a certain access round period. In addition, the access time length corresponding to different Ambient IoT devices can be the same or different, and the access time length of the Ambient IoT device is not limited here.

[0089] Further explanation, as shown in Figure 3, in the process of access operation between Ambient IoT device and reader, if Ambient IoT generates random number N according to random factor, or temporary identifier of Ambient IoT device, takes random number N or temporary identifier as Msg1 message, and feeds back Msg1 message to reader as the starting time of access time length.

[0090] It should be noted that there are many abnormal situations that may exist in the process of receiving the first response message returned by the Ambient IoT device by the reader, for example, the reader does not receive the first response message corresponding to the first acquisition message within the pre-set waiting time length after sending the first acquisition message to the Ambient IoT device, or the first response message received by the reader fails, or the first response message received by the reader fails, etc. The abnormal situation that may exist in the process of receiving the first response message returned by the Ambient IoT device by the reader is not limited here.

[0091] S203, if the current remaining access time is not the first target value, and the current first maximum retransmission number is greater than or equal to the second target value, the second acquisition message is sent to the Ambient IoT device.

[0092] Among them, the second acquisition message at least contains the first acquisition message, so that the Ambient IoT device returns the second response message to the reader.

[0093] It should be noted that the current remaining access time is not the first target value, which means that the current remaining access time is not zero, and therefore the first target value can be set to zero or a preset value set according to actual conditions.

[0094] It should be further noted that the current first maximum retransmission number is greater than or equal to the second target value, which means that the first maximum retransmission number remaining at the current time is not zero, and therefore the second target value can be set to zero or a preset value set according to actual conditions.

[0095] As can be seen from the above, if the current remaining access time is not the first target value, and the current first maximum retransmission number is greater than or equal to the second target value, it means that the remaining access time at the current time is not zero, and the message can still be sent to the Ambient IoT device; and the maximum retransmission number of the reader remaining is not zero, so the reader still has the ability to send messages, and therefore the second acquisition message can be sent to the Ambient IoT device.

[0096] The message transmission method, the reader / writer sends the first acquisition message to the Ambient IoT device to determine the current remaining access time in the case that there is an exception in the process that the reader / writer receives the first response message returned by the Ambient IoT device, and then sends the second acquisition message to the Ambient IoT device in the case that the current remaining access time is not the first target value and the current first maximum retransmission number is greater than or equal to the second target value; the Ambient IoT device receives the first acquisition message sent by the reader / writer, and returns the first response message to the reader / writer in the case that the current remaining access time is not the first target value and the current second maximum retransmission number is greater than or equal to the third target value. According to the above content, it can be known that when it is determined that there is an exception in the process that the reader / writer receives the first response message returned by the Ambient IoT device, the Ambient IoT will not always wait for the first response message returned by the Ambient IoT, but will send the second acquisition message to the Ambient IoT device in the case that the current remaining access time is not the first target value and the current first maximum retransmission number is greater than or equal to the second target value, and the second acquisition message at least contains the first acquisition message, so that the Ambient IoT device returns the second response message to the reader / writer, thereby ensuring the smooth message transmission between the reader / writer and the Ambient IoT device, and the Ambient IoT device will also return the first response message to the reader / writer in the case that the current remaining access time is not the first target value and the current second maximum retransmission number is greater than or equal to the third target value, to prevent the message interaction between the reader / writer and the Ambient IoT device from being stagnant due to the exception in the message transmission between the reader / writer and the Ambient IoT device, and further ensure that the device access operation between the reader / writer and the Ambient IoT device can be successfully completed.

[0097] In an embodiment, the reader / writer comprises a timer, and the timing duration of the timer is less than or equal to the preset access duration; therefore, after the first acquisition message is sent to the Ambient IoT device, the method further comprises starting the timer.

[0098] The access duration (Occasion) is the duration that the Ambient IoT device is allowed to perform the access operation with the reader / writer, and the time when the Ambient IoT device feeds back the Msg1 message to the reader / writer is taken as the starting time of the access duration.

[0099] It should be noted that after starting the timer, it is necessary to determine whether the timer has timed out in real time, that is, to determine whether the duration between the time when the timer is started and the current time is greater than the timing duration of the timer. If the timer has timed out (that is, the duration between the time when the timer is started and the current time is greater than the timing duration of the timer), and the reader has not received the first response message returned by the Ambient IoT device, it is determined that there is an abnormality in the process of receiving the first response message returned by the Ambient IoT device.

[0100] Therefore, in the process of determining that there is an abnormality in the process of receiving the first response message returned by the Ambient IoT device, if the timer has timed out and the first response message corresponding to the first acquisition message has not been received, it is determined that there is an abnormality in the process of receiving the first response message returned by the Ambient IoT device.

[0101] Further, if the first response message corresponding to the first acquisition message sent by the Ambient IoT device is received without the timer timing out, the first response message can be checked and parsed, and based on the checking and parsing results, it is determined whether there is an abnormality in the process of receiving the first response message returned by the Ambient IoT device.

[0102] In an embodiment of the present application, determining that there is an abnormality in the process of receiving the first response message returned by the Ambient IoT device can include: in the case where the timer has not timed out, receiving the first response message returned by the Ambient IoT device and checking the first response message; and if the first response message fails the check, determining that there is an abnormality in the process of receiving the first response message returned by the Ambient IoT device.

[0103] As an example, the first response message can be subjected to integrity checking. If the checking determines that the first response message is missing during transmission, it is determined that the first response message fails the check, and it is further determined that there is an abnormality in the process of receiving the first response message returned by the Ambient IoT device.

[0104] In another embodiment of the present application, determining that there is an abnormality in the process of receiving the first response message returned by the Ambient IoT device can also include: in the case where the timer has not timed out, receiving the first response message returned by the Ambient IoT device and performing message parsing on the first response message; and if the first response message fails the parsing, determining that there is an abnormality in the process of receiving the first response message returned by the Ambient IoT device.

[0105] Further, to ensure that the reader-writer and the Ambient IoT device can successfully complete the device access operation, an exception indication message can be added to the second acquisition message. The exception indication message indicates the exception reason in the process of receiving the first response message returned by the Ambient IoT device, so that the Ambient IoT device can avoid or repair the exception reason.

[0106] Specifically, the second acquisition message further includes an exception indication message. The exception indication message is used to indicate an exception of the first response message. The exception includes at least one of a timer timeout, a message verification failure, and a message parsing failure.

[0107] The message transmission method can determine that an exception exists in the process of receiving the first response message returned by the Ambient IoT device, and provide a sending condition for the reader-writer to send the second acquisition message to the Ambient IoT device in the future. This prevents the message interaction between the reader-writer and the Ambient IoT device from being stalled due to an exception in the message transmission between the reader-writer and the Ambient IoT device, and further ensures that the reader-writer and the Ambient IoT device can successfully complete the device access operation.

[0108] In an embodiment, if the current remaining access time is the first target value, it indicates that the current time has exceeded the pre-set access time length during which the Ambient IoT device is allowed to perform the access operation with the reader-writer, and the Ambient IoT device cannot perform the access operation with the reader-writer. If the current first maximum retransmission number is less than the second target value, it indicates that the number of messages that the reader-writer can send to the Ambient IoT device is empty, and the reader-writer cannot send messages to the Ambient IoT device.

[0109] Therefore, if the current remaining access time is the first target value and / or the current first maximum retransmission number is less than the second target value, the waiting for the first response message returned by the Ambient IoT device is stopped.

[0110] As shown in FIG. 4, if the reader-writer sends the second acquisition message to the Ambient IoT device beyond the access time length, i.e., the current remaining access time is the first target value, the waiting for the first response message returned by the Ambient IoT device is stopped.

[0111] The message transmission method prevents the reader from waiting for the Ambient IoT device to return the first response message for a long time due to an abnormality in the process of receiving the first response message returned by the Ambient IoT device.

[0112] In an embodiment, the reader prevents the abnormality in the process of receiving the first response message returned by the Ambient IoT device after sending the second acquisition message to the Ambient IoT device in the subsequent process, and the maximum retransmission number needs to be updated to prevent the second acquisition message from being retransmitted beyond the maximum retransmission number remaining in the reader.

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

[0114] In an embodiment of the present application, the maximum retransmission number can be reduced by one after the reader sends the second acquisition message to the Ambient IoT device each time, so that the current maximum retransmission number is reduced by one after the reader sends the second acquisition message to the Ambient IoT device to obtain an updated first maximum retransmission number.

[0115] The message transmission method updates the maximum retransmission number to prevent the second acquisition message from being retransmitted beyond the maximum retransmission number remaining in the reader in the subsequent process, thereby ensuring that the device access operation between the reader and the Ambient IoT device can be successfully completed.

[0116] In an embodiment, as shown in FIG. 5, a message transmission method is provided, which is applied to the Ambient IoT device 104 in FIG. 1 as an example for illustration, including the following steps:

[0117] S501, receiving the first acquisition message sent by the reader and determining the current remaining access time.

[0118] The first acquisition message contains the confirmation message of the Ambient IoT device, and a random number N generated by the Ambient IoT device according to a random factor, or a temporary identifier of the Ambient IoT device.

[0119] It should be noted that the remaining access time refers to the difference between the access time length (Occasion) allowed for the Ambient IoT device to access the reader and the access time length corresponding to the pre-set access operation of the Ambient IoT device and the reader; it can be understood that if the remaining access time is empty, the Ambient IoT device and the reader will not perform message transmission operation.

[0120] The access time length can be determined according to the number of Ambient IoT devices covered by the reader. If the number of Ambient IoT devices covered by the reader is large, the access round period needs to be split into the access time length corresponding to each Ambient IoT device for a certain access round period. In addition, the access time length corresponding to different Ambient IoT devices can be the same or different, and the access time length of the Ambient IoT device is not limited here.

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

[0122] The first response message refers to the Msg3 message fed back 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.

[0123] It should be noted that if the current remaining access time is not the first target value, the current remaining access time is not zero, so the first target value can be set to zero, or a preset value set according to actual conditions.

[0124] Further, if the current second maximum retransmission number is greater than or equal to the third target value, the remaining second maximum retransmission number at the current time is not zero, so the third target value can be set to zero, or a preset value set according to actual conditions.

[0125] From the above, if the current remaining access time is not the first target value, and the current second maximum retransmission number is greater than or equal to the third target value, it means that the remaining access time at the current time is not zero, and the Ambient IoT device can still send messages to the reader. In addition, the Ambient IoT device still has the ability to send messages, so it can return the first response message to the reader.

[0126] In an embodiment of the present application, if the current remaining access time is the first target value, it indicates that the current time has exceeded the pre-set access time length allowed for the Ambient IoT device to perform access operation with the reader, and the Ambient IoT device cannot perform access operation with the reader; if the current second maximum retransmission number is less than the third target value, it indicates that the number of times the Ambient IoT device can still send messages to the reader is zero, and the Ambient IoT device cannot send messages to the reader.

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

[0128] As shown in FIG. 6, if the time at which the Ambient IoT device sends the first response message to the reader exceeds the access time length, i.e., the current remaining access time is the first target value, the operation of returning the first response message to the reader is stopped.

[0129] In another embodiment of the present application, after the first response message is sent to the reader, to prevent the subsequent retransmission of the first response message from exceeding the maximum retransmission number remaining in the reader, the current second maximum retransmission number can be reduced to obtain an updated second maximum retransmission number.

[0130] In an embodiment of the present application, it can be pre-specified that the second maximum retransmission number is reduced by one each time the Ambient IoT device sends the first response message to the reader. Therefore, after the Ambient IoT device sends the first response message to the reader, the current second maximum retransmission number is reduced by one to obtain an updated second maximum retransmission number.

[0131] The message transmission method, the reader sends the first acquisition message to the Ambient IoT device to realize that the current remaining access time is determined in the case that the process of receiving the first response message returned by the Ambient IoT device is abnormal, and then the reader sends the second acquisition message to the Ambient IoT device in the case that the current remaining access time is not the first target value, and the current first maximum retransmission number is greater than or equal to the second target value; the Ambient IoT device receives the first acquisition message sent by the reader, and returns the first response message to the reader in the case that the current remaining access time is not the first target value, and the current second maximum retransmission number is greater than or equal to the third target value. According to the above content, it can be known that when it is determined that the process of receiving the first response message returned by the Ambient IoT device is abnormal, the Ambient IoT device will not always wait for the first response message returned by the Ambient IoT device, but will send the second acquisition message to the Ambient IoT device in the case that the current remaining access time is not the first target value, and the current first maximum retransmission number is greater than or equal to the second target value. The second acquisition message at least contains the first acquisition message, so that the Ambient IoT device returns the second response message to the reader, thereby ensuring the smooth message transmission between the reader and the Ambient IoT device. In addition, the Ambient IoT device will return the first response message to the reader in the case that the current remaining access time is not the first target value, and the current second maximum retransmission number is greater than or equal to the third target value, thereby preventing the message interaction between the reader and the Ambient IoT device from being stagnant due to the abnormal message transmission between the reader and the Ambient IoT device, and further ensuring that the device access operation between the reader and the Ambient IoT device can be completed smoothly.

[0132] In an embodiment, as shown in FIG. 7, when the reader and the Ambient IoT device perform device access, the following content can be included:

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

[0134] S702, the Ambient IoT device receives the Msg0 message, generates a random number N according to a 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 to the reader as a Msg1 message.

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

[0136] S704, if the timer expires and the first response message corresponding to the first acquisition message is not received, the reader determines the current remaining access time.

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

[0138] S706, the Ambient IoT device receives the second acquisition message sent by the reader, and determines the current remaining access time.

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

[0140] The message transmission method, the reader sends the first acquisition message to the Ambient IoT device, so as to determine the current remaining access time in the case that there is an exception in the process that the reader receives the first response message returned by the Ambient IoT device, and then, in the case that the current remaining access time is not the first target value, and the current first maximum retransmission number is greater than or equal to the second target value, the reader sends the second acquisition message to the Ambient IoT device; the Ambient IoT device receives the first acquisition message sent by the reader, and in the case that the current remaining access time is not the first target value, and the current second maximum retransmission number is greater than or equal to the third target value, the Ambient IoT device returns the first response message to the reader. According to the above content, it can be known that when it is determined that there is an exception in the process that the reader receives the first response message returned by the Ambient IoT device, the Ambient IoT will not always wait for the first response message returned by the Ambient IoT, but in the case that the current remaining access time is not the first target value, and the current first maximum retransmission number is greater than or equal to the second target value, the second acquisition message is sent to the Ambient IoT device, and the second acquisition message at least contains the first acquisition message, so that the Ambient IoT device returns the second response message to the reader, thereby ensuring that the message transmission between the reader and the Ambient IoT device is smooth, and the Ambient IoT device also returns the first response message to the reader when the current remaining access time is not the first target value, and the current second maximum retransmission number is greater than or equal to the third target value, preventing the message interaction between the reader and the Ambient IoT device from being stagnant due to the exception in the message transmission between the reader and the Ambient IoT device, and further ensuring that the device access operation between the reader and the Ambient IoT device can be completed smoothly.

[0141] It should be understood that, although each step in the flowchart involved in the above embodiments is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other sequences. Moreover, at least part of the steps in the flowchart involved in the above embodiments can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least part of other steps or steps or stages in other steps.

[0142] Based on the same inventive concept, the embodiments of the present application further provide a message transmission device for implementing the message transmission method described above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more message transmission device embodiments provided below can refer to the limitations of the message transmission method described above, which will not be repeated here.

[0143] In one embodiment, as shown in FIG. 8, a message transmission device configured in a reader / writer is provided, comprising a first sending module 10, a determination module 20 and a second sending module 30, wherein:

[0144] The first sending module 10 is configured to send a first acquisition message to an Ambient IoT device.

[0145] The determination module 20 is configured to determine the current remaining access time if it is determined that there is an exception in the process of receiving the first response message returned by the Ambient IoT device.

[0146] 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 number is greater than or equal to the second target value, the second acquisition message at least containing the first acquisition message, so that the Ambient IoT device returns a second response message to the reader / writer.

[0147] In one embodiment, the reader / writer comprises a timer, the timing duration of the timer being less than or equal to the preset access duration; the timer is started after the first acquisition message is sent to the Ambient IoT device.

[0148] 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 there is an exception in the process of receiving the first response message returned by the Ambient IoT device.

[0149] In one embodiment, in the case where the timer does not time out, the first response message returned by the Ambient IoT device is received, and the first response message is verified.

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

[0151] In one embodiment, in the case where the timer does not time out, the first response message returned by the Ambient IoT device is received, and the first response message is parsed.

[0152] If the first response message fails to be parsed, it is determined that an exception exists in the process of receiving the first response message returned by the Ambient IoT device.

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

[0154] In an embodiment, the current first maximum retransmission number is reduced to obtain an updated first maximum retransmission number.

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

[0156] The message transmission device, the reader-writer sends the first acquisition message to the Ambient IoT device to realize that in the case that there is an exception in the process that the reader-writer receives the first response message returned by the Ambient IoT device, the current remaining access time is determined, and then in the case that the current remaining access time is not the first target value, and the current first maximum retransmission number is greater than or equal to the second target value, the reader-writer sends the second acquisition message to the Ambient IoT device; the Ambient IoT device receives the first acquisition message sent by the reader-writer, and in the case that the current remaining access time is not the first target value, and the current second maximum retransmission number is greater than or equal to the third target value, the Ambient IoT device returns the first response message to the reader-writer. According to the above content, it can be known that when it is determined that there is an exception in the process that the reader-writer receives the first response message returned by the Ambient IoT device, the Ambient IoT will not always wait for the first response message returned by the Ambient IoT, but in the case that the current remaining access time is not the first target value, and the current first maximum retransmission number is greater than or equal to the second target value, the second acquisition message is sent to the Ambient IoT device, the second acquisition message at least contains the first acquisition message, so that the Ambient IoT device returns the second response message to the reader-writer, thereby ensuring that the message transmission between the reader-writer and the Ambient IoT device is smooth, and the Ambient IoT device also returns the first response message to the reader-writer when the current remaining access time is not the first target value, and the current second maximum retransmission number is greater than or equal to the third target value, preventing the message interaction between the reader-writer and the Ambient IoT device from being stagnant due to the exception in the message transmission between the reader-writer and the Ambient IoT device, and further ensuring that the device access operation between the reader-writer and the Ambient IoT device can be completed smoothly.

[0157] In one embodiment, as shown in FIG. 9, a message transmission device configured in the Ambient IoT device is provided, comprising: a receiving module 40 and a returning module 50, wherein:

[0158] The receiving module 40 is used for receiving the first acquisition message sent by the reader-writer, and determining the current remaining access time.

[0159] The returning module 50 is used for returning the first response message to the reader-writer if the current remaining access time is not the first target value, and the current second maximum retransmission number is greater than or equal to the third target value.

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

[0161] In an embodiment, the current second maximum retransmission number is reduced to obtain an updated second maximum retransmission number.

[0162] The message transmission apparatus described above, the reader sends a first acquisition message to the Ambient IoT device to determine the current remaining access time in the case that there is an abnormality in the process that the reader receives the first response message returned by the Ambient IoT device, and then the reader sends a second acquisition message to the Ambient IoT device in the case that the current remaining access time is not the first target value and the current first maximum retransmission number is greater than or equal to the second target value; the Ambient IoT device receives the first acquisition message sent by the reader, and returns the first response message to the reader in the case that the current remaining access time is not the first target value and the current second maximum retransmission number is greater than or equal to the third target value. According to the above content, it can be known that when it is determined that there is an abnormality in the process that the reader receives the first response message returned by the Ambient IoT device, the Ambient IoT will not always return the first response message, but in the case that the current remaining access time is not the first target value and the current first maximum retransmission number is greater than or equal to the second target value, a second acquisition message is sent to the Ambient IoT device, the second acquisition message at least contains the first acquisition message, so that the Ambient IoT device returns a second response message to the reader, thereby ensuring that the message transmission between the reader and the Ambient IoT device is smooth, and the Ambient IoT device will also return the first response message to the reader in the case that the current remaining access time is not the first target value and the current second maximum retransmission number is greater than or equal to the third target value, preventing the message interaction between the reader and the Ambient IoT device from being stagnant due to the abnormality in the message transmission between the reader and the Ambient IoT device, and further ensuring that the device access operation between the reader and the Ambient IoT device can be successfully completed.

[0163] Each module in the message transmission apparatus described above can be realized by software, hardware and a combination thereof in whole or in part. Each module described above can be embedded in or independent of the processor in the communication device in hardware form, or can be stored in the memory in the communication device in software form, so as to be called and executed by the processor to perform the operation corresponding to each module.

[0164] In an embodiment, a communication device, which can be a terminal, has an internal structure diagram as shown in FIG. 10. The communication device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the communication device is used to provide computing and control capabilities. The memory of the communication device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The input / output interface of the communication device is used to exchange information between the processor and external devices. The communication interface of the communication device is used to communicate with external terminals in a wired or wireless manner, and the wireless manner can be achieved through WIFI, mobile cellular network, NFC (Near Field Communication) or other technologies. The computer program is executed by the processor to implement a message transmission method. The display unit of the communication device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the communication device can be a touch layer overlaid on the display screen, or a key, trackball or touchpad arranged on the shell of the communication device, or an external keyboard, touchpad or mouse, etc.

[0165] Those skilled in the art can understand that the structure shown in FIG. 10 is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the communication device to which the scheme of the present application is applied. The specific communication device can include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.

[0166] In an embodiment, a communication device is provided, including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the following steps:

[0167] sending a first acquisition message to the Ambient IoT device;

[0168] if it is determined that there is an exception in receiving the first response message returned by the Ambient IoT device, determining the current remaining access time;

[0169] if the current remaining access time is not the first target value, and the current first maximum retransmission number is greater than or equal to the second target value, sending a second acquisition message to the Ambient IoT device, the second acquisition message at least containing the first acquisition message, so that the Ambient IoT device returns a second response message to the reader.

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

[0171] The reader comprises a timer, and a timing duration of the timer is less than or equal to the preset access duration; after the first acquisition message is sent to the Ambient IoT device, the method further comprises:

[0172] Starting the timer.

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

[0174] If the timer expires and the first response message corresponding to the first acquisition message is not received, it is determined that an exception exists in the process of receiving the first response message returned by the Ambient IoT device.

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

[0176] In the case where the timer does not expire, receiving the first response message returned by the Ambient IoT device, and verifying the first response message;

[0177] If the verification 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.

[0178] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0179] In the case where the timer does not expire, receiving the first response message returned by the Ambient IoT device, and performing message parsing on the first response message;

[0180] 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.

[0181] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0182] If the current remaining access time is a first target value, and / or the current first maximum retransmission number is less than a second target value, the waiting for the first response message returned by the Ambient IoT device is stopped.

[0183] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0184] The current first maximum retransmission number is reduced to obtain an updated first maximum retransmission number.

[0185] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0186] The second acquisition message further comprises an exception indication message; the exception indication message is used to indicate an exception of the first response message; the exception comprises at least one of a timer timeout, a message check failure, and a message parsing failure.

[0187] In one embodiment, a communication device is provided, comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:

[0188] receiving the first acquisition message sent by the reader-writer, and determining a current remaining access time;

[0189] if the current remaining access time is not the first target value, and the current second maximum retransmission number is greater than or equal to the third target value, then returning the first response message to the reader-writer.

[0190] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0191] if the current remaining access time is the first target value, and / or the current second maximum retransmission number is less than the third target value, then stopping the operation of returning the first response message to the reader-writer.

[0192] In one embodiment, the processor, when executing the computer program, also implements the following steps:

[0193] decreasing the current second maximum retransmission number to obtain an updated second maximum retransmission number.

[0194] In one embodiment, a computer readable storage medium is provided, storing a computer program, and the computer program, when executed by a processor, implements the following steps:

[0195] sending the first acquisition message to the Ambient IoT device;

[0196] if it is determined that there is an exception in receiving the first response message returned by the Ambient IoT device, then determining a current remaining access time;

[0197] if the current remaining access time is not the first target value, and the current first maximum retransmission number is greater than or equal to the second target value, then sending the second acquisition message to the Ambient IoT device, the second acquisition message comprising at least the first acquisition message, so that the Ambient IoT device returns the second response message to the reader-writer.

[0198] In one embodiment, the computer program, when executed by the processor, also implements the following steps:

[0199] The reader comprises a timer, and a time length of the timer is less than or equal to the preset access time length; after the first acquisition message is sent to the Ambient IoT device, the method further comprises:

[0200] starting the timer.

[0201] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0202] If the timer expires and the first response message corresponding to the first acquisition message is not received, it is determined that an exception exists in the process of receiving the first response message returned by the Ambient IoT device.

[0203] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0204] In the case where the timer does not expire, the first response message returned by the Ambient IoT device is received, and the first response message is verified;

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

[0206] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0207] In the case where the timer does not expire, the first response message returned by the Ambient IoT device is received, and the first response message is parsed;

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

[0209] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0210] If the current remaining access time is a first target value, and / or the current first maximum retransmission number is less than a second target value, the waiting for the first response message returned by the Ambient IoT device is stopped.

[0211] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0212] The current first maximum retransmission number is reduced to obtain an updated first maximum retransmission number.

[0213] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0214] The second acquisition message further comprises an exception indication message; the exception indication message is used to indicate an exception of the first response message; the exception comprises at least one of a timer timeout, a message check failure and a message parsing failure.

[0215] In one embodiment, a computer readable storage medium is provided, and the computer readable storage medium has stored thereon a computer program, and the computer program is executed by a processor to implement the following steps:

[0216] receiving the first acquisition message sent by the reader-writer, and determining a current remaining access time;

[0217] if the current remaining access time is not the first target value, and the current first maximum retransmission number is greater than or equal to the third target value, then returning the first response message to the reader-writer.

[0218] In one embodiment, the computer program is further executed by the processor to implement the following steps:

[0219] if the current remaining access time is the first target value, and / or the current first maximum retransmission number is less than the third target value, then stopping the operation of returning the first response message to the reader-writer.

[0220] In one embodiment, the computer program is further executed by the processor to implement the following steps:

[0221] decreasing the current second maximum retransmission number to obtain an updated second maximum retransmission number.

[0222] In one embodiment, a computer program product is provided, and the computer program product comprises a computer program, and the computer program is executed by a processor to implement the following steps:

[0223] sending the first acquisition message to the Ambient IoT device;

[0224] if it is determined that there is an exception in receiving the first response message returned by the Ambient IoT device, then determining a current remaining access time;

[0225] if the current remaining access time is not the first target value, and the current first maximum retransmission number is greater than or equal to the second target value, then sending a second acquisition message to the Ambient IoT device, and the second acquisition message at least comprises the first acquisition message, so that the Ambient IoT device returns a second response message to the reader-writer.

[0226] In one embodiment, the computer program is further executed by the processor to implement the following steps:

[0227] The reader comprises a timer, a timing duration of the timer is less than or equal to a preset access duration; after sending the first acquisition message to the Ambient IoT device, the method further comprises:

[0228] starting the timer.

[0229] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0230] If the timer expires and no first response message corresponding to the first acquisition message is received, it is determined that an exception exists in the process of receiving the first response message returned by the Ambient IoT device.

[0231] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0232] In the case where the timer does not expire, receiving the first response message returned by the Ambient IoT device, and verifying the first response message;

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

[0234] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0235] In the case where the timer does not expire, receiving the first response message returned by the Ambient IoT device, and performing message parsing on the first response message;

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

[0237] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0238] If the current remaining access time is a first target value, and / or the current first maximum retransmission number is less than a second target value, stopping waiting for the Ambient IoT device to return the first response message.

[0239] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0240] Decreasing the current first maximum retransmission number to obtain an updated first maximum retransmission number.

[0241] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0242] The second acquisition message further comprises an exception indication message; the exception indication message is used to indicate an exception of the first response message; the exception comprises at least one of a timer timeout, a message check failure, and a message parsing failure.

[0243] In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the following steps:

[0244] receiving the first acquisition message sent by the reader-writer, and determining a current remaining access time;

[0245] if the current remaining access time is not the first target value, and the current second maximum retransmission number is greater than or equal to the third target value, returning the first response message to the reader-writer.

[0246] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0247] if the current remaining access time is the first target value, and / or the current second maximum retransmission number is less than the third target value, stopping the operation of returning the first response message to the reader-writer.

[0248] In one embodiment, the computer program, when executed by the processor, further implements the following steps:

[0249] decreasing the current second maximum retransmission number to obtain an updated second maximum retransmission number.

[0250] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant national and regional laws, regulations and standards.

[0251] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. The non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. The volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, the RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.

[0252] Any combination of the technical features of the above-mentioned embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above-mentioned embodiments are not described, however, as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the present application.

[0253] The above-mentioned embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the patent scope of the application. It should be noted that for those skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are within the scope of protection of the present application. Therefore, the patent protection scope of the present application should be subject to the appended claims.

Claims

1.A message transmission method applied to a reader, the method comprising: sending a first acquisition message to an Ambient IoT device; determining a current remaining access time if it is determined that an abnormality exists in a process of receiving a first response message returned by the Ambient IoT device; sending a second acquisition message to the Ambient IoT device if the current remaining access time is not a first target value and a current first maximum retransmission number is greater than or equal to a second target value, the second acquisition message containing at least the first acquisition message, so that the Ambient IoT device returns a second response message to the reader. 2.The method of claim 1, wherein the reader comprises a timer, a timing duration of the timer being less than or equal to a preset access duration; and the method further comprises, after the first acquisition message is sent to the Ambient IoT device: starting the timer. 3.The method of claim 2, wherein the determining that an abnormality exists in the process of receiving the first response message returned by the Ambient IoT device comprises: if the timer times out and the first response message corresponding to the first acquisition message is not received, determining that an abnormality exists in the process of receiving the first response message returned by the Ambient IoT device. 4.The method of claim 2, wherein the determining that an abnormality exists in the process of receiving the first response message returned by the Ambient IoT device comprises: in a case where the timer does not time out, receiving the first response message returned by the Ambient IoT device and checking the first response message; if the first response message fails the checking, determining that an abnormality exists in the process of receiving the first response message returned by the Ambient IoT device. 5.The method of claim 4, wherein the checking the first response message and, if the first response message fails the checking, determining that an abnormality exists in the process of receiving the first response message returned by the Ambient IoT device comprises: performing integrity checking on the first response message, and if the checking determines that the first response message is missing, determining that the first response message fails the checking and that an abnormality exists in the process of receiving the first response message returned by the Ambient IoT device. 6.The method of claim 2, wherein the determining that an abnormality exists in the process of receiving the first response message returned by the Ambient IoT device comprises: in a case where the timer does not time out, receiving the first response message returned by the Ambient IoT device and performing message parsing on the first response message; if the first response message fails the message parsing, determining that an abnormality exists in the process of receiving the first response message returned by the Ambient IoT device. 7.The method of claim 1, wherein the method further comprises: stopping waiting for the Ambient IoT device to return a first response message if the current remaining access time is the first target value and / or the current first maximum retransmission number is less than the second target value. 8.The method of claim 1, wherein after the sending the second acquisition message to the Ambient IoT device, the method further comprises: decreasing the current first maximum retransmission number to obtain an updated first maximum retransmission number. 9.The method of claim 8, wherein the decreasing the current first maximum retransmission number to obtain an updated first maximum retransmission number comprises: decreasing the current first maximum retransmission number by one to obtain an updated first maximum retransmission number. 10.The method of claim 1, wherein the second acquisition message further comprises an exception indication message, the exception indication message being used to indicate an exception of the first response message, the exception comprising at least one of a timer timeout, a message check failure, and a message parsing failure. 11.The method of claim 1, wherein the determining the current remaining access time comprises: acquiring a preset access duration of the Ambient IoT device performing an access operation with the reader; calculating a difference between the preset access duration and a current access elapsed duration, and taking the difference as the current remaining access time. 12.A message transmission method applied to an Ambient IoT device, the method comprising: receiving a first acquisition message sent by a reader and determining a current remaining access time; returning a first response message to the reader if the current remaining access time is not a first target value and a current second maximum retransmission number is greater than or equal to a third target value. 13.The method of claim 12, wherein the method further comprises: stopping returning the first response message to the reader if the current remaining access time is the first target value and / or the current second maximum retransmission number is less than the third target value. 14.The method of claim 12, wherein after the sending the first response message to the reader, the method further comprises: decreasing the current second maximum retransmission number to obtain an updated second maximum retransmission number. 15.A message transmission apparatus configured in a reader, the apparatus comprising: a first sending module configured to send a first acquisition message to an Ambient IoT device; a determining module configured to determine a current remaining access time if it is determined that an exception exists in a process of receiving a first response message returned by the Ambient IoT device. a second sending module, configured to send a second acquisition message to the Ambient IoT device if the current residual access time is not the first target value and the current first maximum retransmission number is greater than or equal to the second target value, wherein the second acquisition message at least contains the first acquisition message, so that the Ambient IoT device returns a second response message to the reader-writer. 16.A message transmission apparatus, configured to be arranged in an Ambient IoT device, the apparatus comprising: a receiving module, configured to receive a first acquisition message sent by a reader-writer and determine a current residual access time; a returning module, configured to return a first response message to the reader-writer if the current residual access time is not the first target value and the current second maximum retransmission number is greater than or equal to a third target value. 17.A communication device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in any one of claims 1 to 14 when executing the computer program. 18.A computer readable storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method in any one of claims 1 to 14. 19.A computer program product, comprising a computer program, wherein the computer program, when executed by a processor, implements the steps of the method in any one of claims 1 to 14.

Citation Information

Patent Citations

  • Signaling control method and device, terminal equipment and computer readable storage medium

    CN113810907A

  • Multi-protocol electronic toll collection system

    US20110307305A1

  • Paging method and communication apparatus

    WO2022170575A1

  • Message processing method and apparatus, and communication device, storage medium and program product

    WO2023241578A1