Communication method, apparatus and system, and storage medium and program product
By sending messages indicating preset tasks in the environmental IoT system, the problem of readers repeatedly or continuously triggering the same tasks is solved, thereby improving communication efficiency and reliability.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-07-31
- Publication Date
- 2026-04-02
AI Technical Summary
In environmental IoT systems, the repetitive or sequential triggering of the same core network tasks by readers leads to low communication efficiency.
The first device sends a message instructing a preset task to the second device, and the second device identifies and executes the same preset task according to the message, thereby achieving repetitive or sequential processing and improving communication efficiency.
By identifying and executing the same pre-defined tasks, the communication efficiency and reliability of environmental IoT systems are improved.
Smart Images

Figure CN2025112006_02042026_PF_FP_ABST
Abstract
Description
Communication method, apparatus, system, storage medium and program product
[0001] The present application claims priority from the Chinese patent application No. 202411381499.5 filed on September 29, 2024, and entitled "Communication method, apparatus, system, storage medium and program product", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the technical field of Internet of Things, and in particular to a communication method, apparatus, system, storage medium and program product. BACKGROUND
[0003] An environmental Internet of Things system is a comprehensive system with functions of city environment perception and management. An environmental Internet of Things device can communicate by collecting energy in the environment. In the communication mechanism of the environmental Internet of Things, how to make a reader repeatedly or continuously trigger the same task for the same core network task is a problem that needs to be solved at present. SUMMARY
[0004] The present application provides a communication method, a communication apparatus and a computer readable storage medium, which are helpful to realize the communication mechanism of the device for the same core network task.
[0005] To achieve the above-mentioned purpose, the present application adopts the following technical solutions:
[0006] In a first aspect, a communication method is provided, applied to a first device, and the method comprises:
[0007] sending a first message to a second device, the first message being used to instruct the second device to perform a first preset task;
[0008] The first message comprises first information, and the first information is used to identify the first preset task.
[0009] In the embodiments of the present application, the first device can instruct the second device to perform a preset task according to the first message. In this case, the first device and the second device can identify the same preset task according to the first information in the first message, and subsequently communicate accordingly, thereby helping to realize the repetitive or continuous processing of the same preset task by the first device and the second device, and improving the communication efficiency.
[0010] In the embodiments of the present application, the first device and the second device can communicate through a wireless connection, and the second device and the third device can communicate through a wireless connection.
[0011] In some application scenarios of the environmental IoT, the first device can be a core network (CN) network element or an AF, the second device can be a reader-writer, and the third device can be an environmental IoT device.
[0012] For example, in the communication flow of topology 1 shown in FIG. 2, the A-IoT controller plays the role of the CN, and the base station plays the role of the reader-writer. In this case, the first device is the A-IoT controller, the second device is the base station, and the third device is the environmental IoT device. Alternatively, the first device can be the AF, the second device 42 can be the base station, and the third device can be the environmental IoT device. It should be noted that when the first device is the AF and the second device 42 is the base station, the first device can communicate with the second device through the CN.
[0013] For another example, in the communication flow of topology 2 shown in FIG. 3, the A-IoT controller plays the role of the CN, and the intermediate node plays the role of the reader-writer. In this case, the first device is the A-IoT controller, the second device is the intermediate node (such as a UE), and the third device 43 can be the environmental IoT device. Alternatively, the first device can be the AF, the second device can be the intermediate node (such as a UE), and the third device 43 can be the environmental IoT device. It should be noted that when the first device is the A-IoT controller and the second device is the intermediate node, the first device can communicate with the second device through the base station; when the first device is the AF and the second device is the intermediate node, the first device can communicate with the second device through the CN and the base station.
[0014] In some other application scenarios of the environmental IoT, the first device can be a base station, the second device can be an intermediate node between the base station and the environmental IoT device, and the third device can be the environmental IoT device.
[0015] For example, in the communication flow of topology 2 shown in FIG. 3, the base station can communicate with the environmental IoT device through the intermediate node, where the intermediate node plays the role of the reader-writer. In this scenario, the intermediate node can serve as the second device. In addition, in this scenario, the AF can communicate with the base station through the CN, and send a signaling to the base station, so as to trigger a task indicated by the signaling by the base station.
[0016] In some examples, the first message can be a paging message. In some implementations, after the third device receives the paging message sent by the second device, the third device triggers a random access procedure. For example, in the communication flow shown in FIG. 2, after the base station sends the initial message to the environmental IoT device, the environmental IoT device triggers a random access procedure, S203. For another example, in the communication flow shown in FIG. 3, after the intermediate node sends the initial message to the environmental IoT device, the environmental IoT device triggers a random access procedure, S304.
[0017] In different application scenarios, the paging message is used to trigger the sending of different signaling. For example, in the application scenario of inventorying issued by the first device, the paging message is used to trigger the sending of inventorying, and accordingly, the third device reports its own identification information, so that the first device performs inventorying according to the identification information of the third device. For another example, in the application scenario of read signaling issued by the first device, the paging message is used to trigger the sending of read signaling, and accordingly, the third device reports the read data after successful random access. For another example, in the application scenario of write signaling issued by the first device, the paging message is used to trigger the sending of write signaling, and accordingly, the third device can send the response information of write success after successful random access.
[0018] The paging type is single paging, multiple paging, group paging or full paging, wherein the single paging is paging for one device, and the paging message can only include the identification information of one device; the multiple paging is paging for multiple devices, and the paging message can include the identification information of multiple devices; the group paging is paging for a group of devices, and the paging message can include the group identification information of the devices; the full paging is paging for all devices, and the paging message does not need to include the identification information of the devices. After receiving the paging message, the device corresponding to its own device ID, if the device ID or the device group ID included in the paging message, performs the random access process. If the paging message does not include the ID of the device, the device can directly perform the random access process upon receiving the paging message. The paging message can also be referred to as an initial message.
[0019] In different types of random access processes, the data carried in the messages sent between the second device and the third device can be different.
[0020] For example, in the CFRA process: the third device determines the resource of the non-contention random access process, and sends Msg1 to the second device; if the random access is successful, the second device sends Msg2 to the third device.
[0021] The Msg1 can include the identification information of the third device and / or other upper layer data. In the case that the initial message includes an access layer identification (Access-stratum ID, AS ID), the Msg1 can also include the AS ID.
[0022] The Msg2 can include an acknowledgement message or a non-acknowledgement message. For example, after the second device receives the Msg1, if the random access is successful, the second device can send a random access response to the third device to acknowledge that the random access procedure has been completed, in which case the Msg2 is an acknowledgement message. For another example, after the second device receives the Msg1, if the random access is successful, the second device can send signaling to the third device to make the third device perform a task corresponding to the signaling, in which case the Msg2 is a non-acknowledgement message.
[0023] In some other cases, if the random access is successful, the second device can also not send the Msg2 to the third device, and accordingly, the third device does not receive the Msg2.
[0024] The CBRA can include a two-step contention-based random access (2 step CBRA) and a 3 step CBRA.
[0025] For example, in the 2 step CBRA procedure: the third device determines a resource for the contention random access procedure, and sends the Msg1 to the second device; if the random access is successful, the second device sends the Msg2 to the third device 43.
[0026] The Msg1 can include identification information of the third device and / or other upper layer data. The Msg1 can also include a random identification (Random ID) generated by the third device.
[0027] The Msg2 can include an acknowledgement message or a non-acknowledgement message. For example, after the second device receives the Msg1, if the random access is successful, the second device can send a random access response to the third device to acknowledge that the random access procedure has been completed, in which case the Msg2 is an acknowledgement message. For another example, after the second device receives the Msg1, if the random access is successful, the second device can send signaling to the third device to make the third device 43 perform a task corresponding to the signaling, in which case the Msg2 is a non-acknowledgement message.
[0028] In some other cases, if the random access is successful, the second device 42 can also not send the Msg2 to the third device 43, and accordingly, the third device does not receive the Msg2.
[0029] For example, in the 3 step CBRA procedure: the third device determines a resource for the contention random access procedure, and sends the Msg1 to the second device; the second device 42 sends the Msg2 to the third device; if the contention has been resolved, the third device sends the Msg3 to the second device.
[0030] The Msg1 can include a Random ID generated by the third device, but does not include other upper layer data.
[0031] The Msg2 can include a Random ID. Correspondingly, after the third device receives the Msg2, the third device determines whether the Random IDs in the Msg1 and the Msg2 are same. If the Random IDs are same, it indicates that the contention has been solved, and the third device sends the Msg3 to the second device.
[0032] The Msg3 can include identification information of the third device.
[0033] In some cases, after the second device receives the Msg3, the second device can send the Msg4 to the third device. Correspondingly, the third device receives the Msg4.
[0034] The Msg4 can include a confirmation message or a non-confirmation message. For example, after the second device receives the Msg3, the second device 42 can send a random access response to the third device to confirm that the random access procedure has been completed, and in this case, the Msg4 is a confirmation message. For another example, after the second device receives the Msg3, the second device can send a signaling to the third device to make the third device perform a task corresponding to the signaling, and in this case, the Msg4 is a non-confirmation message.
[0035] The third device can determine whether the random access is completed according to the Msg2 or the Msg4. For example, if the Msg2 includes a non-confirmation message, it is determined that the random access is not completed, if the Msg2 includes a confirmation message, it is determined that the random access is completed, or if the Msg2 is not received, it is determined that the random access is not completed or is completed. For example, if the Msg4 includes a non-confirmation message, it is determined that the random access is not completed, if the Msg4 includes a confirmation message, it is determined that the random access is completed, or if the Msg4 is not received, it is determined that the random access is not completed or is completed.
[0036] It should be noted that the above-mentioned three types of random access are only examples, and other different access types can also be used in actual applications, and the embodiments of the present application do not limit the types of random access.
[0037] In one embodiment, the first message can be triggered by a target demand. For example, the target demand can be inventory or reading, writing, activation, deactivation, and other signaling. The target demand can be generated by the first device itself, or can be generated by the first device according to the message received from other devices. The first preset task can be the target demand.
[0038] The first message can include identification information of the third device required to perform the target requirement, a specific target requirement required to perform, such as inventory, reading, writing, activating, deactivating, and the like, identification information of the second device required to perform the target requirement, and related identification information of the first preset task required to perform.
[0039] The first information is used to identify the first preset task, and can be related identification information of the first preset task. The first information can be identification information of the first preset task, identification information of a message corresponding to the first preset task, or identification information of a process corresponding to the first preset task.
[0040] In an embodiment, the first message can be the first preset task itself, and is used to identify that the first message is to cause the second device to perform the first preset task. The first preset task is an AF request or a CN request.
[0041] The second device is a reader, and the first device can be a control node of the reader.
[0042] In one example, as shown in FIG. 2, in topology 1, when the first device is an AF and the second device is a base station, the first message can be generated by the first device itself. In this case, the first device sends the first message to the second device through an A-IoT controller. Specifically, the first device sends the first message to the A-IoT controller, and the A-IoT controller sends the first message to the second device.
[0043] In another example, as shown in FIG. 2, in topology 1, when the first device is a CN (A-IoT controller) and the second device is a base station, the first message can be generated by an AF and sent to the first device. In this case, the AF sends the first message to the first device, and the first device sends the first message to the second device.
[0044] In another example, as shown in FIG. 3, in topology 2, when the first device is an AF and the second device is a UE, the first message can be generated by the first device itself. In this case, the first device sends the first message to the second device through an A-IoT controller and a base station. Specifically, the first device sends the first message to the A-IoT controller, the A-IoT controller sends the first message to the base station, and the base station sends the first message to the UE after establishing an RRC connection with the UE.
[0045] In another example, as shown in FIG. 3, in topology 2, when the first device is a CN (A-IoT controller) and the second device is a UE, the first message can be generated by the AF and sent to the first device. In this case, the first device sends the first message to the second device through a base station. Specifically, the AF sends the first message to the first device, the first device sends the first message to the base station, and the base station sends the first message to the UE after establishing an RRC connection with the UE.
[0046] In another example, as shown in FIG. 3, in topology 2, when the first device is a base station and the second device is a UE, the first message can be generated by the AF or the CN and sent to the first device. In this case, the first device sends the first message to the second device through a base station. Specifically, the AF sends the first message to the first device, the first device sends the first message to the base station, and the base station sends the first message to the UE after establishing an RRC connection with the UE.
[0047] In the embodiments of the present application, different target requirements correspond to different first messages and different first preset tasks.
[0048] For example, if the target requirement is inventory, the first message is inventory, and the first preset task is an inventory task. If the target requirement is to read data, the first message is a read signaling, and the first preset task is a read task. If the target requirement is to write data, the first message is a write signaling, and the first preset task is a write signaling.
[0049] In the embodiments of the present application, the identification information of the first preset task is used to indicate the same target requirement. For example, when the first message is inventory, the target requirement is inventory, and the identification information of the first preset task is used to indicate the same inventory task. When the first message is a read signaling, the target requirement is to read data, and the identification information of the first preset task is used to indicate the same read task. When the first message is a write signaling, the target requirement is to write data, and the identification information of the first preset task is used to indicate the same write task.
[0050] Optionally, according to different target requirements, the identification information of the first preset task can be in different forms.
[0051] For example, when the target requirement is inventory, the initial message sent by the second device to the third device can be a paging message, and the third device triggers a random access process after receiving the paging message. In the random access process, the third device reports its own identification information, so that the first device performs inventory according to the received identification information of the third device. In this case, the paging message is used to indicate the first preset task, and the paging message can include a flow ID for identifying different paging messages. The flow ID can be used as the identification information of the first preset task. The identification information of the first preset task is generated by the first device.
[0052] For example, when the target requirement is read-write signaling, the second device sends a paging message to the third device, and the third device triggers a random access procedure according to the paging message. After the random access between the second device and the third device succeeds, the second device sends read signaling to the third device. In this case, the paging message is only used to trigger the random access procedure and is not used to indicate the first preset task. A separate identification information of read signaling can be set as the identification information of the first preset task. When the paging message includes read-write signaling, the paging message is used to indicate the first preset task. The paging message can include a flow ID used to identify different paging messages. The flow ID can be used as the identification information of the first preset task.
[0053] For example, regardless of whether the target requirement is inventory or downlink command, the target requirement corresponds to a flow. The message corresponding to the flow can include the identification information of the first preset task.
[0054] In an implementation form of the first aspect, the method further includes:
[0055] sending a third message to the second device, the third message including the first information, the third message being used to indicate execution of the first preset task identified by the first information;
[0056] or,
[0057] sending a fourth message to the second device, the fourth message being used to indicate ending of the first preset task.
[0058] For example, the first message includes the first information and / or the specific content of the first preset task. The first information can be the identification information of the first preset task or the specific content of the first preset task. In this case, when the first message includes the identification information of the first preset task, the second device acquires the specific content of the first preset task from the first message and executes the first preset task after receiving the first message. The second device can save the specific content of the first preset task and the first information. When the second device receives the third message, the second device acquires the saved specific content of the first preset task according to the first information in the third message and repeatedly executes the first preset task.
[0059] The third message can include the identification information related to the first preset task and the identification information of the second device that needs to execute the first preset task. If it is group inventory or group paging, the device group ID to which the third device belongs needs to be included. The specific content of the first preset task that needs to be executed does not need to be included. The third message can further include the indication information of repeatedly executing the first preset task indicated by the first information.
[0060] It can be understood that the third message indicates the same preset task as the first message. In the embodiments of the present application, the first device can instruct the second device to perform the first preset task according to the third message. In this case, the first device and the second device can identify the same preset task according to the first information in the third message, and subsequently perform communication according to the same preset task, thereby helping to realize repetitive or consecutive processing of the same preset task by the first device and the second device, and improving communication efficiency.
[0061] The fourth message is used to indicate the end of the first preset task.
[0062] In one case, the first device determines that the first preset task has been completed according to the second message, and then sends the fourth message to the second device.
[0063] In one case, the second device can autonomously trigger repeated execution of the first preset task. In this case, the first device can instruct the second device to end the first preset task through the fourth message. Correspondingly, the second device stops repeated execution of the first preset task after receiving the fourth message.
[0064] In this case, the second device can return the execution result of each execution of the first preset task to the first device, or return the execution result of the last execution of the first preset task to the first device after receiving the fourth message, or return the statistical result of the execution results of multiple executions of the first preset task to the first device after receiving the fourth message.
[0065] It can be understood that if the second device has ended the first preset task, the first device can no longer send the fourth message to the second device.
[0066] In the embodiments of the present application, the first device can instruct the second device to end the first preset task through the fourth message, which can effectively reduce the case that the second device cannot jump out of repeated execution, thereby helping to improve the reliability of communication.
[0067] In one implementation form of the first aspect, the method further includes:
[0068] determining the execution result of the first preset task;
[0069] determining that the first preset task is not executed completely based on the execution result of the first preset task, and sending the third message to the second device; or
[0070] determining that the first preset task is executed completely based on the execution result of the first preset task, and sending the fourth message to the second device.
[0071] Optionally, determining that the first preset task is not executed completely comprises: the number of the third devices that have responded is inconsistent with a preset number.
[0072] And / or, a response of a target device in the one or more third devices is not received.
[0073] Determining that the first preset task is executed completely comprises:
[0074] The number of the third devices that have responded is consistent with a preset number.
[0075] And / or, a response of a target device in the one or more third devices is received.
[0076] In the embodiments of the present application, the execution result of the first preset task is determined to trigger repeated execution or end the first preset task, which helps to realize the continuity of the first preset task and improve the communication efficiency and reliability.
[0077] In an implementation form of the first aspect, the method further comprises:
[0078] Receiving an execution result of at least one first preset task sent by the second device, and sending the third message to the second device based on the execution result of the at least one first preset task.
[0079] In the embodiments of the present application, the execution result of the first preset task is determined to trigger repeated execution or end the first preset task, which helps to realize the continuity of the first preset task and improve the communication efficiency and reliability.
[0080] In an implementation form of the first aspect, the method further comprises:
[0081] In the embodiments of the present application, the first device can instruct part of the second devices to execute the first preset task according to the identification of the second devices, which helps to improve the flexibility of communication.
[0082] The first device can instruct the second device to send the paging message to part of the third devices according to the identification of the third devices, which helps to improve the flexibility of communication. In addition, after executing the first preset task once, if part of the third devices respond and another part of the third devices do not respond, the fourth information can be used to instruct the second device to send the paging message to the third devices that do not respond, which helps to realize the continuity of the first preset task.
[0083] In an implementation form of the first aspect, the third message further comprises third information, the third information is used to identify the first preset task, and the third message is used to instruct to execute the first preset task identified by the first information.
[0084] For example, the first information included in the first message is in a form different from the third information included in the third message, but the preset task indicated by the first information and the third information is the same. In this case, after the second device receives the third message, it identifies that the third information is the same as the first information, and then obtains the specific content of the first preset task corresponding to the first information, and repeats the execution. The third message can include the first information and the third information. The first information is used to identify the first preset task, and the third information is used to indicate the execution of the first preset task identified by the first information. The first preset task is the first preset task identified by the first information previously received by the second device. When the third information indicates that the previously received first preset task is not executed, it means that the third message is a new message, and the first preset task identified by the first information is a new task, which is not a repeated task of the previously received first preset task. The second device will execute a new process or send a new sixth message after receiving the third information. The third device considers that the sixth message is an initial message or the first message of the first preset task, and then responds. The first message can also carry the third information, which is used to identify that the first message is an initial message or a repeated message of the first preset task. The initial message is the first message of the first preset task, and the repeated message is the repeated message of the first preset task.
[0085] It can be understood that the third information is used to identify whether the first preset task is a new task or a repeated task. In the embodiment of the application, the first device can instruct the second device to execute the first preset task according to the third message. In this case, the first device and the second device can identify the same preset task according to the third information in the third message, and then communicate accordingly, thereby helping to realize the repeated or consecutive processing of the same preset task by the first device and the second device, and improving the communication efficiency.
[0086] In an implementation form of the first aspect, the third message further includes a second preset task, and the third message is used to instruct to execute the second preset task.
[0087] Optionally, the third message includes the first information and the second preset task. Alternatively, the third message includes the third information and the second preset task.
[0088] In one case, the previous preset task has been completed, and the identification information of the completed preset task is reused. In this case, the message sent by the first device to the second device includes the reused identification information of the preset task and a new preset task.
[0089] For example, after the second device receives the third message, it identifies the first information, and judges whether the first preset task corresponding to the saved first information and the second preset task in the third message are the same task. If they are different tasks, the second device executes the second preset task.
[0090] In the embodiment of the application, in the case that the identification information of the preset task before multiplexing, the second preset task is carried in the third message, which can indicate that the current identification information is multiplexed by the second preset task, thereby instructing the second device to execute the second preset task. In the above manner, the multiplexing rate of the identification information of the preset task can be improved while ensuring the reliability of communication.
[0091] In an implementation form of the first aspect, the first message and / or the third message further comprises at least one of: a preset number of times, a preset time length, a preset number, second information, fourth information.
[0092] The preset number of times is used to indicate the number of times of executing the first preset task; the preset time length is used to indicate the time of executing the first preset task; the preset number is used to indicate the number of third devices corresponding to the first preset task; the second information is the identification information of the second device; and the fourth information is the identification information of the third device.
[0093] In one example, the first message comprises the preset number of times. After receiving the first message, in the case that the second device can autonomously trigger repeated execution of the first preset task, the second device judges whether the number of times of repeatedly executing the first preset task currently reaches the preset number of times; if the preset number of times is reached, the repeated execution of the first preset task is stopped.
[0094] In this case, the second device can return the execution result of this execution to the first device every time the first preset task is executed; or the second device can return the execution result of the last execution to the first device after the preset number of times is reached; or the second device can perform statistics according to the execution results of multiple executions of the first preset task, and send the statistical result to the first device after the preset number of times is reached.
[0095] In another example, the first message comprises the preset time length. After receiving the first message, in the case that the second device can autonomously trigger repeated execution of the first preset task, the second device judges whether the time of executing the first preset task reaches the preset time length; if the preset time length is reached, the repeated execution of the first preset task is stopped.
[0096] The time of executing the first preset task can refer to the time interval between the time when the second device sends a paging message to the third device for the first time after receiving the first message and the current time.
[0097] The repeatedly performing the first preset task can be periodically performing the first preset task according to a certain time length, and the performing the first preset task can be sending a paging message (which can be referred to as an initial message, or a message for triggering random access, or a message for the third device to initiate random access) to the second device.
[0098] In this case, the second device can return the execution result of each execution of the first preset task to the first device, or the second device can return the execution result of the last execution to the first device after a preset time length, or the second device can send the statistical result to the first device according to the execution results of multiple executions of the first preset task.
[0099] In another example, the first message includes a preset number. After receiving the first message, the second device performs the first preset task, and determines whether the number of responses received from the third device is the preset number. If yes, the second device ends the first preset task and sends a second message to the first device. If no, the second device repeatedly performs the first preset task.
[0100] For example, the target requirement is inventory, the total number of the third devices for inventory is 100, and the preset number is set to 100. If the number of responses received from the third device by the second device does not reach 100, the second device repeatedly performs the inventory.
[0101] For another example, the target requirement is inventory, the total number of the third devices for inventory is 100, and the preset number is set to 80. If the number of responses received from the third device by the second device does not reach 80, it means that a certain proportion of paging is not completed, and the second device repeatedly performs the inventory. If the number of responses received from the third device by the second device reaches 80, it means that a certain proportion of paging is completed, and the second device ends the first preset task and sends a second message to the first device.
[0102] In the above examples, ending the first preset task can mean that the second device stops sending messages to the third device, and / or the second device sends a second message to the first device.
[0103] Optionally, the second message can include indication information for indicating the end of the task. After the second device ends the first preset task, the second device sends a second message to the first device. Correspondingly, after the first device receives the second message, the first device determines that the second device has ended the first preset task according to the indication information in the second message. Alternatively, after the second device receives an indication from the first device to end the first preset task, the second device can send a feedback through the second message to confirm that the first preset task has been ended.
[0104] In the above examples, the first device can limit the condition for the second device to repeatedly perform the first preset task by a preset number of times, a preset number, and / or a preset time length, effectively reducing the case where the second device cannot break out of repeated execution, and helping to improve the reliability of communication.
[0105] In another example, the first message includes second information. After receiving the first message, the second device determines whether the second information in the first message is consistent with the identification information of the second device; if consistent, the second device performs the first preset task indicated by the first message; if not consistent, the second device ignores the first message.
[0106] In this example, the first device can instruct part of the second device to perform the first preset task according to the second information, helping to improve the flexibility of communication.
[0107] In another example, the first message includes fourth information. After receiving the first message, the second device sends a paging message to a third device corresponding to the fourth information.
[0108] In this example, the first device can instruct the second device to send a paging message to part of the third devices according to the fourth information, helping to improve the flexibility of communication. In addition, after performing the first preset task once, if part of the third devices respond and another part of the third devices do not respond, the fourth information can be used to instruct the second device to send a paging message to the third devices that do not respond, thereby helping to achieve continuity processing of the first preset task.
[0109] It can be understood that the third message includes the implementation manner and effect of the above information, which are the same as the implementation manner and effect of the first message including the above information. For details, refer to the description in the above examples, which will not be described here.
[0110] In a second aspect, a communication method is provided, applied to a second device, and the method includes:
[0111] receiving a first message sent by a first device, the first message being used to indicate to perform a first preset task;
[0112] The first message includes first information, and the first information is used to identify the first preset task.
[0113] In the embodiments of the present application, the second device can perform the first preset task according to the first message. In this case, the first device and the second device can identify the same preset task according to the first information in the first message, and subsequently communicate accordingly, thereby helping to realize repeated or consecutive processing of the same preset task by the first device and the second device, and improving the efficiency of communication.
[0114] In an implementation manner of the second aspect, the method further includes:
[0115] sending a sixth message to one or more third devices according to the first message, the sixth message being used to instruct the third devices to perform the first preset task;
[0116] sending a second message to the first device based on responses of the one or more third devices to the sixth message, the second message being used to indicate an execution result of the first preset task, the second message comprising the first information.
[0117] In the embodiments of the application, the first device can instruct the second device to perform a preset task according to the first message, and the second device can send a sixth message to the third device according to the first message to instruct the third device to perform the preset task. In this case, the first device, the second device and the third device can identify the same preset task according to the first message and the sixth message, and subsequent communication is performed accordingly, thereby facilitating repeated or consecutive processing of the same preset task by the first device and the second device and improving communication efficiency.
[0118] In an implementation form of the second aspect, the method further includes:
[0119] receiving a third message sent by the first device, the third message comprising the first information, and the third message being used to instruct to perform the first preset task identified by the first information.
[0120] It can be understood that the first message and the third message both comprise the first information, and the second device can identify the same preset task according to the first information in the first message and the third message, and subsequent communication is performed accordingly, thereby facilitating repeated or consecutive processing of the same preset task by the first device and the second device and improving communication efficiency.
[0121] In an implementation form of the second aspect, the method further includes:
[0122] sending the seventh message to the one or more third devices based on a first preset condition, the seventh message being used to instruct the third devices to perform the first preset task.
[0123] Optionally, the first preset condition is at least one of:
[0124] receiving a third message sent by the first device, the third message being used to instruct to perform the first preset task identified by the first information;
[0125] the number of the third devices that have responded is inconsistent with a preset number;
[0126] no response is received from a target device in the one or more third devices;
[0127] Detecting a collision in a random access procedure;
[0128] Detecting a failure in a random access procedure.
[0129] In the embodiments of the application, the second device can instruct the third device to respond according to the seventh message, in which case, since the sixth message and the seventh message are both associated with the first preset task, the second device and the third device can identify the same task according to the sixth message and the seventh message, and subsequently communicate accordingly, thereby facilitating the repetitive or consecutive processing of the same task by the second device and the third device.
[0130] In an implementation form of the second aspect, the method further includes:
[0131] ending the first preset task based on a second preset condition.
[0132] Optionally, the ending the first preset task includes:
[0133] stopping sending messages to the third device, and / or sending a message to the first device to indicate an execution result of the first preset task.
[0134] Optionally, the second preset condition includes at least one of:
[0135] a number of times of executing the first preset task reaches a preset number of times;
[0136] a time of executing the first preset task reaches a preset time length;
[0137] a number of the third devices that have responded reaches a preset number;
[0138] no response is received from any one of the third devices;
[0139] no collision is detected in the process of executing the preset task;
[0140] receiving a ninth message, the ninth message indicating a task with a priority higher than a priority of the first preset task;
[0141] receiving a fourth message sent by the first device, the fourth message being used to indicate ending the first preset task.
[0142] In some cases, if the first preset condition is always met, the second device will repeatedly execute the task indicated by the sixth message, which will affect subsequent communication or cause communication failure. Through the above implementation form, the second preset condition is set, and the second device can be limited to repeatedly execute the task according to the second preset condition, effectively reducing the case that the second device cannot jump out of repeated execution, and helping to improve the reliability of communication.
[0143] In an implementation form of the second aspect, the second message further comprises first information, second information, and / or fourth information, the second information being identification information of the second device, and the fourth information being identification information of the third device.
[0144] In the embodiments of the application, the second device can indicate the first preset task corresponding to the returned execution result to the first device through the first information in the second message, so that the first device can determine whether the repeated execution of the first preset task needs to be triggered according to the execution result of the first preset task, thereby facilitating the continuity processing of the first preset task.
[0145] The first device can instruct the second device to execute the first preset task according to the second information, which helps to improve the flexibility of communication.
[0146] The first device can instruct the second device to end the first preset task through the fourth message, which can effectively reduce the situation that the second device cannot jump out of the repeated execution, thereby facilitating the reliability of communication.
[0147] In an implementation form of the second aspect, the third message further comprises third information, the third information being used to instruct to execute the first preset task indicated by the first message.
[0148] It can be understood that the third information is used to identify whether the first preset task is a new task or a repeated task. In the embodiments of the application, the first device can instruct the second device to execute the first preset task according to the third message, in which case, the first device and the second device can identify the same preset task according to the third information in the third message, and subsequently communicate in accordance therewith, thereby facilitating the repeated or consecutive processing of the same preset task by the first device and the second device, and improving the communication efficiency.
[0149] In an implementation form of the second aspect, the third message further comprises a second preset task, and the third information is used to instruct to execute the second preset task.
[0150] In the embodiments of the application, in the case of multiplexing the identification information of the preset task before multiplexing, the third message can indicate that the current identification information is multiplexed by the second preset task by carrying the second preset task, thereby instructing the second device to execute the second preset task. Through the above-mentioned manner, while ensuring the reliability of communication, the multiplexing rate of the identification information of the preset task can be improved.
[0151] In an implementation form of the second aspect, the third message and / or the first message comprises at least one of the following: a preset number of times, a preset time length, a preset number, second information, and fourth information.
[0152] Wherein, the preset number of times is used to indicate the number of times the first preset task is executed; the preset duration is used to indicate the time for executing the first preset task; the preset quantity is used to indicate the number of third devices corresponding to the first preset task; the second information is the identification information of the second device; and the fourth information is the identification information of the third device.
[0153] In the above example, the first device can limit the conditions under which the second device repeatedly executes the first preset task by setting a preset number of times, a preset quantity, and / or a preset duration. This effectively reduces the possibility that the second device cannot escape repeated execution, thus improving communication reliability. The first device can instruct some of the second devices to execute the first preset task based on the second information, which helps improve communication flexibility. The first device can instruct the second device to send paging messages to some of the third devices based on the fourth information, which also helps improve communication flexibility. Furthermore, after executing the first preset task once, if some of the third devices respond while others do not, the second device can be instructed to send paging messages to the unresponsive third devices through the fourth information, thereby facilitating the continuous processing of the first preset task.
[0154] It is understood that the implementation method and function of the third message including the above information are the same as those of the first message including the above information. For details, please refer to the description in the above embodiments, which will not be repeated here.
[0155] In one implementation of the second aspect, the sixth / seventh message further includes first information, second information, fourth information, fifth information, and / or sixth information, wherein the second information is the identification information of the second device; the fourth information is the identification information of the third device; and the fifth information is used to identify the first preset task.
[0156] Wherein, when the sixth information is a preset value, it indicates that the first preset task indicated by the first message or the third message is executed for the first time; when the sixth information is not the preset value, it indicates that the first preset task indicated by the first message or the third message is executed repeatedly.
[0157] In this embodiment of the application, the second device can instruct the third device to perform a first preset task based on the first information in the sixth message, thereby helping to achieve continuous processing of the first preset task among the first device, the second device and the third device.
[0158] The first device can instruct a portion of the second devices to perform a first preset task based on the second information, which helps improve the flexibility of communication. The first device can instruct the second devices to send paging messages to a portion of the third devices based on the fourth information, which also helps improve the flexibility of communication.
[0159] After performing a first preset task once, if part of the third devices respond and another part of the third devices do not respond, the fourth information can be used to instruct the second device to send a paging message to the third devices that do not respond, thereby helping to realize the continuity processing of the first preset task.
[0160] The fifth information includes a preset identifier, and the preset identifier is used to identify a preset task. The identifier information included in the first message sent by the first device to the second device and the identifier information included in the sixth message can be the same identifier information or identifier information having a mapping relationship. For example, the identifier information included in the first message or the third message is first CN identifier information, and the identifier information included in the sixth message or the seventh message is first AS identifier information. The first AS identifier information corresponds to the first CN identifier information, and the first CN identifier information indicates the first preset task. The identifier information is used to identify the first preset task, and can be related identifier information of the first preset task. The first information can be identifier information of the first preset task, or identifier information of a message corresponding to the first preset task, or identifier information of a process corresponding to the first preset task.
[0161] In the embodiment of the application, the second device can instruct the third device to perform the first preset task according to the fifth information in the sixth message. Since the fifth information and the first information in the first message sent by the first device to the second device indicate the same preset task, the continuity processing of the first preset task between the first device, the second device and the third device is facilitated.
[0162] In a third aspect, a communication method is provided, applied to a second device, and the method includes:
[0163] sending a sixth message to one or more third devices, used to instruct the third devices to respond according to the sixth message;
[0164] The sixth message is associated with a first preset task.
[0165] In the embodiment of the application, the second device can instruct the third device to respond according to the sixth message. In this case, the second device and the third device can identify the same task according to the first information in the sixth message, and subsequently communicate according to the same task, thereby facilitating the repetitive or continuity processing of the same task by the second device and the third device.
[0166] In one embodiment, the sixth message can be triggered to be sent by a target demand. For example, the target demand can be inventory or reading, writing, activation, deactivation and other signaling. The target demand can be generated by the second device itself, or can be generated by the second device according to a received message sent by another device.
[0167] As an example of the second device generating the sixth message according to the message sent by the other device, the first device sends a first message to the second device; the second device generates the sixth message according to the first information in the first message, and sends the sixth message to the third device. It can be understood that in this example, the target requirement is sent by the other device to the second device, the first message and the sixth message are different, but the tasks indicated by the first message and the sixth message are the same.
[0168] As another example of the second device generating the sixth message by itself, the second device has a target requirement by itself, in this case, the second device generates the sixth message according to the target requirement of itself, and sends the sixth message to the third device. For example, the second device needs to read data from the third device, in this case, the second device generates the sixth message of the read task.
[0169] Optionally, the sixth message can be a paging message.
[0170] For example, in the case of the target requirement being inventory, the second device sends the sixth message to the third device, and the sixth message can be a paging message. For another example, in the case of the target requirement being read / write signaling, the second device sends the sixth message to the third device, and the sixth message can be a paging message for triggering a random access process; after the random access process between the second device and the third device is completed, the second device sends read / write signaling to the third device.
[0171] Optionally, the sixth message can be signaling.
[0172] For example, in the case of the target requirement being read / write signaling, the second device sends a paging message to the third device for triggering a random access process; after the random access process between the second device and the third device is completed, the second device sends the sixth message to the third device, and the sixth message is read / write signaling.
[0173] In an implementation form of the third aspect, the method further includes:
[0174] based on a first preset condition, sending a seventh message to the one or more third devices, the seventh message being associated with the first preset task.
[0175] It should be noted that in one case, the sixth message can be the first message for indicating the first preset task, and the seventh message can be a message for indicating repeated execution of the first preset task. In another case, the sixth message and the seventh message can both be messages for indicating repeated execution of the first preset task, in which case, before the sixth message, the second device has sent other messages for indicating the first preset task to the third device.
[0176] Optionally, the first preset condition includes at least one of the following:
[0177] receiving a third message sent by the first device; the third message is used to indicate to perform the first preset task;
[0178] the number of the third devices that have responded is inconsistent with a preset number;
[0179] a response of a target device in the one or more third devices is not received;
[0180] a conflict is detected in a random access process;
[0181] a failure is detected in a random access process.
[0182] In the embodiments of the application, the second device can instruct the third device to respond according to the seventh message. In this case, since the sixth message and the seventh message are both associated with the first preset task, the second device and the third device can identify the same task according to the sixth message and the seventh message, and subsequently communicate accordingly, thereby facilitating the repetitive or consecutive processing of the same task by the second device and the third device.
[0183] In an implementation form of the third aspect, the sending the sixth message to the one or more third devices comprises:
[0184] receiving a first message sent by a first device; wherein the first message comprises the first information; the first information is used to identify a first preset task;
[0185] sending the sixth message to the one or more third devices according to the first message.
[0186] In the embodiments of the application, the first device can instruct the second device to perform a preset task according to the first message, and the second device can send the sixth message to the third device to instruct the third device to perform the preset task according to the first message. In this case, the first device, the second device and the third device can identify the same preset task according to the first message and the sixth message, and subsequently communicate accordingly, thereby facilitating the repetitive or consecutive processing of the same preset task by the first device and the second device, and improving the communication efficiency.
[0187] In an implementation form of the third aspect, the method further comprises:
[0188] based on the response of the one or more third devices to the sixth message, sending a second message to the first device, the second message being used to indicate an execution result of the first preset task, and the second message comprising the first information.
[0189] The second message is used to indicate the execution result of the first preset task.
[0190] In one example, the first message is an inventory, and the process of performing the first preset task can include: the second device sending a paging message to one or more third devices; the third devices responding after receiving the paging message; and the second device sending a second message to the first device according to the received responses. In this case, the second message can include the number of responding third devices and / or the identification information of the responding third devices.
[0191] In another example, the first message is a read signaling, and the process of performing the first preset task can include: the second device sending a paging message to one or more third devices, the third devices triggering a random access process after receiving the paging message; the second device sending a read signaling to the third devices after the random access is successful; the third devices reading data according to the read signaling, and the third devices sending the read data to the second device after the reading is completed. In this example, the specific content of the first preset task included in the first message can include the type and name of the data to be read. In this case, the second message can include the read data. The second message can also include the identification information of the third device sending the read data.
[0192] In another example, the first message is a write signaling, and the process of performing the first preset task can include: the second device sending a paging message to one or more third devices, the third devices triggering a random access process after receiving the paging message; the second device sending a write signaling to the third devices after the random access is successful; the third devices writing data according to the write signaling, and the third devices sending a response of the write completion to the second device after the writing is completed. In this example, the specific content of the first preset task included in the first message can include the specific data to be written. In this case, the second message can include the response of the write completion and the identification information of the third device. The write signaling can be included in the paging message, so that the writing and the response of the write completion can be completed in the random access process.
[0193] Optionally, the paging message sent by the second device to the third device can include the first information. Correspondingly, after receiving the paging message, the third device can determine whether it is a repeated paging according to the first information; if it is a new paging, the third device can respond to the current paging; if it is a repeated paging, the third device can ignore or respond to the current paging according to a preset condition.
[0194] It can be understood that in the read / write signaling scenario, after the third device ignores the paging, the second device no longer sends the read / write signaling to the third device.
[0195] The case where the third device does not respond can include: the third device is charging, leaves the communication area, or the third device ignores the current paging according to the first information.
[0196] In this way, the third device can reduce repeated paging according to the first information, thereby helping to reduce power consumption of the third device.
[0197] Optionally, the second message can include a response of the third device received by the second device. In this case, the first device determines the number of the third devices that execute the first preset task according to the second message, and determines whether the first preset task is completed according to the statistical result.
[0198] Optionally, the second message can also be statistical data obtained by the second device after performing statistics according to the received response of the third device. In this case, after receiving the second message, the first device does not need to perform statistics, and directly determines whether the first preset task is completed.
[0199] Optionally, the second message can also be a result of whether repeated paging is needed, which is obtained by the second device after performing statistics according to the received response of the third device. In this case, after receiving the second message, the first device determines whether to perform repeated paging according to the self-judgment.
[0200] In one case, the first device can send the first message to one or more second devices, and the plurality of second devices respectively execute the first preset task indicated by the first message.
[0201] In this way, the first device can determine whether repeated execution of the first preset task is needed according to the execution result of the first preset task indicated by the second information, thereby helping to realize continuous processing of the first preset task and improve communication efficiency.
[0202] Optionally, the second message further includes the first information, second information and / or fourth information, the second information is identification information of the second device, and the fourth information is identification information of the third device.
[0203] In the embodiment of the application, the second device can indicate the first preset task corresponding to the returned execution result to the first device through the first information in the second message, so that the first device can determine whether repeated execution of the first preset task is needed according to the execution result of the first preset task, thereby facilitating continuous processing of the first preset task.
[0204] The first device can instruct part of the second devices to execute the first preset task according to the second information, thereby helping to improve flexibility of communication.
[0205] The first device can instruct the second device to end the first preset task through the fourth message, which can effectively reduce the case that the second device cannot jump out of repeated execution, thereby facilitating to improve reliability of communication.
[0206] In one case, the first device determines that the first preset task is completed according to the second message, and sends a fourth message to the second device.
[0207] In one case, the second device can autonomously trigger repeated execution of the first preset task. In this case, the first device can instruct the second device to end the first preset task through the fourth message, and accordingly, the second device stops repeated execution of the first preset task after receiving the fourth message.
[0208] In this case, the second device can return the execution result of each execution of the first preset task to the first device; or the second device can return the execution result of the last execution to the first device after receiving the fourth message; or the second device can send the statistical result to the first device according to the execution results of multiple executions of the first preset task.
[0209] It can be understood that if the second device has ended the first preset task, the first device can no longer send the fourth message to the second device.
[0210] In one implementation form of the third aspect, the third message comprises the first information, and / or third information, the third information being used for associating the first preset task, and the third message being used for instructing execution of the first preset task.
[0211] It can be understood that the third information is used for identifying whether the first preset task is a new task or a repeated task. In the embodiments of the present application, the first device can instruct the second device to execute the first preset task according to the third message, and in this case, the first device and the second device can identify the same preset task according to the third information in the third message, and subsequently communicate according to the same preset task, thereby helping to realize repeated or consecutive processing of the same preset task by the first device and the second device, and improving communication efficiency.
[0212] In one implementation form of the third aspect, the third message further comprises a second preset task, and the third message is used for instructing execution of the second preset task.
[0213] In the embodiments of the present application, in the case of multiplexing the identification information of the preset task before multiplexing, the second preset task is carried in the third message, which can indicate that the current identification information is multiplexed by the second preset task, thereby instructing the second device to execute the second preset task. Through the above-mentioned manner, the multiplexing rate of the identification information of the preset task can be improved while ensuring the reliability of communication.
[0214] In one implementation form of the third aspect, the third message and / or the first message comprises at least one of the following: a preset number of times, a preset time length, a preset number, second information, fourth information.
[0215] The preset number of times is used to indicate a number of times of executing the first preset task; the preset time length is used to indicate a time of executing the first preset task; the preset number is used to indicate a number of third devices corresponding to the first preset task; the second information is identification information of the second device; and the fourth information is identification information of the third device.
[0216] In the above examples, the first device can limit the condition for the second device to repeatedly execute the first preset task by the preset number of times, the preset number and / or the preset time length, effectively reducing the case that the second device cannot break out of repeated execution, and helping to improve the reliability of communication. The first device can instruct part of the second devices to execute the first preset task according to the second information, helping to improve the flexibility of communication. The first device can instruct the second device to send a paging message to part of the third devices according to the fourth information, helping to improve the flexibility of communication. In addition, after executing the first preset task once, if part of the third devices respond and another part of the third devices do not respond, the second device can be instructed by the fourth information to send a paging message to the third devices that do not respond, thereby helping to realize the continuity of the first preset task.
[0217] It can be understood that the third message includes the implementation manner and the role of the above information, which are the same as the implementation manner and the role of the first message including the above information. For details, refer to the description in the above examples, which will not be described here.
[0218] In an implementation form of the third aspect, the method further includes:
[0219] ending the first preset task based on a second preset condition.
[0220] Optionally, the ending the first preset task includes:
[0221] stopping sending a message to the third device, and / or sending a message to the first device for indicating an execution result of the first preset task.
[0222] Optionally, the second preset condition includes at least one of the following:
[0223] a number of times of executing the first preset task reaches a preset number of times;
[0224] a time of executing the first preset task reaches a preset time length;
[0225] a number of the third devices that have responded reaches a preset number;
[0226] no response of any one of the third devices is received;
[0227] no conflict is detected in the process of executing the preset task.
[0228] receiving a ninth message, the priority of the task indicated by the ninth message being higher than the priority of the first preset task;
[0229] receiving a fourth message sent by the first device, the fourth message being used to indicate ending the first preset task.
[0230] Condition 1: the number of times of executing the preset task reaches a preset number of times.
[0231] Optionally, the preset number of times can be set by the second device itself. For example, in a case where the target demand is generated by the second device itself, the second device sets the preset number of times according to the target demand.
[0232] Optionally, the preset number of times can be sent by another device to the second device. For example, in a case where the first device triggers the target demand, the first device can send the preset number of times to the second device. In this case, the first message can include the preset number of times.
[0233] In a case where the first device triggers the preset task, the second device can return an execution result of the current execution to the first device every time the preset task is executed; or the second device can return an execution result of the last execution to the first device after the preset number of times is reached (condition 1 is met); or the second device can send a statistical result to the first device according to the execution results of the multiple executions of the first preset task.
[0234] Optionally, the second device can judge condition 1, or another device can judge condition 1.
[0235] In one example, the second device judges condition 1. Specifically, in a case where the second device repeatedly executes the preset task, the second device judges whether the number of times of repeatedly executing the preset task currently reaches the preset number of times; if the preset number of times is reached, the second device stops repeatedly executing the preset task.
[0236] In another example, another device judges condition 1. For example, in a case where the first device triggers the preset task, the first device can judge condition 1. Specifically, the second device can return an execution result of the current execution to the first device every time the preset task is executed; the first device judges whether the number of times of executing the preset task currently reaches the preset number of times after receiving the execution result returned by the second device every time; if the preset number of times is reached, the first device sends a fourth message to the second device, the fourth message being used to indicate ending the preset task; correspondingly, after receiving the fourth message, the second device judges that condition 2 is met, and then ends the preset task.
[0237] Condition 2: the time of executing the preset task reaches a preset time length.
[0238] Optionally, the preset time length can be set by the second device itself. For example, in a case where the target demand is generated by the second device itself, the second device sets the preset time length according to the target demand.
[0239] Optionally, the preset time length can be sent by another device to the second device. For example, in a case where the target demand is triggered by the first device, the first device can send the preset time length to the second device. In this case, the first message can include the preset time length.
[0240] In a case where the preset task is triggered by the first device, the second device can return the execution result of each execution of the preset task to the first device; or the second device can return the execution result of the last execution of the preset task to the first device after the preset time length is reached (condition 2 is met); or the second device can send the statistical result to the first device according to the execution results of multiple executions of the preset task.
[0241] Optionally, the second device can determine condition 2, or another device can determine condition 2.
[0242] In one example, in a case where the second device repeatedly executes the preset task, the second device determines whether the time of executing the preset task reaches the preset time length; if the preset time length is reached, the second device stops repeatedly executing the preset task.
[0243] The time of executing the preset task can refer to the time interval between the time when the second device sends the paging message to the third device for the first time after receiving the first message and the current time.
[0244] In another example, another device determines condition 2. For example, in a case where the preset task is triggered by the first device, the first device can determine condition 2. Specifically, the second device can return the execution result of each execution of the preset task to the first device; the first device determines whether the time of executing the preset task by the second device reaches the preset time length after receiving the execution result returned by the second device each time; if the preset time length is reached, the first device sends a fourth message to the second device, the fourth message being used to indicate the end of the preset task; correspondingly, after receiving the fourth message, the second device determines that condition 7 is met, and then the second device ends the preset task.
[0245] Condition 3: the number of third devices that have been responded to reaches a preset number.
[0246] Optionally, the preset number can be set by the second device itself. For example, in a case where the target demand is generated by the second device itself, the second device sets the preset number according to the target demand.
[0247] Optionally, the preset number can be sent to the second device by other devices. For example, in the case that the first device triggers the target demand, the first device can send the preset number to the second device. In this case, the first message can include the preset number.
[0248] In the case that the first device triggers the preset task, the second device can return the execution result of each execution of the preset task to the first device; or the second device can return the execution result of the last execution of the preset task to the first device after the number of the third devices that have responded reaches the preset number (satisfying condition 3); or the second device can send the statistical result to the first device according to the execution results of multiple executions of the preset task after satisfying condition 3.
[0249] Optionally, the second device can judge condition 3, or other devices can judge condition 3.
[0250] In one example, the execution result of each execution of the preset task can be counted separately. Specifically, after each execution of the preset task, the second device judges whether the number of responses of the third devices received by the preset task is the preset number; if yes, the preset task is ended, and the second device sends the second message to the first device; if no, the second device repeats the execution of the preset task.
[0251] For example, the target demand is inventory, the total number of the third devices for inventory is 100, and the preset number is set to 100. If the number of responses of the third devices received by the second device does not reach 100, the second device repeats the execution of the inventory.
[0252] For another example, the target demand is inventory, the total number of the third devices for inventory is 100, and the preset number is set to 80. If the number of responses of the third devices received by the second device does not reach 80, it means that a certain proportion of paging is not completed, and the second device repeats the execution of the inventory; if the number of responses of the third devices received by the second device reaches 80, it means that a certain proportion of paging is completed, and the second device ends the preset task.
[0253] In another example, the execution results of the preset task executed multiple times can be accumulated and counted. Specifically, after the preset task is executed for the first time, the second device determines whether the number of responses from the third devices received in the preset task is equal to the preset number. If the number of responses is less than the preset number, the preset task is executed for the second time, and the message including the fourth information and / or the sixth information is sent to the third devices that have not received the response, so that the third devices determine whether to respond according to the fourth information and / or the sixth information (it can be understood that if the third device has responded to the second device in the first preset task, the message sent by the second device in the second preset task is ignored according to the fourth information and / or the sixth information). After the preset task is executed for the second time, the second device counts the number of responses from the third devices received in the preset task executed for the first and second times, and determines whether the sum of the number of responses from the third devices received in the preset task executed for the first and second times reaches the preset number. If the sum of the number of responses from the third devices reaches the preset number, the preset task is ended, and the message is stopped from being sent to the third devices. If the sum of the number of responses from the third devices does not reach the preset number, the preset task is executed for the third time, and the process is repeated.
[0254] In another example, the condition 3 is determined by the other device. For example, in the case that the first device triggers the preset task, the condition 3 can be determined by the first device. Specifically, the second device can return the execution result of the preset task executed for each time to the first device (for example, the execution result includes the number of responses from the third devices received in the preset task). The first device determines whether the condition 3 is met after receiving the execution result returned by the second device each time. If the condition 3 is met, the fourth message is sent to the second device, and the fourth message is used to indicate that the preset task is ended. Correspondingly, after receiving the fourth message, the second device determines that the condition 7 is met, and the preset task is ended.
[0255] The condition 4 is that no response from any third device is received.
[0256] In one example, the first time period in which no response is received can be set. Specifically, the second device executes the preset task for each time, and the sixth message is sent to one or more third devices. If no response from any third device is received within the first time period after the sixth message is sent, the preset task is ended.
[0257] In another example, the first number of times in which no response is received can be set. Specifically, after the preset task is executed for each time, the first count is increased by 1 if no response from any third device is received. After the preset task is executed again, the first count is increased by 1 if no response from any third device is received. It is determined whether the current first count reaches the set first number of times. If the first count reaches the set first number of times, the preset task is ended. If the first count does not reach the set first number of times, the preset task is executed again, and the process is repeated.
[0258] Optionally, the first number of times can be set by the second device, or can be set by another device.
[0259] It can be understood that the second device can determine whether the first number of times is reached, as described in the above examples, or another device can determine whether the first number of times is reached.
[0260] Condition 5: no conflict is detected during execution of the preset task.
[0261] In one example, a second time period during which no conflict is detected can be set. Specifically, the second device executes the preset task once, and sends a sixth message to one or more third devices; no conflict is detected within the second time period after sending the sixth message, and the preset task is ended.
[0262] In another example, a second number of times during which no conflict is detected can be set. Specifically, the second device executes the preset task once, and no conflict is detected, and the second count is incremented by 1; the second device executes the preset task again, and no conflict is detected, and the second count is incremented by 1, and it is determined whether the current second count reaches the set second number of times; if so, the preset task is ended; if not, the second device executes the preset task again, and the process is repeated.
[0263] Optionally, the second number of times can be set by the second device, or can be set by another device.
[0264] It can be understood that the second device can determine whether the second number of times is reached, as described in the above examples, or another device can determine whether the second number of times is reached.
[0265] Condition 6: a ninth message is received, and a priority of a task indicated by the ninth message is higher than a priority of a task currently executed.
[0266] In one example, the task indicated by the ninth message is triggered by another device, and in this case, the other device sends the ninth message to the second device. For example, the first device sends the ninth message to the second device; the second device determines whether the priority of the task indicated by the ninth message is higher than the priority of the task currently executed; if so, the current preset task is ended.
[0267] In another example, the task indicated by the ninth message is triggered by the second device itself, and in this case, the second device generates the ninth message. After generating the ninth message, the second device determines whether the priority of the task indicated by the ninth message is higher than the priority of the task currently executed; if so, the current preset task is ended.
[0268] Optionally, the task indicated by the ninth message and the preset task currently being executed can be a same type of task. For example, the preset task currently being executed is inventory, and the second device needs to send a paging message to the third device; the task indicated by the ninth message is paging, and the second device also needs to send a paging message to the third device. Although the task indicated by the ninth message is different from the preset task currently being executed, the task types are the same, and the actions required to be performed by the second device are the same.
[0269] Optionally, the task indicated by the ninth message and the preset task currently being executed can be a same type of task. For example, the preset task currently being executed is inventory, and the second device needs to send a paging message to the third device; the task indicated by the ninth message is paging, and the second device also needs to send a paging message to the third device. Although the task indicated by the ninth message is different from the preset task currently being executed, the task types are the same, and the actions required to be performed by the second device are the same.
[0270] Condition 7: receiving the fourth message sent by the first device, the fourth message being used to indicate ending the preset task.
[0271] In one example, the first device determines that the preset task has been completed according to the execution result returned by the second device (for example, the second message described in S906 and S1006), and then sends the fourth message to the second device.
[0272] Optionally, the manner in which the first device determines whether the preset task is completed according to the execution result returned by the second device can include determining whether at least one of the following conditions is met: condition 1, condition 2, condition 3, condition 4, and condition 5. For specific examples, refer to the descriptions in the embodiments corresponding to the respective conditions, which will not be described herein again.
[0273] It should be noted that in the above examples, ending the preset task can mean that the second device stops sending messages to the third device, and / or the second device sends the execution result (for example, the second message and the fifth message) of the preset task to the first device.
[0274] In some cases, if the first preset condition is met all the time, the second device will repeatedly perform the task indicated by the sixth message all the time, which will affect subsequent communication or cause communication failure. Through the above implementation manner, the second preset condition is set, and the second device is limited to repeatedly perform the task according to the second preset condition, which effectively reduces the situation that the second device cannot jump out of repeated execution, and helps to improve the reliability of communication.
[0275] In an implementation form of the third aspect, the sixth message and / or the seventh message further comprises the first information, second information, fourth information, fifth information and / or sixth information, the second information being identification information of the second device; the fourth information being identification information of the third device; the fifth information being used for identifying the first preset task.
[0276] When the sixth information is a preset value, it indicates that the first preset task indicated by the first message or the third message is executed for the first time; when the sixth information is not the preset value, it indicates that the first preset task indicated by the first message or the third message is executed repeatedly.
[0277] In the embodiments of the present application, the second device can execute the first preset task indicated by the first information in the sixth message according to the third device, thereby helping to realize the continuity processing of the first preset task among the first device, the second device and the third device.
[0278] The first device can instruct part of the second device to execute the first preset task according to the second information, thereby helping to improve the flexibility of communication. The first device can instruct the second device to send a paging message to part of the third device according to the fourth information, thereby helping to improve the flexibility of communication.
[0279] After executing the first preset task once, if part of the third device responds and another part of the third device does not respond, the fourth information can be used to instruct the second device to send a paging message to the third device that does not respond, thereby helping to realize the continuity processing of the first preset task.
[0280] The fifth information comprises a preset identifier, and the preset identifier is used for identifying a preset task. The identification information included in the first message sent by the first device to the second device and the identification information included in the sixth message can be the same identification information or identification information having a mapping relationship. For example, the identification information included in the first message or the third message is first CN identification information, and the identification information included in the sixth message or the seventh message is first AS identification information. The first AS identification information corresponds to the first CN identification information, and is associated with the first preset task indicated by the first CN identification information. The identification information is used for identifying the first preset task, and can be related identification information of the first preset task. The first information can be identification information of the first preset task, or identification information of a message corresponding to the first preset task, or identification information of a process corresponding to the first preset task.
[0281] In the embodiments of the present application, the second device can instruct the third device to perform the first preset task according to the fifth information in the sixth message, and since the fifth information and the first information in the first message sent by the first device to the second device indicate the same preset task, the continuity of the first preset task between the first device, the second device and the third device is facilitated.
[0282] It should be noted that in the embodiments of the present application, there is an association between each message involved in the communication process. For example, the first message and the third message both include the identification information of the first preset task to instruct the second device to repeatedly perform the same task. For another example, the first message and the sixth message both include the identification information of the first preset task to instruct the first device and the second device to perform the same task. For another example, the sixth message and the seventh message both include the identification information of the first preset task to instruct the third device to perform the same task. For another example, the first message and the second message both include the identification information of the first preset task to instruct the execution result returned by the second device to belong to the preset task triggered by the first device.
[0283] It should be noted that the association between two messages can mean that the two messages are associated with the same preset task.
[0284] For example, the first message, the third message and the fourth message sent by the first device to the second device can be the same message or different messages. In the case of different messages, one way is that the first message, the third message and the fourth message are different types of messages, which can be identified as different messages through message names and message identification information, and the first message and the third message can indicate the same preset task by carrying the same identification information of the flow or the preset task. For example, the first message and the third message both include the identification information of the first preset task. For another example, the first message includes the specific content of the first preset task and the first information, and the third message carries the identification information of the first preset task. In the case of different messages, another way is that the first message and the third message carry different identification information, but the identification information carried by the two messages is used to indicate the same preset task. In the case of the same message, the message name and the message type or the identification information of the message carried by the first message and the third message are the same, for example, the first message and the third message are both carried by message 1, when message 1 carries the content of the first message, it is the first message, and when message 1 carries the content of the third message, it is the third message.
[0285] For another example, the first message sent by the first device to the second device and the sixth message sent by the second device to the third device can carry the same identification information to associate the same preset task. Alternatively, the first message and the sixth message carry different identification information, but the identification information carried by both is used to indicate the same preset task.
[0286] For another example, the first message sent by the first device to the second device and the sixth message sent by the second device to the third device can carry the same identification information to associate the same preset task. Alternatively, the first message and the sixth message carry different identification information, but the identification information carried by both is used to indicate the same preset task.
[0287] The sixth message and the seventh message sent by the second device to the third device can be the same message or different messages. The second message and the fifth message sent by the second device to the first device can be the same message or different messages.
[0288] In a fourth aspect, a communication method is provided, which is applied to the third device, and the method comprises:
[0289] receiving the sixth message sent by the second device; wherein the sixth message is associated with the first preset task;
[0290] determining whether to respond according to the sixth message.
[0291] In the embodiments of the present application, the second device can instruct the third device to respond according to the sixth message. In this case, the second device and the third device can identify the same task according to the first information in the sixth message, and subsequently communicate according to the same task, thereby facilitating the repetitive or consecutive processing of the same task by the second device and the third device.
[0292] In an implementation form of the fourth aspect, the determining whether to respond according to the sixth message comprises:
[0293] determining whether the sixth message has been received;
[0294] if the sixth message has not been received, sending an eighth message to the second device, wherein the eighth message is used to indicate the response.
[0295] In the above implementation form, the third device responds in the case where the sixth message has not been received, which can reduce the repeated response of the third device, thereby facilitating the improvement of communication efficiency and reducing the waste of communication resources.
[0296] In an implementation form of the fourth aspect, the method further comprises:
[0297] If multiple sixth messages sent by the second devices are received, a sixth message sent by at least one of the multiple second devices is selected for responding.
[0298] In some cases, the third device can receive multiple messages sent by the second devices, and the multiple messages all include the first information. In other words, the tasks indicated by the multiple messages sent by the second devices are the same. In this case:
[0299] In one implementation, the third device replies to each of the second devices.
[0300] In another implementation, the third device replies to any one of the second devices and ignores the messages sent by the other second devices and including the first information.
[0301] In yet another implementation, the third device selects a second device corresponding to a message including the AS ID and the first information to reply to, and ignores the messages sent by the other second devices and including the first information. If the sixth message includes the AS ID, it indicates that the random access procedure between the second device corresponding to the sixth message and the third device has been completed, or that the second device corresponding to the sixth message has communicated with the third device not long ago, or that the communication between the second device corresponding to the sixth message and the third device is relatively reliable or efficient.
[0302] In the above implementation, the third device selectively responds, which can reduce repeated responses of the third device, improve communication efficiency, and reduce waste of communication resources.
[0303] In one implementation of the fourth aspect, the determining whether to respond according to the sixth information includes:
[0304] If the random access procedure between the second device corresponding to the first preset task associated with the sixth message and the third device is not completed, an eighth message is sent to the second device, where the eighth message is used to indicate a response.
[0305] In the above implementation, the third device responds to the second device when the random access is not completed, which reduces the misjudgment of repeated responses of the third device in the random access procedure, and improves the reliability of communication.
[0306] In one implementation of the fourth aspect, the sixth message includes first information, second information, fourth information, fifth information, and / or sixth information, the first information is used to identify the first preset task, the second information is identification information of the second device, the fourth information is identification information of the third device, and the fifth information is used to identify the first preset task.
[0307] When the sixth information is a preset value, it indicates that the first preset task indicated by the first message or the third message is executed for the first time; when the sixth information is not the preset value, it indicates that the first preset task indicated by the first message or the third message is executed repeatedly.
[0308] In the embodiment of the application, the second device can instruct the third device to execute the first preset task according to the first information in the sixth message, thereby helping to realize the continuity processing of the first preset task among the first device, the second device and the third device.
[0309] The first device can instruct part of the second device to execute the first preset task according to the second information, thereby helping to improve the flexibility of communication. The first device can instruct the second device to send a paging message to part of the third device according to the fourth information, thereby helping to improve the flexibility of communication.
[0310] After the first preset task is executed once, if part of the third device responds and another part of the third device does not respond, the second device can be instructed to send a paging message to the third device that does not respond by the fourth information, thereby helping to realize the continuity processing of the first preset task.
[0311] The fifth information includes a preset identifier, and the preset identifier is used to identify a preset task. The identifier information included in the first message sent by the first device to the second device and the identifier information included in the sixth message can be the same identifier information or identifier information having a mapping relationship. For example, the identifier information included in the first message or the third message is first CN identifier information, and the identifier information included in the sixth message or the seventh message is first AS identifier information. The first AS identifier information corresponds to the first CN identifier information, and the first CN identifier information indicates the first preset task. The identifier information is used to identify the first preset task, and can be related identifier information of the first preset task. The first information can be identifier information of the first preset task, or identifier information of a message corresponding to the first preset task, or identifier information of a process corresponding to the first preset task.
[0312] In the embodiment of the application, the second device can instruct the third device to execute the first preset task according to the fifth information in the sixth message. Since the fifth information and the first information in the first message sent by the first device to the second device indicate the same preset task, the continuity processing of the first preset task among the first device, the second device and the third device is realized.
[0313] In a manner of implementation of the fourth aspect, the method further includes:
[0314] In a case where the sixth message comprises the sixth information, an eighth message is sent to the second device based on the sixth information being the preset value, wherein the eighth message is used to indicate a response; or
[0315] In a case where the sixth information is not the preset value and a random access procedure between the second device corresponding to the first preset task associated with the sixth message and the third device is not completed, the eighth message is sent to the second device.
[0316] For example, the sixth information can be a flag. When the flag is 0, it indicates new transmission, i.e., the first execution of the preset task indicated by the sixth message; when the flag is 1, it indicates retransmission, i.e., repeated execution of the preset task indicated by the sixth message. For another example, when the flag is 0, it indicates new transmission; when the flag is not 0, it indicates repeated execution.
[0317] In the above manner, the sixth information is used to indicate new transmission or retransmission of the preset task. In this case, the second device and the third device can identify the same task according to the sixth information, and subsequently perform communication according to the same task, thereby facilitating repeated or consecutive processing of the same task by the second device and the third device.
[0318] In an implementation form of the fourth aspect, the method further comprises:
[0319] In a case where the seventh message comprises the sixth information, an eighth message is sent to the second device based on the sixth information being the preset value, wherein the eighth message is used to indicate a response; or
[0320] In a case where the sixth information is not the preset value and a random access procedure between the second device corresponding to the first preset task associated with the sixth message and the third device is not completed, the eighth message is sent to the second device.
[0321] In the above manner, the sixth information is used to indicate new transmission or retransmission of the preset task. In this case, the second device and the third device can identify the same task according to the sixth information, and subsequently perform communication according to the same task, thereby facilitating repeated or consecutive processing of the same task by the second device and the third device.
[0322] In a fifth aspect, a communication apparatus is provided, comprising a processing unit and a transceiver unit, and the communication apparatus is configured to perform the method of any one of the first aspect, or the method of any one of the second aspect, or the method of any one of the third aspect.
[0323] In a sixth aspect, a communication apparatus is provided, which comprises a processor coupled with a memory, and the memory stores programs or instructions for performing the method of any one of the first aspect, or the method of any one of the second aspect, or the method of any one of the third aspect.
[0324] In a seventh aspect, a communication system is provided, which comprises the communication apparatus of the sixth aspect.
[0325] In an eighth aspect, a computer readable storage medium is provided, which stores computer programs or instructions, and the computer programs or instructions, when executed, cause the computer to perform the method of any one of the first aspect, or the method of any one of the second aspect, or the method of any one of the third aspect.
[0326] In a ninth aspect, a computer program product is provided, which comprises computer programs, and the computer programs, when executed, cause the method of any one of the first aspect, or the method of any one of the second aspect, or the method of any one of the third aspect to be performed.
[0327] It can be understood that the beneficial effects of the fifth aspect to the ninth aspect described above can be referred to the related description of the first aspect to the fourth aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0328] FIG. 1 is a topology structure of an environmental Internet of Things provided by an embodiment of the present application;
[0329] FIG. 2 is a communication flow of topology 1 provided by an embodiment of the present application;
[0330] FIG. 3 is a communication flow of topology 2 provided by an embodiment of the present application;
[0331] FIG. 4 is a schematic diagram of a communication system provided by an embodiment of the present application;
[0332] FIG. 5 is a schematic diagram of a protocol layer provided by an embodiment of the present application;
[0333] FIG. 6 is a schematic diagram of a protocol layer provided by another embodiment of the present application;
[0334] FIG. 7 is a structural schematic diagram of a computer device provided by an embodiment of the present application;
[0335] FIG. 8 is a flowchart of a communication method for a first device triggering a same task provided by an embodiment of the present application;
[0336] FIG. 9 is a schematic diagram of a communication flow of the AF triggering the same task according to an embodiment of the present application;
[0337] FIG. 10 is a schematic diagram of a communication flow of the CN triggering the same task according to an embodiment of the present application;
[0338] FIG. 11 is a flow chart of a communication method of the second device triggering the same task according to an embodiment of the present application;
[0339] FIG. 12 is a schematic diagram of a communication flow of the second device triggering the same task according to an embodiment of the present application;
[0340] FIG. 13 is a schematic diagram of a communication method according to another embodiment of the present application;
[0341] FIG. 14 is a schematic diagram of a communication apparatus according to an embodiment of the present application. DETAILED DESCRIPTION
[0342] In the following description, specific details are set forth in order to provide a thorough understanding of embodiments of the application. However, persons of ordinary skill in the art will readily appreciate that embodiments of the application can be practiced without
[0343] It should be understood that the term "comprises / comprising" when used in this specification and associated claims, denotes the presence of stated features, integers, steps, operations, elements, or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. The terms "comprise", "comprising", "have", "having", "include", "including" and "contain", "containing" are merely open-ended terms of description, and not terms of limitation.
[0344] It should be understood that the term "one or more" as referred to herein means one, two, or more than two. The term "multiple" as referred to herein means two or more than two. In the description of the application, unless otherwise stated, " / " means or, for example, A / B can mean A or B. The term "and / or" as used herein is merely an open term indicating that there are three possibilities - A and / or B, A and B, and B alone.
[0345] In order to clearly describe the technical solutions of the present application, the terms "first", "second", etc. are used to distinguish the same or similar items or components with basically the same function and role. Those skilled in the art can understand that the terms "first", "second", etc. do not limit the quantity and execution order, and the terms "first", "second", etc. also do not necessarily mean different.
[0346] The phrases “one embodiment,” “an embodiment,” “some embodiments,” “other embodiments,” “additional embodiments,” and so forth, as may occur in various places of the application, do not necessarily all refer to the same embodiment, although they can. Further, the phrases “in one embodiment” and “in some embodiments” do not necessarily refer to the same embodiment, although they can. These phrases can refer to one or more embodiments, but not all embodiments, of the application.
[0347] Firstly, related terms involved in embodiments of the present application are introduced.
[0348] An application function (AF), also referred to as an application function, refers to various services of an application layer, similar to an application server. The AF can interact with other core network control planes and provide service services.
[0349] Radio resource control (RRC) refers to the management, control and scheduling of wireless resources through certain strategies and means, to maximize the use of limited wireless network resources under the requirement of quality of service, to ensure that the planned coverage area is reached, and to maximize the business capacity and resource utilization. The RRC reconfiguration message (RRC reconfiguration) is used for RRC reestablishment, such as reestablishing the communication connection between the base station and the terminal device.
[0350] The paging message is a message triggered by the network side or the core network to page the terminal. For example, in the new radio (New Radio, NR) technology of the fifth generation mobile communication network (5th generation mobile networks, 5G), the paging message can include the identity information (Identity document, ID) of the terminal. After the terminal receives the paging message, it compares whether the ID in the paging message is consistent with its own ID; if consistent, it will respond to the paging message.
[0351] Optionally, the paging message can include at least one of the following information: resource, random access type, downlink signaling, process ID, device ID, reader ID, and indication information. The process ID is used to identify different paging messages. The device ID is used to indicate whether to receive paging or ignore paging. The reader ID is used to identify different readers. The indication information is used to indicate that the paging failure device receives the paging indication.
[0352] Inventory, a kind of signaling for counting terminal devices. For example, the AF obtains the identification information of the environmental Internet of Things device through inventory, and counts the environmental Internet of Things device according to the obtained identification information of the environmental Internet of Things device. In the inventory process, the AF can issue a paging message to the environmental Internet of Things device; the environmental Internet of Things device responds according to the paging message; after receiving the response of the environmental Internet of Things device, the AF counts the environmental Internet of Things device according to the number of responses.
[0353] Reader, which can read and write terminal devices by means of wireless communication, so as to achieve the purpose of identifying targets and data exchange. Taking the reader and the tag device as an example, the reader provides energy for the tag device by sending an excitation signal to the tag device, the tag device receives the signaling sent by the reader, and sends signaling to the reader by reflecting the signal. In this way, the reader can identify the identification information of the tag device, and perform read and write operations on the tag device.
[0354] Random access refers to the process of sending a random access preamble index from a terminal device attempting to access a network device to establishing a connection between the terminal device and the network device. The random access procedure can be applied to scenarios such as RRC reestablishment.
[0355] Optionally, random access can be divided into contention-based random access (CBRA) and contention-free random access (CFRA).
[0356] For example, the CBRA process can include the following steps 1-1 to 1-4:
[0357] 1-1, random access preamble transmission as message 1 (Msg1).
[0358] The terminal device randomly selects a preamble from a shared preamble pool and sends the preamble index to the corresponding beam of the network device through the physical random access channel (PRACH).
[0359] 1-2, random access response (RAR) as message 2 (Msg2).
[0360] When the network device receives the preamble index, the network device applies for a temporary cell-radio network temporary identifier (C-RNTI) and uplink and downlink scheduling resources. Then, the network device sends a random access response (RAR) through a physical downlink shared channel (PDSCH). The RAR contains a responding TA value, uplink grant (UL grant) information, and a C-RNTI.
[0361] One PDSCH can carry RARs for multiple terminal devices.
[0362] 1-3, an RRC connection request (RRC connection request) as message 3 (Msg3).
[0363] The terminal device sends the Msg3 to the network device on the specified uplink resource, which contains an identification number corresponding to the terminal device and necessary information required for establishing an RRC connection.
[0364] 1-4, an RRC connection setup message (RRC connection setup) as message 4 (Msg4).
[0365] When the network device receives the message / data sent by the terminal device on the allocated UL grant resource, if there is no conflict (or no contention), the network device sends a contention resolution message to the terminal device, for example, the network device sends an RRC connection setup message to the terminal device. After that, the terminal device can communicate with the network device.
[0366] For example, the CFRA procedure can include the following steps 2-1 to 2-2:
[0367] 2-1, a random access preamble transmission as Msg1.
[0368] The terminal device sends a random access preamble index (or random access preamble sequence) to the network device through a PRACH. In the non-contention random access procedure, the random access preamble index is allocated to the terminal device by the network device in advance. That is, the random access preamble index is dedicated to the terminal device.
[0369] 2-2, a random access response (RAR) as Msg2.
[0370] The network device sends a random access response to the terminal device. The random access response can include a responding TA value, an UL grant, and the like.
[0371] Next, an ambient the internet of things (A-IoT) device related to an embodiment of the present application is described.
[0372] The ambient the internet of things device can also be referred to as a passive internet of things device. The ambient the internet of things device refers to a new type of internet of things device that mainly collects ambient energy from radio waves, light, motion, heat, or any other available ambient energy source and is driven by the ambient energy.
[0373] The ambient the internet of things device can be applied in various scenarios, such as smart buildings, asset tracking, agriculture, smart homes, and the like. For example, the ambient the internet of things device can be a smart switch, a smart door lock, a smart meter, a sensor-based device for monitoring the state of a machine, environmental conditions, and the like, a building automation and control device, an asset tag device, and the like, and the present application is not limited thereto. In these scenarios, the networking requirement of the ambient the internet of things device is generally simple, which can be simply asset information reporting or sending of a small amount of sensor data.
[0374] The ambient energy collected by the ambient the internet of things device can only generate a small amount of electric energy, which requires the ambient the internet of things device to be more simple and energy-efficient. Therefore, the ambient the internet of things device needs to implement low-power computing and low-power communication.
[0375] The requirements for the ambient the internet of things device are different in different application scenarios. At present, considering the energy storage capacity and signal transmission capability of different devices, the following three types of ambient the internet of things devices are defined:
[0376] Device type 1a: no energy storage capability and no independent signal generation and amplification capability. This is the lowest cost device type, which relies on backscatter for communication. The power consumption of the device when receiving or transmitting a signal is below 1 micro-watt or below 10 micro-watts.
[0377] Device type 1b: energy storage capability but no independent signal generation capability. Due to the energy storage, the device can amplify the backscattered signal after collecting enough electric energy, covering a longer distance. The power consumption of the device when receiving or transmitting a signal is between device type 1a and device type 2.
[0378] Device type 2: both energy storage capability and independent signal generation and amplification capability. The communication capability of the device is similar to that of a traditional internet of things device. The power consumption of the device when receiving or transmitting a signal is below 1 milliwatt or below 10 milliwatts.
[0379] It should be noted that the embodiments of the present application only exemplarily illustrate the types of the environmental Internet of Things devices by taking the above three types of devices as examples, and there can be other different types of devices in actual applications, and the embodiments of the present application do not limit this.
[0380] In some embodiments, the environmental Internet of Things device can report the business data (including but not limited to asset information, sensor data, etc.) to a communication node. The communication node can be a reader, a base station or a user equipment (UE).
[0381] Exemplarily, the base station can be a base station (node B, NB) of a 3th generation mobile networks (3G) cell, an evolved node B (eNB) of a 4th generation mobile networks (4G) cell, a next generation node B (gNB) of a 5th generation mobile networks (5G) cell, etc.
[0382] Exemplarily, the UE can be a mobile phone, a tablet computer, a wearable device, a digital camera, a vehicle-mounted device, an augmented reality (AR) device, a virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a laptop, a mobile terminal (MT), a mobile station (MS), a mobile unit (MU), a wireless unit, a remote unit, a user agent, a mobile client, etc., and the embodiments of the present application do not limit this.
[0383] It should be noted that in some cases, the base station or the UE can implement the function of the reader, and in this case, the reader can be a base station or a UE capable of implementing the function of the reader.
[0384] In some embodiments, in the case that the environmental Internet of Things device is a tag device, the base station or the UE in communication with the environmental Internet of Things device can also be referred to as a tag reader device.
[0385] In some embodiments, if the environmental IoT device collects electromagnetic wave energy, the reader, base station or UE can provide electromagnetic wave energy for the environmental IoT device as an energy supply node, and of course, other devices can also be used as energy supply nodes in actual applications, and the embodiments of the present application are not limited thereto.
[0386] In some embodiments, referring to FIG. 1, a topology of an environmental IoT provided by an embodiment of the present application is shown. As an example but not limitation, as shown in FIG. 1, the environmental IoT networking topology can include the following two types:
[0387] Topology 1: As shown in (a) of FIG. 1, the environmental IoT device can communicate with the base station. The communication between the base station and the environmental IoT device can include data and / or signaling.
[0388] Optionally, in this case, the base station and the environmental IoT device can directly communicate, or the base station and the environmental IoT device can communicate through an intermediate node (including but not limited to a relay point, an integrated access and backhaul (IAB) node, a terminal, an amplifier, etc.).
[0389] As an example but not limitation, referring to FIG. 2, a communication process of topology 1 provided by an embodiment of the present application is shown. As shown in FIG. 2, the communication process can include the following steps:
[0390] S201, the AF sends signaling to the A-IoT controller.
[0391] Optionally, the signaling can be a read-write, disable, or other downlink command or inventory.
[0392] S202, the A-IoT controller sends the signaling to the base station.
[0393] In this case, the A-IoT controller plays the role of the core network, which is used to forward the signaling of the AF to the base station.
[0394] For example, the A-IoT controller can be an access and mobility management function (AMF) of a 5th generation mobile networks (5G) core network, or a user port function (UPF) of the 5G core network, and the embodiments of the present application are not limited thereto.
[0395] S203, the base station sends an initial message to the environmental IoT device.
[0396] In topology 1, the base station can implement the function of the reader-writer. In this case, the base station sends an initial message to the environmental IoT device according to the signaling of the AF, to instruct the AF to page the environmental IoT device or send signaling to the environmental IoT device.
[0397] Optionally, the initial message can be a paging message. Correspondingly, the environmental IoT device triggers a random access procedure after receiving the paging message.
[0398] Topology 2: As shown in (b) of FIG. 1, the environmental IoT device can communicate with an intermediate node. The communication between the intermediate node and the environmental IoT device can include data and / or signaling.
[0399] Optionally, in this case, the intermediate node can communicate with the base station.
[0400] Optionally, in this case, the intermediate node includes but is not limited to a UE, a relay point, an integrated access and backhaul (IAB) node, a terminal, an amplifier, etc.
[0401] Exemplarily, referring to FIG. 3, a communication flow of topology 2 provided by an embodiment of the present application is shown. As an example but not limitation, as shown in FIG. 3, the communication flow can include the following steps:
[0402] S301, the AF sends signaling to the A-IoT controller.
[0403] S302, the A-IoT controller sends the signaling to the base station.
[0404] Steps S301-S302 are the same as steps S201-S202, and specific descriptions can be referred to the descriptions in steps S201-S202, which will not be repeated here.
[0405] S303, the base station sends an RRC reconfiguration message to the intermediate node.
[0406] The base station establishes a connection with the intermediate node through the RRC reconfiguration message. After establishing the connection, the base station sends the signaling issued by the AF to the intermediate node, so that the intermediate node sends an initial message to the environmental IoT device.
[0407] In this case, the intermediate node plays the role of the reader-writer, and the base station needs to support the capability of the reader-writer.
[0408] S304, the intermediate node sends the initial message to the environmental IoT device.
[0409] For example, the intermediate node includes, but is not limited to, a UE, a relay point, an integrated access and backhaul (IAB) node, a terminal, an amplifier, and the like.
[0410] In topology 2, the intermediate node sends an initial message to the environmental IoT device according to the signaling of the AF, to instruct the AF to page the environmental IoT device or send signaling to the environmental IoT device.
[0411] Optionally, the initial message can be a paging message. Correspondingly, after the environmental IoT device receives the paging message, the random access procedure is triggered.
[0412] It should be noted that the above two topologies are only used as examples to illustrate the environmental IoT networking topology, and other different topologies can also be used in actual applications, which are not limited by the embodiments of the present application.
[0413] Next, the system architecture involved in the embodiments of the present application will be described.
[0414] Referring to FIG. 4, it is a schematic diagram of a communication system provided by the embodiments of the present application. As an example but not limitation, as shown in FIG. 4, the communication system can include a first device 41, a second device 42 and a third device 43.
[0415] The first device 41 and the second device 42 can communicate through a wireless connection, and the second device 42 and the third device 43 can communicate through a wireless connection.
[0416] In some application scenarios of the environmental IoT, the first device 41 can be a core network (CN) network element or an AF, the second device 42 can be a reader / writer, and the third device 43 can be an environmental IoT device.
[0417] For example, in the communication flow of topology 1 shown in FIG. 2, the A-IoT controller plays the role of the CN, and the base station plays the role of the reader / writer. In this case, the first device 41 is the A-IoT controller, the second device 42 is the base station, and the third device 43 is the environmental IoT device. Alternatively, the first device 41 is the AF, the second device 42 is the base station, and the third device 43 is the environmental IoT device. It should be noted that when the first device 41 is the AF and the second device 42 is the base station, the first device 41 can communicate with the second device 42 through the CN.
[0418] For another example, in the communication flow of topology 2 shown in FIG. 3, the A-IoT controller plays the role of the CN, and the intermediate node plays the role of the reader-writer. In this case, the first device 41 is the A-IoT controller, the second device 42 is the intermediate node (e.g., UE), and the third device 43 can be the environmental IoT device. Alternatively, the first device 41 can be the AF, the second device 42 can be the intermediate node (e.g., UE), and the third device 43 can be the environmental IoT device. It should be noted that when the first device 41 is the A-IoT controller and the second device 42 is the intermediate node, the first device 41 can communicate with the second device 42 through the base station; when the first device 41 is the AF and the second device 42 is the intermediate node, the first device 41 can communicate with the second device 42 through the CN and the base station.
[0419] In some other application scenarios of the environmental IoT, the first device 41 can be the base station, the second device 42 can be the intermediate node between the base station and the environmental IoT device, and the third device 43 can be the environmental IoT device.
[0420] For example, in the communication flow of topology 2 shown in FIG. 3, the base station can communicate with the environmental IoT device through the intermediate node, where the intermediate node plays the role of the reader-writer. In this case, the intermediate node can be the second device 42. In addition, in this case, the AF can communicate with the base station through the CN, and send the signaling to the base station to trigger the task indicated by the signaling.
[0421] As described in S203 and S304, after the first device 41 sends the inventory or the signaling, the second device 42 can send the initial message to the third device 43. Optionally, the initial message is the paging message. In some implementations, after the third device 43 receives the paging message sent by the second device 42, the third device 43 triggers the random access procedure. For example, in the communication flow shown in FIG. 2, S203, after the base station sends the initial message to the environmental IoT device, the environmental IoT device triggers the random access procedure. For another example, in the communication flow shown in FIG. 3, S304, after the intermediate node sends the initial message to the environmental IoT device, the environmental IoT device triggers the random access procedure.
[0422] In different application scenarios, the paging message is used to trigger the sending of different signaling. For example, in the application scenario of inventorying by the first device 41, the paging message is used to trigger the sending of inventorying, and accordingly, the third device 43 reports its own identification information, so that the first device 41 performs inventorying according to the identification information of the third device 43. For another example, in the application scenario of reading signaling sent by the first device 41, the paging message is used to trigger the sending of reading signaling, and accordingly, the third device 43 reports the read data after successful random access. For another example, in the application scenario of writing signaling sent by the first device 41, the paging message is used to trigger the sending of writing signaling, and accordingly, the third device 43 can send response information of writing success after successful random access.
[0423] The paging type is single paging, multiple paging, group paging, or full paging. The single paging is paging for one device, and the paging message can include only the identification information of the device. The multiple paging is paging for multiple devices, and the paging message can include the identification information of the multiple devices. The group paging is paging for a group of devices, and the paging message can include the group identification information of the devices. The full paging is paging for all devices, and the paging message does not need to include the identification information of the devices. After receiving the paging message, the device corresponding to its own device ID, if the device ID or the device group ID included in the paging message, performs a random access process. If the paging message does not include the ID of the device, the device can directly perform a random access process upon receiving the paging message. The paging message can also be referred to as an initial message.
[0424] In different types of random access processes, the data carried in the messages sent between the second device 42 and the third device 43 can be different.
[0425] For example, in the CFRA process, the third device 43 determines the resource of the non-contention random access process, and sends Msg1 to the second device 42. If the random access is successful, the second device 42 sends Msg2 to the third device 43.
[0426] The Msg1 can include the identification information of the third device 43 and / or other upper layer data. In the case that the initial message includes an access layer identification (Access-stratum ID, AS ID), the Msg1 can also include the AS ID.
[0427] The Msg2 can include an acknowledgement message or a non-acknowledgement message. For example, after the second device 42 receives the Msg1, if the random access is successful, the second device 42 can send a random access response to the third device 43 to acknowledge that the random access procedure has been completed, in which case the Msg2 is an acknowledgement message. For another example, after the second device 42 receives the Msg1, if the random access is successful, the second device 42 can send signaling to the third device 43 to make the third device 43 perform a task corresponding to the signaling, in which case the Msg2 is a non-acknowledgement message.
[0428] In some other cases, if the random access is successful, the second device 42 can also not send the Msg2 to the third device 43, and accordingly, the third device 43 does not receive the Msg2.
[0429] The CBRA can include a two-step contention-based random access (2 step CBRA) and a 3 step CBRA.
[0430] For example, in the 2 step CBRA procedure: the third device 43 determines a resource for a contention random access procedure, and sends the Msg1 to the second device 42; and if the random access is successful, the second device 42 sends the Msg2 to the third device 43.
[0431] The Msg1 can include identification information of the third device 43 and / or other upper layer data. The Msg1 can also include a random identification (Random ID) generated by the third device 43.
[0432] The Msg2 can include an acknowledgement message or a non-acknowledgement message. For example, after the second device 42 receives the Msg1, if the random access is successful, the second device 42 can send a random access response to the third device 43 to acknowledge that the random access procedure has been completed, in which case the Msg2 is an acknowledgement message. For another example, after the second device 42 receives the Msg1, if the random access is successful, the second device 42 can send signaling to the third device 43 to make the third device 43 perform a task corresponding to the signaling, in which case the Msg2 is a non-acknowledgement message.
[0433] In some other cases, if the random access is successful, the second device 42 can also not send the Msg2 to the third device 43, and accordingly, the third device 43 does not receive the Msg2.
[0434] For example, in the 3-step CBRA procedure: the third device 43 determines the resource for the contention-based random access procedure, and sends Msg1 to the second device 42; the second device 42 sends Msg2 to the third device 43; and if the contention is resolved, the third device 43 sends Msg3 to the second device 42.
[0435] In this case, Msg1 can include a Random ID generated by the third device 43, but does not include other upper-layer data.
[0436] In this case, Msg2 can include a Random ID. Correspondingly, after receiving Msg2, the third device 43 determines whether the Random IDs in Msg1 and Msg2 are the same; if they are the same, it indicates that the contention is resolved, and then the third device 43 sends Msg3 to the second device 42.
[0437] In this case, Msg3 can include the identification information of the third device 43.
[0438] In some cases, after receiving Msg3, the second device 42 can send Msg4 to the third device 43; correspondingly, the third device 43 receives Msg4.
[0439] In this case, Msg4 can include an acknowledgement message or a non-acknowledgement message. For example, after receiving Msg3, the second device 42 can send a random access response to the third device 43 to confirm that the random access procedure is completed, in which case Msg4 is an acknowledgement message. For another example, after receiving Msg3, the second device 42 can send a signaling to the third device 43 to make the third device 43 perform a task corresponding to the signaling, in which case Msg4 is a non-acknowledgement message.
[0440] In this case, the third device can determine whether the random access is completed according to Msg2 or Msg4. For example, if Msg2 includes a non-acknowledgement message, it is determined that the random access is not completed; if Msg2 includes an acknowledgement message, it is determined that the random access is completed; or if Msg2 is not received, it is determined that the random access is not completed or is completed. For another example, if Msg4 includes a non-acknowledgement message, it is determined that the random access is not completed; if Msg4 includes an acknowledgement message, it is determined that the random access is completed; or if Msg4 is not received, it is determined that the random access is not completed or is completed.
[0441] It should be noted that the above-mentioned three types of random access are only examples, and other different types of random access can also be used in actual applications, which are not limited in the embodiments of the present application.
[0442] In some embodiments, the format of the paging message can be a Medium Access Control Protocol Data Unit (MAC PDU) structure of a medium access control layer or a control element (CE) of the MAC.
[0443] For example, referring to FIG. 5, a schematic diagram of protocol layers is provided in an embodiment of the present application. As an example but not limitation, as shown in FIG. 5, the protocol layers on the UE side can include a non-access stratum (NAS), an RRC layer, a packet data convergence protocol (PDCP) layer, a radio link control (RLC) layer, a MAC, and a physical layer (PHY). The protocol layers on the base station side can include an RRC, a PDCP, an RLC, a MAC, and a PHY. The protocol layers on the core network side can include an NAS.
[0444] In the protocol layers shown in FIG. 5, the format of the paging message can be a MAC CE or a MAC PDU.
[0445] In other embodiments, the communication of the environmental Internet of Things can introduce a new protocol layer A-IoT layer. In this case, the format of the paging message can be a CE of the A-IoT layer.
[0446] For example, referring to FIG. 6, a schematic diagram of protocol layers is provided in another embodiment of the present application. As an example but not limitation, as shown in FIG. 6, the protocol layers on the environmental Internet of Things device side can include an NAS, an A-IoT layer, a MAC, and a PHY. The protocol layers on the reader side can include an A-IoT layer, a MAC, and a PHY. The protocol layers on the core network side can include an NAS.
[0447] It can be seen that a new protocol layer A-IoT layer is added in the upper layer of the MAC.
[0448] In the protocol layers shown in FIG. 6, the format of the paging message can be a CE of the A-IoT layer.
[0449] It should be noted that FIG. 5 and FIG. 6 are only examples of protocol layers, and other protocol layer structures can also exist in actual applications, which are not limited in the embodiments of the present application.
[0450] The computer device related to the embodiments of the present application is described below.
[0451] FIG. 7 is a structural schematic diagram of a computer device provided by an embodiment of the present application, which can be the first device 41, the second device 42 or the third device 43 shown in FIG. 4. Referring to FIG. 7, the computer device comprises at least one processor 701, a communication bus 702, a memory 703 and at least one communication interface 704.
[0452] The processor 701 can be a microprocessor (including a central processing unit (CPU) and the like), an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling program execution of the scheme of the present application.
[0453] The communication bus 702 can comprise a path for transmitting information between the above-mentioned components.
[0454] The memory 703 can be a read-only memory (ROM), a random access memory (RAM), an electrically erasable programmable read-only memory (EEPROM), an optical disk (including a compact disc read-only memory (CD-ROM), a compact disk, a laser disk, a digital versatile disk, a Blu-ray disk and the like), a magnetic disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program codes in the form of instructions or data structures and capable of being accessed by a computer, but is not limited thereto. The memory 703 can exist independently and be connected to the processor 701 through the communication bus 702. The memory 703 can also be integrated with the processor 701.
[0455] The communication interface 704 uses any transceiver-like device for communicating with other devices or communication networks, such as an Ethernet, a radio access network (RAN), a wireless local area network (WLAN) and the like.
[0456] As an example, the processor 701 can comprise one or more CPUs, such as CPU0 and CPU1 shown in FIG. 7.
[0457] As an example, the computer device can include multiple processors, such as processor 701 and processor 705 as shown in FIG. 7. Each of the processors can be a single-core processor or a multi-core processor. The processor herein can refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0458] As an example, the computer device can also include an output device 706 and an input device 707. The output device 706 is in communication with the processor 701 and can display information in various ways. For example, the output device 706 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, a projector, or the like. The input device 707 is in communication with the processor 701 and can receive user input in various ways. For example, the input device 707 can be a mouse, a keyboard, a touch screen device, a sensor device, or the like.
[0459] The memory 703 is configured to store program code 710 for implementing the solutions of the present application, and the processor 701 is configured to execute the program code 710 stored in the memory 703. The computer device can implement the communication method provided in the embodiments below by means of the processor 701 and the program code 710 in the memory 703.
[0460] The embodiments of the present application do not particularly limit the specific structure of the execution subject of the communication method, as long as the code recording the communication method provided by the embodiments of the present application can be run to process according to the communication method provided by the embodiments of the present application. For example, the execution subject of the communication method provided by the embodiments of the present application can be a functional module in the computer device that can call and execute programs, or can be a processing device applied to the computer device, such as a chip, etc.
[0461] In the communication mechanism of the environmental Internet of Things, how to make the reader repeatedly or continuously trigger the same task for the same core network task is a problem that needs to be solved at present.
[0462] The communication method provided by the embodiments of the present application will be explained and described in detail below.
[0463] In the embodiments of the present application, the same task can be triggered by the first device or the second device. The following will be described in two cases.
[0464] In an embodiment of triggering the same task by the first device, referring to FIG. 8, which is a flowchart of a communication method for triggering the same task by the first device according to an embodiment of the present application. As shown in FIG. 8, the communication method can include the following steps:
[0465] S801, the first device sends a first message to the second device, the first message being used to instruct the second device to perform a preset task, wherein the first message includes first information, and the first information is used to identify the first preset task.
[0466] In an embodiment, the first message can be triggered by a target demand. For example, the target demand can be inventory or reading, writing, activation, deactivation, or other signaling. The target demand can be generated by the first device itself, or can be generated by the first device according to a message received from another device. The first preset task can be the target demand.
[0467] The first message can include the identification information of the third device that needs to perform the target demand, the specific target demand that needs to be performed, such as inventory or reading, writing, activation, deactivation, etc., the identification information of the second device that needs to perform the target demand, and the related identification information of the first preset task that needs to be performed.
[0468] The first information is used to identify the first preset task, which can be the related identification information of the first preset task. The first information can be the identification information of the first preset task, or the identification information of the message corresponding to the first preset task, or the identification information of the flow corresponding to the first preset task.
[0469] In an embodiment, the first message can be the first preset task itself, which is used to identify that the first message is to make the second device perform the first preset task, wherein the first preset task is an AF or CN request.
[0470] The second device is a reader, and the first device can be a control node of the reader.
[0471] In an embodiment, as shown in FIG. 2, in topology 1, when the first device is an AF and the second device is a base station, the first message can be generated by the first device itself. In this case, the first device sends the first message to the second device through an A-IoT controller. Specifically, the first device sends the first message to the A-IoT controller, and the A-IoT controller sends the first message to the second device.
[0472] In another example, as shown in FIG. 2, in topology 1, when the first device is a CN (A-IoT controller) and the second device is a base station, the first message can be generated by an AF and sent to the first device. In this case, the AF sends the first message to the first device, and the first device sends the first message to the second device.
[0473] In another example, as shown in FIG. 3, in topology 2, when the first device is the AF and the second device is the UE, the first message can be generated by the AF and sent to the first device. In this case, the first device sends the first message to the second device through the base station. Specifically, the AF sends the first message to the first device, the first device sends the first message to the base station, and the base station sends the first message to the UE after establishing an RRC connection with the UE.
[0474] In another example, as shown in FIG. 3, in topology 2, when the first device is the CN (A-IoT controller) and the second device is the UE, the first message can be generated by the AF and sent to the first device. In this case, the first device sends the first message to the second device through the base station. Specifically, the AF sends the first message to the first device, the first device sends the first message to the base station, and the base station sends the first message to the UE after establishing an RRC connection with the UE.
[0475] In another example, as shown in FIG. 3, in topology 2, when the first device is the base station and the second device is the UE, the first message can be generated by the AF or the CN and sent to the first device. In this case, the first device sends the first message to the second device through the base station. Specifically, the AF sends the first message to the first device, the first device sends the first message to the base station, and the base station sends the first message to the UE after establishing an RRC connection with the UE.
[0476] In the embodiments of the present application, different target requirements correspond to different first messages, and correspond to different first preset tasks.
[0477] For example, if the target requirement is inventory, the first message is inventory, and the first preset task is an inventory task. If the target requirement is to read data, the first message is a read signaling, and the first preset task is a read task. If the target requirement is to write data, the first message is a write signaling, and the first preset task is a write signaling.
[0478] In the embodiments of the present application, the identification information of the first preset task is used to indicate the same target requirement. For example, when the first message is inventory, the target requirement is inventory, and the identification information of the first preset task is used to indicate the same inventory task. When the first message is a read signaling, the target requirement is to read data, and the identification information of the first preset task is used to indicate the same read task. When the first message is a write signaling, the target requirement is to write data, and the identification information of the first preset task is used to indicate the same write task.
[0479] Optionally, according to the different target requirements, the identification information of the first preset task can be in different forms.
[0480] For example, when the target requirement is inventory, the initial message sent by the second device to the third device can be a paging message, and the third device triggers a random access procedure after receiving the paging message. In the random access procedure, the third device reports its own identification information, so that the first device performs inventory according to the received identification information of the third device. In this case, the paging message is used to indicate the first preset task, and the paging message can include a flow ID used to identify different paging messages. The flow ID can be used as the identification information of the first preset task. The identification information of the first preset task is generated by the first device.
[0481] For example, when the target requirement is read-write signaling, the second device sends a paging message to the third device, and the third device triggers a random access procedure according to the paging message. After the random access between the second device and the third device is successful, the second device sends read signaling to the third device. In this case, the paging message is only used to trigger the random access procedure and is not used to indicate the first preset task. A separate identification information can be set for the read signaling as the identification information of the first preset task. When the paging message includes read-write signaling, the paging message is used to indicate the first preset task, and the paging message can include a flow ID used to identify different paging messages. The flow ID can be used as the identification information of the first preset task.
[0482] For example, regardless of whether the target requirement is inventory or a downlink command, the target requirement corresponds to a flow, and the message corresponding to the flow can include the identification information of the first preset task.
[0483] S802, after the second device receives the first message, the second device performs the first preset task.
[0484] In the embodiments of the present application, the first device can instruct the second device to perform a preset task according to the first message. In this case, the first device and the second device can identify the same preset task according to the first information in the first message, and subsequently communicate according to the first information, thereby facilitating the repeated or consecutive processing of the same preset task by the first device and the second device and improving the communication efficiency.
[0485] Taking the AF as the first device as an example, referring to FIG. 9, which is a schematic diagram of a communication flow of the AF triggering the same task provided in the embodiments of the present application. As shown in FIG. 9, the communication flow of the AF triggering the same task can include the following steps:
[0486] S901, the first device sends a first message to the second device through a CN.
[0487] The first message includes first information, the first information is used to indicate a preset task, and the first information is identification information of the first preset task.
[0488] Specifically, the first device sends a first message to the CN, and the CN sends the first message to the second device.
[0489] S902, the second device sends a second message to the first device through the CN.
[0490] Optionally, the first message can further include a first preset task. Correspondingly, after receiving the first message, the second device obtains the specific content of the first preset task from the first message, and then executes the first preset task.
[0491] The second message is used to indicate the execution result of the first preset task.
[0492] In one example, the first message is an inventory, and the process of executing the first preset task can include: the second device sends a paging message to one or more third devices; the third device responds after receiving the paging message; and the second device sends a second message to the first device according to the received response. In this case, the second message can include the number of responding third devices and / or the identification information of the responding third devices.
[0493] In another example, the first message is a read signaling, and the process of executing the first preset task can include: the second device sends a paging message to one or more third devices, and the third device triggers a random access process after receiving the paging message; after the random access succeeds, the second device sends a read signaling to the third device; and the third device reads data according to the read signaling, and can send the read data to the second device after reading is completed. In this example, the specific content of the first preset task included in the first message can include the type and name of the data to be read. In this case, the second message can include the read data. The second message can also include the identification information of the third device that sends the read data.
[0494] In another example, the first message is a write signaling, and the process of executing the first preset task can include: the second device sends a paging message to one or more third devices, and the third device triggers a random access process after receiving the paging message; after the random access succeeds, the second device sends a write signaling to the third device; and the third device writes data according to the write signaling, and can send a write completion response to the second device after writing is completed. In this example, the specific content of the first preset task included in the first message can include the specific data to be written. In this case, the second message can include the write completion response and / or the identification information of the third device. The write signaling can be included in the paging message, so that the writing and the write completion response can be completed in the random access process.
[0495] Optionally, the first information can be included in the paging message sent by the second device to the third device. Accordingly, after receiving the paging message, the third device determines whether the paging is a repeated paging according to the first information. If the paging is a new paging, the third device responds to the paging. If the paging is a repeated paging, the third device can ignore or respond to the paging according to a preset condition.
[0496] It can be understood that in the read / write signaling scenario, after the third device ignores the paging, the second device no longer sends read / write signaling to the third device.
[0497] The case where the third device does not respond can include that the third device is charging, leaves the communication area, or the third device ignores the paging according to the first information.
[0498] In this way, the third device can reduce repeated pings according to the first information, thereby helping to reduce the power consumption of the third device.
[0499] S903, the first device determines whether the first preset task is completed according to the second message.
[0500] If the first preset task is not completed, S904 is performed; if the first preset task is completed, S906 is performed.
[0501] Optionally, the second message can include the response of the third device received by the second device. In this case, the first device determines the number of third devices that perform the first preset task according to the second message, and determines whether the first preset task is completed according to the statistical result.
[0502] Optionally, the second message can also be statistical data obtained by the second device after counting the responses of the third devices received by the second device. In this case, after receiving the second message, the first device does not need to count, and directly determines whether the first preset task is completed.
[0503] Optionally, the second message can also be a result of whether repeated paging is needed obtained by the second device after counting the responses of the third devices received by the second device. In this case, after receiving the second message, the first device determines whether to perform repeated paging according to the judgment of itself.
[0504] In one case, the first device can send the first message to one or more second devices, and the plurality of second devices perform the first preset task indicated by the first message respectively.
[0505] The second message can include the first information, which is used to identify the execution result of the first preset task.
[0506] Optionally, the second message can comprise identification information of the responding third device. Correspondingly, determining whether the first preset task is completed can comprise: counting the number of the identification information of the third device in the second message; and determining that the first preset task is not completed if the number is less than a preset number.
[0507] Optionally, the second message can comprise second information, which is identification information of the second device. Correspondingly, determining whether the first preset task is completed can comprise: counting the number of responses of the third device received by each second device according to the identification information of the second device; and determining that the first preset task is not completed if the number of responses of the third device received by any one second device is less than a preset number.
[0508] It can be understood that, in the case where a plurality of second devices perform the first preset task, the third devices required to be paged by different second devices can be the same or different, and the first device can determine whether the first preset task is completed according to the statistical results of the plurality of second devices. The first device can select to perform S904 to the first device of a specific incomplete preset task according to whether the first preset task is completed.
[0509] S904, if the preset task is not completed, the first device sends a third message to the second device through the CN.
[0510] Optionally, the third message can comprise the first information.
[0511] Exemplarily, the first message comprises the first information and / or the specific content of the first preset task, wherein the first information can be identification information of the first preset task or the specific content of the first preset task. In this case, when the first message comprises the identification information of the first preset task, the second device receives the first message, obtains the specific content of the first preset task from the first message and performs the first preset task; the second device can save the specific content of the first preset task and the first information; when the second device receives the third message, the second device obtains the saved specific content of the first preset task according to the first information in the third message, and repeatedly performs the first preset task. The third message can comprise identification information related to the first preset task and identification information of the second device required to perform the first preset task, and if it is group inventory or group paging, the device group ID to which the third device belongs needs to be included; the specific content of the first preset task required to be performed does not need to be included. The third message can further comprise indication information of repeatedly performing the first preset task indicated by the first information.
[0512] It can be understood that the third message indicates the same preset task as the first message. In embodiments of the present application, the first device can instruct the second device to perform the first preset task according to the third message. In this case, the first device and the second device can identify the same preset task according to the first information in the third message, and subsequently communicate in accordance therewith, thereby facilitating repeated or consecutive processing of the same preset task by the first device and the second device and improving communication efficiency.
[0513] Optionally, the third message can include third information for instructing to perform the first preset task identified by the first information.
[0514] For example, the first information included in the first message and the third information included in the third message are in different information forms, but the preset tasks indicated by the first information and the third information are the same. In this case, after the second device receives the third message, it identifies that the third information is the same as the first information, and then obtains the specific content of the first preset task corresponding to the first information and performs repetition. The first information and the third information included in the third message can be included in the third message. The first information is used to identify the first preset task, and the third information is used to instruct to perform the first preset task identified by the first information. The first preset task is the first preset task identified by the first information previously received by the second device. When the third information instructs not to perform the previously received first preset task, it means that the third message is a new message, the first preset task identified by the first information is a new task, and is not a repeated task of the previously received first preset task. After receiving the third information, the second device will perform a new process or send a new sixth message. The third device considers that the sixth message is an initial message or a first message of the first preset task, and then responds. The first message can also carry the third information, which is used to identify that the first message is an initial message or a repeated message of the first preset task. The initial message is the first message of the first preset task, and the repeated message is a repeated message of the first preset task.
[0515] It can be understood that the third information is used to identify whether the first preset task is a new task or a repeated task. In embodiments of the present application, the first device can instruct the second device to perform the first preset task according to the third message. In this case, the first device and the second device can identify the same preset task according to the third information in the third message, and subsequently communicate in accordance therewith, thereby facilitating repeated or consecutive processing of the same preset task by the first device and the second device and improving communication efficiency.
[0516] In some examples, the second device can determine whether the first preset task has been performed according to the third information. If the first preset task has been performed, it can determine whether the first preset task needs to be repeated according to the first preset condition.
[0517] Optionally, the third message can comprise the first information and the second preset task.
[0518] In one case, the previous preset task has been completed, and the identification information of the completed preset task is reused. In this case, the message sent by the first device to the second device comprises the identification information of the reused preset task and the new preset task.
[0519] For example, after receiving the third message, the second device identifies the first information, and determines whether the first preset task corresponding to the saved first information and the second preset task in the third message are the same task. If they are different tasks, the second device executes the second preset task.
[0520] S905, the second device sends a fifth message to the first device through the CN.
[0521] The fifth message is used to indicate the execution result of the first preset task. The fifth message is sent in the same way as the second message, and details can be referred to the description in the embodiment of S902, which will not be repeated here.
[0522] Optionally, the second message can comprise second information, which is the identification information of the second device.
[0523] It can be understood that after the first device receives the fifth message, it determines whether the first preset task is completed according to the fifth message. If it is completed, S906 is executed. If it is not completed, the first device continues to send a message to the second device for indicating the execution of the first preset task. The step of determining whether the first preset task is completed according to the fifth message is the same as the step of determining whether the first preset task is completed according to the second message, and details can be referred to the description in the embodiment of S903, which will not be repeated here.
[0524] S906, the first device sends a fourth message to the second device through the CN.
[0525] The fourth message is used to indicate the end of the first preset task.
[0526] In one case, the first device determines that the first preset task has been completed according to the second message, and then sends the fourth message to the second device.
[0527] In one case, the second device can autonomously trigger the repeated execution of the first preset task. In this case, the first device can instruct the second device to end the first preset task through the fourth message, and correspondingly, the second device stops the repeated execution of the first preset task after receiving the fourth message.
[0528] In this case, the second device can return the execution result of each execution of the first preset task to the first device, or can return the execution result of the last execution to the first device after receiving the fourth message, or can send the statistical result of the respective execution results of the multiple executions of the first preset task to the first device after receiving the fourth message.
[0529] It can be understood that if the second device has ended the first preset task, the first device can no longer send the fourth message to the second device.
[0530] In one embodiment, the first message further comprises one or more of the following: a preset number of times, a preset time length, a preset number, second information, and fourth information. The preset number of times is used to indicate the number of times of executing the first preset task; the preset time length is used to indicate the time of executing the first preset task; the preset number is used to indicate the number of third devices corresponding to the first preset task; the second information is the identification information of the second device; and the fourth information is the identification information of the third device.
[0531] In one example, the first message comprises the preset number of times. After receiving the first message, in the case that the second device can autonomously trigger repeated execution of the first preset task, the second device determines whether the number of repeated executions of the first preset task currently reaches the preset number of times; if the preset number of times is reached, the repeated execution of the first preset task is stopped.
[0532] In this case, the second device can return the execution result of each execution of the first preset task to the first device, or can return the execution result of the last execution to the first device after reaching the preset number of times, or can send the statistical result of the respective execution results of the multiple executions of the first preset task to the first device after reaching the preset number of times.
[0533] In another example, the first message comprises the preset time length. After receiving the first message, in the case that the second device can autonomously trigger repeated execution of the first preset task, the second device determines whether the time of executing the first preset task reaches the preset time length; if the preset time length is reached, the repeated execution of the first preset task is stopped.
[0534] The time of executing the first preset task can refer to the time interval between the time when the second device first sends a paging message to the third device after receiving the first message and the current time.
[0535] The repeatedly performing the first preset task can be periodically performing the first preset task according to a certain time length, and the performing the first preset task can be sending a paging message (which can be referred to as an initial message, or a message for triggering random access, or a message for initiating random access by the third device) to the second device.
[0536] In this case, the second device can return the execution result of each execution of the first preset task to the first device, or the second device can return the execution result of the last execution to the first device after a preset time length, or the second device can send the statistical result to the first device according to the execution results of multiple executions of the first preset task.
[0537] In another example, the first message includes a preset number. After receiving the first message, the second device performs the first preset task, and determines whether the number of responses received from the third device is the preset number. If yes, the second device ends the first preset task and sends a second message to the first device. If no, the second device repeatedly performs the first preset task.
[0538] For example, the target requirement is inventory, the total number of the third devices for inventory is 100, and the preset number is set to 100. If the number of responses received from the third device by the second device does not reach 100, the second device repeatedly performs the inventory.
[0539] For another example, the target requirement is inventory, the total number of the third devices for inventory is 100, and the preset number is set to 80. If the number of responses received from the third device by the second device does not reach 80, it means that a certain proportion of paging is not completed, and the second device repeatedly performs the inventory. If the number of responses received from the third device by the second device reaches 80, it means that a certain proportion of paging is completed, and the second device ends the first preset task and sends a second message to the first device.
[0540] In the above examples, ending the first preset task can mean that the second device stops sending messages to the third device, and / or the second device sends a second message to the first device.
[0541] Optionally, the second message can include indication information for indicating the end of the task. After the second device ends the first preset task, the second device sends a second message to the first device. Correspondingly, after the first device receives the second message, the first device determines that the second device has ended the first preset task according to the indication information in the second message. Alternatively, after the second device receives an indication from the first device to end the first preset task, the second device can send a feedback through the second message to confirm that the first preset task has been ended.
[0542] In the above examples, the first device can limit the condition for the second device to repeatedly perform the first preset task by the preset number of times, the preset number, and / or the preset time length, effectively reducing the situation that the second device cannot jump out of repeated execution, and helping to improve the reliability of communication.
[0543] In another example, the first message includes second information. After receiving the first message, the second device determines whether the second information in the first message is consistent with the identification information of the second device; if consistent, the second device performs the first preset task indicated by the first message; if not consistent, the second device ignores the first message.
[0544] In this example, the first device can instruct part of the second device to perform the first preset task according to the second information, which helps to improve the flexibility of communication.
[0545] In another example, the first message includes fourth information. After receiving the first message, the second device sends a paging message to a third device corresponding to the fourth information.
[0546] In this example, the first device can instruct the second device to send a paging message to part of the third device according to the fourth information, which helps to improve the flexibility of communication.
[0547] In one embodiment, the third message further includes one or more of the following: a preset number of times, a preset time length, a preset number, second information, and fourth information.
[0548] It can be understood that the implementation manner and effect of the third message including the above information are the same as those of the first message including the above information, and specific descriptions can be referred to the descriptions in the above examples, which will not be repeated here.
[0549] Taking a CN (such as an A-IoT controller) as an example of the first device, referring to FIG. 10, which is a schematic diagram of a communication process of triggering a same task by a CN according to an embodiment of the present application. As shown in FIG. 10, the communication process of triggering a same task by a CN can include the following steps:
[0550] S1001, the first device sends a first message to a second device.
[0551] S1002, the second device sends a second message to the first device.
[0552] S1003, the first device determines whether a first preset task is completed according to the second message.
[0553] S1004, if the preset task is not completed, the first device sends a third message to the second device.
[0554] S1005, the second device sends a fifth message to the first device.
[0555] S1006, the first device sends a fourth message to the second device.
[0556] In the communication flow described in FIG. 10, the first device can directly interact with the second device, and other implementation manners are the same as those of the communication flow described in FIG. 9. For details, refer to the description in the embodiment of FIG. 9, which will not be repeated here.
[0557] It can be learned that in the communication flow described in FIG. 9, the AF acts as the first device and triggers the same task, and the CN can be used to forward the signaling sent by the first device to the second device and forward the information reported by the second device to the first device. In the communication flow described in FIG. 10, the CN acts as the first device and triggers the same task. It can be understood that in the case where the CN acts as the first device, the AF sends the inventory or other signaling to the CN, and after the CN receives the inventory or other signaling sent by the AF, S1001-S1006 are performed. The first message can be the inventory or other signaling sent by the AF to the CN, or a message including identification information of the preset task corresponding to the inventory or other signaling, which is generated by the CN according to the inventory or other signaling sent by the AF.
[0558] In an embodiment in which the second device triggers the same task, referring to FIG. 11, which is a flowchart of a communication method for triggering the same task by the second device according to an embodiment of the present application. As shown in FIG. 11, the communication method can include the following steps:
[0559] S1101, the second device sends a sixth message to one or more third devices, to instruct the third device to respond according to the sixth message.
[0560] The sixth message is associated with the preset task, and the sixth message can include fifth information including a preset identifier, which is used to identify the preset task. The identification information included in the first message sent by the first device to the second device and the identification information included in the sixth message can be the same identification information or identification information having a mapping relationship. For example, the identification information included in the first message or the third message is first CN identification information, and the identification information included in the sixth message or the seventh message is first AS identification information, wherein the first AS identification information corresponds to the first CN identification information and is associated with the first preset task indicated by the first CN identification information. The identification information is used to identify the first preset task, and can be related identification information of the first preset task. The first information can be identification information of the first preset task, or identification information of a message corresponding to the first preset task, or identification information of a flow corresponding to the first preset task.
[0561] In one embodiment, the sixth message can be triggered by a target demand. For example, the target demand can be inventory or read, write, activation, deactivation, or other signaling. The target demand can be generated by the second device itself, or can be generated by the second device according to a message sent by another device.
[0562] As an example of the second device generating the sixth message according to a message sent by another device, the first device sends a first message to the second device; the second device generates the sixth message according to the first information in the first message, and sends the sixth message to the third device. It can be understood that in this example, the target demand is sent by another device to the second device, the first message and the sixth message are different, but the tasks indicated by the first message and the sixth message are the same.
[0563] As another example of the second device generating the sixth message by itself, the second device has a target demand, in which case the second device generates the sixth message according to the target demand of itself, and sends the sixth message to the third device. For example, the second device needs to read data from the third device, in which case the second device generates the sixth message of the read task.
[0564] Optionally, the sixth message can be a paging message.
[0565] For example, in the case of the target demand being inventory, the second device sends the sixth message to the third device, and the sixth message can be a paging message. For another example, in the case of the target demand being read / write signaling, the second device sends the sixth message to the third device, and the sixth message can be a paging message for triggering a random access process; after the random access process between the second device and the third device is completed, the second device sends read / write signaling to the third device.
[0566] Optionally, the sixth message can be signaling.
[0567] For example, in the case of the target demand being read / write signaling, the second device sends a paging message to the third device for triggering a random access process; after the random access process between the second device and the third device is completed, the second device sends the sixth message to the third device, and the sixth message is read / write signaling.
[0568] Optionally, the sixth message can include second information, which is identification information of the second device. The third device can determine which second device sends the sixth message and to which second device a response needs to be replied according to the second information in the sixth message.
[0569] Optionally, the sixth message can comprise fourth information, the fourth information being identification information of the third device. In this case, the third device can determine whether to respond according to the fourth information in the sixth message. The second device can selectively page part of the third devices according to the fourth information, and correspondingly, the third device can determine whether to respond according to the fourth information.
[0570] Optionally, the sixth message can comprise sixth information.
[0571] When the sixth information is a preset value, it indicates that the preset task indicated by the sixth message is performed for the first time, i.e., the initial message of the first preset task; when the sixth information is not the preset value, it indicates that the preset task indicated by the sixth message is repeatedly performed, i.e., the repeated message of the first preset task.
[0572] For example, the sixth information can be a flag bit. When the flag bit is 0, it indicates that the preset task indicated by the sixth message is newly transmitted, i.e., performed for the first time; when the flag bit is 1, it indicates that the preset task indicated by the sixth message is retransmitted, i.e., repeatedly performed. For another example, when the flag bit is 0, it indicates that the preset task indicated by the sixth message is newly transmitted; when the flag bit is not 0, it indicates that the preset task indicated by the sixth message is repeatedly performed.
[0573] S1102, the third device determines whether to respond according to the sixth message.
[0574] According to different tasks indicated by the sixth message, the response of the third device to the sixth message is also different.
[0575] For example, in the case where the sixth message is a paging message, the third device triggers a random access process after receiving the paging message. In the random access process, the third device reports its own identification information. In this case, the response of the third device to the sixth message is the identification information of the third device.
[0576] For another example, in the case where the sixth message is a read signaling, the response of the third device to the sixth message can be reading relevant data according to the read signaling and sending the read data to the second device.
[0577] For another example, in the case where the sixth message is a write signaling, the response of the third device to the sixth message can be writing relevant data according to the write signaling. Optionally, after writing the data, the third device can return a response indicating that the data has been written to the second device.
[0578] Optionally, the manner of determining whether to respond can be: the third device determines whether the sixth message has been received; if the sixth message has not been received, and / or, the device identifier included in the sixth message is compared, if the identifier information of the third device is within the device identifier included in the sixth message, or the device identifier is not included in the sixth message, then the third device responds; if the sixth message has been received, whether the random access process corresponding to the preset task of the sixth message has been completed can be determined, if the random access process has been completed, the third device responds, if the random access process has not been completed, the third device ignores the sixth message and does not respond.
[0579] For example, in the case where the sixth message is a paging message, if the third device has received the sixth message, the third device ignores the current paging; if the third device has not received the sixth message, the third device sends the identifier information of the third device to the second device.
[0580] For another example, in the case where the sixth message is a read signaling, if the third device has received the sixth message, the third device ignores the read signaling; if the third device has not received the sixth message, the third device performs the read task corresponding to the read signaling and sends the read data to the second device.
[0581] For another example, in the case where the sixth message is a write signaling, if the third device has received the sixth message, the third device ignores the write signaling; if the third device has not received the sixth message, the third device performs the write task corresponding to the write signaling. Optionally, after the write data is written, the third device can return a response indicating that the write has been completed to the second device.
[0582] Optionally, in the case where the sixth message can include the fourth information, after the third device receives the sixth message, the third device determines whether the fourth message includes the identifier information of the third device; if the fourth message includes the identifier information of the third device, the third device determines to respond; if the fourth message does not include the identifier information of the third device, the third device ignores the sixth message.
[0583] In this case, the third device can determine whether to respond according to the fourth information in the sixth message, so that the second device selectively pages some of the third devices.
[0584] Optionally, in the case where the sixth message includes the sixth information, if the sixth information is a preset value, the third device determines to respond; if the sixth information is not the preset value, whether the random access process corresponding to the preset task of the sixth message has been completed can be determined, if the random access process has been completed, the third device ignores the sixth message, if the random access process corresponding to the preset task of the sixth message has not been completed, the third device responds to the sixth message.
[0585] Optionally, the manner of determining whether to respond can be: if the random access process between the second device and the third device corresponding to the task indicated by the preset identifier in the sixth message has not been completed, responding; if the random access process between the second device and the third device corresponding to the task indicated by the preset identifier in the sixth message has been completed, ignoring the sixth message.
[0586] For example, in the case where the sixth message is a paging message, if the random access process between the second device and the third device corresponding to the task indicated by the preset identifier in the sixth message has not been completed, sending the identification information of the second device to the second device; if the random access process between the second device and the third device corresponding to the task indicated by the preset identifier in the sixth message has been completed, ignoring the paging.
[0587] It can be understood that, in the case where the sixth message is a read / write signaling, the second device first sends a paging message to the third device, and the third device, after receiving the paging message, triggers a random access process. If the random access process has not been completed, the second device continues to page the third device; when the random access between the second device and the third device has been completed, the second device sends the sixth message, which is a read / write signaling, to the third device.
[0588] It should be noted that the above two manners of determining whether to respond can be executed alternatively or in parallel.
[0589] In the embodiments of the present application, the second device can instruct the third device to respond according to the sixth message, in which case the second device and the third device can identify the same task according to the first information in the sixth message, and subsequently communicate according to the same task, thereby facilitating the repeated or consecutive processing of the same task by the second device and the third device.
[0590] For example, referring to FIG. 12, it is a communication flow diagram of the second device triggering the same task according to an embodiment of the present application. As shown in FIG. 12, the communication flow of the second device triggering the same task can include the following steps:
[0591] S1201, the second device sends a sixth message to one or more third devices.
[0592] S1202, the third device determines whether to respond according to the sixth message.
[0593] Steps S1201-S1202 are the same as steps S1101-S1102, and specific descriptions can be referred to the descriptions in the embodiments of steps S1101-S1102, which will not be repeated here.
[0594] In some cases, the third device can receive messages sent by multiple second devices, and the messages all include the first information. In other words, the tasks indicated by the messages sent by the multiple second devices are the same. In this case:
[0595] In one implementation, the third device replies to each second device.
[0596] In another implementation, the third device replies to any one second device and ignores the messages sent by other second devices and including the first information.
[0597] In yet another implementation, the third device selects a second device corresponding to a message including the AS ID and the first information to reply to, the AS ID is an ID for the third device to communicate with the second device and used by the second device to identify the third device, which can be a device identifier of the third device. When multiple third devices send messages and the messages correspond to the same preset task, the third device selects a second device with the AS ID to respond to, and ignores the messages sent by other second devices and including the first information. If the sixth message includes the AS ID, it indicates that the random access process between the second device corresponding to the sixth message and the third device has been completed, or that the second device corresponding to the sixth message has communicated with the third device not long ago, or that the communication between the second device corresponding to the sixth message and the third device is relatively reliable or efficient.
[0598] S1203, if the third device responds, the third device sends an eighth message to the second device.
[0599] The eighth message is used to indicate the response.
[0600] Optionally, the eighth message can include identification information of the third device.
[0601] In one example, the second device sends a sixth message to multiple third devices. For each third device, it is determined whether to respond according to the received sixth message; if the third device responds, it sends an eighth message including identification information of the third device to the second device. Correspondingly, the second device can determine which third devices have replied to the response according to the identification information of the third device in the eighth message if it receives the eighth message sent by the third device.
[0602] S1204, the second device determines whether a first preset condition is met.
[0603] Optionally, the first preset condition can include at least one of the following: receiving a third message sent by the first device; the number of the third devices that have responded is inconsistent with a preset number; not receiving a response of a target device in the one or more third devices; detecting a collision in a random access process; detecting a failure in a random access process.
[0604] In one example, as described in the embodiments of FIG. 9 and FIG. 10, in the case that the same task is triggered by the first device, the first device sends a third message to indicate that the first preset task is to be executed repeatedly. In this case, the second device determines that the first preset condition is met.
[0605] In another example, the second device counts the number of third devices that have responded according to the received responses, and determines whether the number of third devices that have responded is consistent with a preset number; if so, the second device determines that the first preset condition is met.
[0606] For example, the target requirement is inventory, the total number of third devices to be inventoried is 100, and the preset number is set to 100. If the number of eighth messages received by the second device from the third devices does not reach 100, the second device executes the inventory repeatedly.
[0607] For another example, the target requirement is inventory, the total number of third devices to be inventoried is 100, and the preset number is set to 80. If the number of eighth messages received by the second device from the third devices does not reach 80, it indicates that a certain proportion of the paging is not completed, the second device determines that the first preset condition is met, and executes the inventory repeatedly; if the number of eighth messages received by the second device from the third devices reaches 80, it indicates that a certain proportion of the paging is completed, the second device ends the inventory task.
[0608] Optionally, the preset number can be set by the second device itself. For example, in the case that the target requirement is generated by the second device itself, the second device sets the preset number according to the target requirement.
[0609] Optionally, the preset number can be sent to the second device by another device. For example, in the case that the target requirement is triggered by the first device, the first device can send the preset number to the second device.
[0610] In another example, the second device requires responses from specific third devices. In this case, if the response from a target device of the one or more third devices is not received, it is determined that the first preset condition is met. The target device refers to a specific third device of the one or more third devices.
[0611] In the above examples, optionally, the sixth message can include identification information of the target device to indicate that the target device responds. Specifically, after receiving the sixth message, the third device determines whether the identification information of the target device included in the sixth message includes its own identification information; if so, the third device determines to respond; if not, the third device ignores the sixth message. In this way, the second device can selectively page part of the third devices.
[0612] Of course, the identification information of the target device can be stored in the second device, and need not be sent to the third device. In this case, after receiving the sixth message, the third device determines whether to respond according to the sixth message; if responding, the third device sends an eighth message including the identification information of the third device to the second device; if not responding, the third device ignores the sixth message. Correspondingly, after receiving the eighth message of the third device, the second device determines whether the identification information of the target device is included in the received eighth message; if the eighth message corresponding to the identification information of any one or more target devices is not received, it is determined that the first preset condition is met.
[0613] In another example, if a conflict is detected in the random access process, or a failure is detected in the random access process, it indicates that the communication between the second device and the third device is not successfully established, and in this case, it is determined that the first preset condition is met.
[0614] In S1205, if the first preset condition is met, the second device sends a seventh message to the third device.
[0615] Optionally, the seventh message is the sixth message. In other words, if the first preset condition is met, the second device re-sends the sixth message to the third device. The content information carried by the seventh message can be consistent with or inconsistent with the content information carried by the sixth message. In the case of group paging or group inventory, the device group ID needs to be carried in the seventh message. In the case of full paging or full inventory, the device ID does not need to be carried in the seventh message. In the case of single paging or multiple paging, the device ID that has not responded to the preset task can be included in the seventh message.
[0616] Optionally, the seventh message can include first information. In other words, the seventh message and the sixth message are different messages, but the seventh message and the sixth message indicate the same preset task.
[0617] In this case, the third device can identify the same preset task according to the first information in the seventh message and the first information in the sixth message, and subsequently communicate accordingly, thereby facilitating the repeated or consecutive processing of the same preset task by the first device and the second device, and improving the communication efficiency.
[0618] Optionally, the seventh message can include second information, and the second information is the identification information of the second device. The third device can determine which second device sends the sixth message according to the second information in the seventh message, and needs to reply to which second device.
[0619] Optionally, the seventh message can comprise fourth information, the fourth information being identification information of the third device. In this case, the third device can determine whether to respond according to the fourth information in the seventh message. The second device can selectively page part of the third devices according to the fourth information, and correspondingly, the third device can determine whether to respond according to the fourth information.
[0620] Optionally, the seventh message can comprise sixth information.
[0621] After S1205, the third device can determine whether to respond according to the seventh message, which is the same as S1102, and details can be referred to the description in S1102. If it is determined to respond according to the seventh message, the third device sends a response message to the second device; if it is determined not to respond according to the seventh message, the third device ignores the seventh message.
[0622] It should be noted that in the embodiments of the present application, the second device performs a preset task once, which can be understood as that the second device sends a message carrying identification information of the preset task to the third device once. For example, in the above embodiments, the second device sends the sixth message to the third device, indicating that the second device performs the preset task indicated by the sixth message once; the second device sends the seventh message to the third device, indicating that the second device indicates the preset task indicated by the sixth message again.
[0623] In some cases, if the first preset condition is always met, the second device will repeatedly perform the task indicated by the sixth message, which will affect the subsequent communication or cause communication failure.
[0624] In order to solve the above problems, in some embodiments, a second preset condition for indicating the end of the task can be set.
[0625] Optionally, the second preset condition can comprise at least one of the following:
[0626] Condition 1: the number of times of performing the preset task reaches a preset number of times.
[0627] Optionally, the preset number of times can be set by the second device itself. For example, in the case that the target demand is generated by the second device itself, the second device sets the preset number of times according to the target demand.
[0628] Optionally, the preset number of times can be sent to the second device by other devices. For example, in the case that the first device triggers the target demand, the first device can send the preset number of times to the second device. In this case, the first message can comprise the preset number of times.
[0629] In the case that the first device triggers the preset task, the second device can return the execution result of each execution of the preset task to the first device, or return the execution result of the last execution of the preset task to the first device after the preset number of times (satisfying condition 1) is reached, or send the statistical result of the execution results of the preset task to the first device after the preset number of times (satisfying condition 1) is reached.
[0630] Optionally, the condition 1 can be judged by the second device, or the condition 1 can be judged by another device.
[0631] In one example, the condition 1 is judged by the second device, specifically: in the case that the second device repeatedly executes the preset task, the second device judges whether the number of times of repeatedly executing the preset task reaches the preset number of times; if the preset number of times is reached, the second device stops repeatedly executing the preset task.
[0632] In another example, the condition 1 is judged by another device. For example, in the case that the first device triggers the preset task, the first device can judge the condition 1. Specifically: the second device can return the execution result of each execution of the preset task to the first device; the first device judges whether the number of times of executing the preset task reaches the preset number of times after receiving the execution result returned by the second device each time; if the preset number of times is reached, the first device sends a fourth message to the second device, the fourth message being used to indicate the end of the preset task; correspondingly, after receiving the fourth message, the second device judges that the condition 2 is satisfied, and then the second device ends the preset task.
[0633] The condition 2 is that the time of executing the preset task reaches a preset time length.
[0634] Optionally, the preset time length can be set by the second device itself. For example, in the case that the target demand is generated by the second device itself, the second device sets the preset time length according to the target demand.
[0635] Optionally, the preset time length can be sent to the second device by another device. For example, in the case that the first device triggers the target demand, the first device can send the preset time length to the second device. In this case, the first message can include the preset time length.
[0636] In the case that the first device triggers the preset task, the second device can return the execution result of each execution of the preset task to the first device, or return the execution result of the last execution of the preset task to the first device after the preset time length (satisfying condition 2) is reached, or send the statistical result of the execution results of the preset task to the first device after the preset time length (satisfying condition 2) is reached.
[0637] Optionally, the second device can determine condition 2, or another device can determine condition 2.
[0638] In one example, when the second device repeatedly executes the preset task, the second device determines whether the time of executing the preset task reaches a preset time length; if the preset time length is reached, the second device stops repeatedly executing the preset task.
[0639] The time of executing the preset task can refer to a time interval between a time when the second device first sends a paging message to the third device after receiving the first message and a current time.
[0640] In another example, another device determines condition 2. For example, when the first device triggers the preset task, the first device determines condition 2. Specifically, the second device can return an execution result of each execution of the preset task to the first device; the first device determines whether the time of executing the preset task by the second device reaches a preset time length after receiving the execution result returned by the second device each time; if the preset time length is reached, the first device sends a fourth message to the second device, the fourth message being used to indicate the end of the preset task; correspondingly, after receiving the fourth message, the second device determines that condition 7 is met, and then the second device ends the preset task.
[0641] Condition 3: the number of the third devices that have been responded reaches a preset number.
[0642] Optionally, the preset number can be set by the second device itself. For example, when the target demand is generated by the second device itself, the second device sets the preset number according to the target demand.
[0643] Optionally, the preset number can be sent by another device to the second device. For example, when the first device triggers the target demand, the first device can send the preset number to the second device. In this case, the first message can include the preset number.
[0644] When the first device triggers the preset task, the second device can return an execution result of each execution of the preset task to the first device; or the second device can return an execution result of the last execution of the preset task to the first device after the number of the third devices that have been responded reaches the preset number (condition 3 is met); or the second device can send a statistical result to the first device according to the execution results of multiple executions of the preset task.
[0645] Optionally, the second device can determine condition 3, or another device can determine condition 3.
[0646] In one example, the execution result of each execution of the preset task can be counted separately. Specifically, after each execution of the preset task, the second device determines whether the number of responses of the third device received in the preset task is the preset number; if yes, the preset task is ended, and the second device sends the second message to the first device; if no, the second device repeats the execution of the preset task.
[0647] For example, the target requirement is inventory, the total number of the third device in the inventory is 100, and the preset number is set to 100. If the number of responses of the third device received by the second device does not reach 100, the second device repeats the execution of the inventory.
[0648] For another example, the target requirement is inventory, the total number of the third device in the inventory is 100, and the preset number is set to 80. If the number of responses of the third device received by the second device does not reach 80, it means that a certain proportion of the paging is not completed, and the second device repeats the execution of the inventory; if the number of responses of the third device received by the second device reaches 80, it means that a certain proportion of the paging is completed, and the second device ends the preset task.
[0649] In another example, the execution result of multiple executions of the preset task can be counted cumulatively. Specifically, after the first execution of the preset task, the second device determines whether the number of responses of the third device received in the preset task is the preset number; if the number is less than the preset number, the second device continues the second execution of the preset task, and sends the message including the fourth information and / or the sixth information to the third device that has not received the response, so that the third device determines whether to respond according to the fourth information and / or the sixth information (it can be understood that if the third device has responded to the second device in the first preset task, the third device ignores the message sent by the second device in the second preset task according to the fourth information and / or the sixth information). After the second execution of the preset task, the second device counts the sum of the number of responses of the third device received in the first and second executions of the preset task; if the sum reaches the preset number, the preset task is ended, and the second device stops sending the message to the third device; if the sum does not reach the preset number, the second device continues the third execution of the preset task, and the same is true for the subsequent executions.
[0650] In another example, condition 3 is determined by the other device. For example, in the case that the first device triggers the preset task, condition 3 can be determined by the first device. Specifically, the second device can return an execution result of each execution of the preset task to the first device (for example, the execution result includes the number of responses received from the third device); the first device determines whether condition 3 is met after receiving the execution result returned by the second device each time; if condition 3 is met, the first device sends a fourth message to the second device, the fourth message being used to indicate that the preset task is ended; correspondingly, after receiving the fourth message, the second device determines that condition 7 is met, and then the preset task is ended.
[0651] Condition 4: no response is received from any third device.
[0652] In one example, a first time period in which no response is received can be set. Specifically, the second device executes the preset task once, and sends a sixth message to one or more third devices; within the first time period after sending the sixth message, if no response is received from any third device, the preset task is ended.
[0653] In another example, a first number of times in which no response is received can be set. Specifically, after the second device executes the preset task once, if no response is received from any third device, the first count is incremented by 1; after the second device executes the preset task again, if no response is received from any third device, the first count is incremented by 1, and it is determined whether the current first count reaches the set first number of times; if yes, the preset task is ended; if no, the second device executes the preset task again, and the process is repeated.
[0654] Optionally, the first number of times can be set by the second device, or can be set by the other device.
[0655] It can be understood that whether the first number of times is reached can be determined by the second device as described in the above examples, or can be determined by the other device.
[0656] Condition 5: no conflict is detected during execution of the preset task.
[0657] In one example, a second time period in which no conflict is detected can be set. Specifically, the second device executes the preset task once, and sends a sixth message to one or more third devices; within the second time period after sending the sixth message, if no conflict is detected, the preset task is ended.
[0658] In another example, a second number of times of undetected conflict can be set. Specifically, after the second device performs a preset task once, no conflict is detected, and the second count is incremented by 1. After the second device performs the preset task again, if no conflict is still detected, the second count is incremented by 1, and it is determined whether the current second count reaches the set second number of times. If yes, the preset task is ended. If no, the second device performs the preset task again, and the process is repeated.
[0659] Optionally, the second number of times can be set by the second device or by another device.
[0660] It can be understood that the second device or another device can determine whether the second number of times is reached.
[0661] Condition 6: the ninth message is received, and the priority of the task indicated by the ninth message is higher than the priority of the currently executed task.
[0662] In one example, the task indicated by the ninth message is triggered by another device, in which case the other device sends the ninth message to the second device. For example, the first device sends the ninth message to the second device, and the second device determines whether the priority of the task indicated by the ninth message is higher than the priority of the currently executed task. If yes, the current preset task is ended.
[0663] In another example, the task indicated by the ninth message is triggered by the second device itself, in which case the second device generates the ninth message. After generating the ninth message, the second device determines whether the priority of the task indicated by the ninth message is higher than the priority of the currently executed task. If yes, the current preset task is ended.
[0664] Optionally, the task indicated by the ninth message and the currently executed preset task can be the same type of task. For example, the currently executed preset task is inventory, and the second device needs to send a paging message to the third device. The task indicated by the ninth message is paging, and the second device also needs to send a paging message to the third device. Although the task indicated by the ninth message is different from the currently executed preset task, the task types are the same, and the actions required to be performed by the second device are the same.
[0665] Optionally, the task indicated by the ninth message and the currently executed preset task can be different types of tasks. For example, the currently executed preset task is inventory, and the second device needs to send a paging message to the third device. The task indicated by the ninth message is reading data, and the random access process between the second device and the third device has been completed, and the second device needs to send a reading signaling to the third device. In this case, the task indicated by the ninth message is different from the currently executed preset task, the task types are different, and the actions required to be performed by the second device are also different.
[0666] Condition 7, receiving the fourth message sent by the first device, the fourth message being used to indicate ending the preset task.
[0667] In one example, the first device determines that the preset task is completed according to the execution result returned by the second device (e.g., the second message described in S906 and S1006), and then sends the fourth message to the second device.
[0668] Optionally, the manner in which the first device determines whether the preset task is completed according to the execution result returned by the second device can include determining whether at least one of the following conditions is met: Condition 1, Condition 2, Condition 3, Condition 4, and Condition 5. For specific examples, refer to the descriptions in the embodiments corresponding to the respective conditions, which will not be described here again.
[0669] It should be noted that in the above examples, ending the preset task can mean that the second device stops sending messages to the third device, and / or the second device sends the execution result (e.g., the second message and the fifth message) of the preset task to the first device.
[0670] In the above examples, the second device can be restricted from repeatedly executing the task according to the second preset condition, which effectively reduces the situation in which the second device cannot break out of repeated execution, and helps to improve the reliability of communication.
[0671] In some embodiments, the communication process triggered by the first device for the same task and the communication process triggered by the second device for the same task can be executed respectively.
[0672] For example, the first device, the second device, and the third device execute the communication process shown in FIG. 9 or FIG. 10, in which the same task is triggered by the first device. Correspondingly, the second device repeatedly executes the same task based on the first message and the third message sent by the first device. In this way, the first device and the second device can identify the same task according to the information in the first message and the second message, and subsequently communicate accordingly, thereby helping to achieve repeated or consecutive processing of the same task by the first device and the second device, and improving communication efficiency.
[0673] For another example, the second device and the third device execute the communication process shown in FIG. 12, in which the same task is triggered by the second device. Correspondingly, the third device determines whether to respond based on the sixth message and the seventh message sent by the second device. In this way, the third device can identify the same task according to the information in the sixth message and the seventh message, and subsequently communicate accordingly, thereby helping to achieve repeated or consecutive processing of the same task by the second device and the third device. In addition, it can also reduce the repeated responses of the third device, thereby reducing the power consumption of the third device.
[0674] In some embodiments, the communication procedure triggered by the first device for the same task and the communication procedure triggered by the second device for the same task can be combined.
[0675] For example, referring to FIG. 13, a flowchart of a communication method according to another embodiment of the present application is shown. As an example and not a limitation, the communication method can include the following steps, as shown in FIG. 13:
[0676] S1301, the first device sends a first message to the second device.
[0677] The first message includes first information, which is identification information of the first preset task.
[0678] S1301 is the same as S1001, and details can be found in the description of S1001.
[0679] S1302, after receiving the first message, the second device sends a sixth message to the third device.
[0680] Optionally, the sixth message can be the first message.
[0681] Optionally, the sixth message can not be the first message. In this case, one way is that the sixth message includes the first information. In other words, although the sixth message is different from the first message, both the sixth message and the first message include the first information, so the sixth message and the first message indicate the same task. Another way is that the sixth message includes fifth information, which is used to indicate the identification information of the first preset task. In other words, although the sixth message is different from the first message, and the fifth information included in the sixth message is different from the first information included in the first message, the fifth information and the first information indicate the same task.
[0682] In the embodiments of the present application, the sixth message and the first message indicate the same task, and subsequent communication is carried out accordingly, which helps to realize repeated or consecutive processing of the same task by the first device, the second device and the third device, and improves the communication efficiency.
[0683] S1303, after receiving the sixth message, the third device determines whether to respond according to the sixth message.
[0684] If the response is yes, S1304 is performed; if the response is no, the sixth message is ignored.
[0685] S1304, if the response is yes, the third device sends an eighth message to the second device.
[0686] S1305, the second device determines whether the first preset condition is met.
[0687] If the first preset condition is met, S1306 is performed; if the first preset condition is not met, S1307 is performed.
[0688] S1306, if the first preset condition is met, the second device sends a seventh message to the third device.
[0689] Steps S1302-S1306 are the same as steps S1201-S1205, and details can be referred to the description in the embodiments of steps S1201-S1205.
[0690] So far, it is equivalent to repeatedly performing the first preset task triggered by the second device.
[0691] S1307, if the first preset condition is not met, the second device sends a second message to the first device.
[0692] S1308, the first device determines whether the first preset task is completed according to the second message.
[0693] If the first preset task is not completed, S1309 is performed; if the first preset task is completed, S1311 is performed.
[0694] S1309, if the first preset task is not completed, the first device sends a third message to the second device.
[0695] Steps S1307-S1309 are the same as steps S1002-S1004, and details can be referred to the description in the embodiments of steps S1002-S1004.
[0696] After receiving the third message, the second device re-executes S1302-S1306. So far, it is equivalent to repeatedly performing the first preset task triggered by the first device.
[0697] It should be noted that in the process of re-executing S1302-S1306, it can be determined whether to end the first preset task according to the second preset condition. The judgment parameters involved in the second preset condition, such as the preset number of times, the preset time length, the preset number, etc., can be sent to the second device by the first device, or generated by the second device itself. The judgment process of the second preset condition can be referred to the description in the embodiments of conditions 1-7 above.
[0698] S1310, in the process of re-executing S1302-S1306, if the first preset condition is not met, the second device sends a fifth message to the first device.
[0699] It can be understood that, in the embodiments of the present application, the fifth message is used to indicate the execution result obtained after the second device re-executes S1302-S1306. In one example, in the process of the second device re-executing S1302-S1306, if the second device executes one preset task, the fifth message can include the execution result of the one preset task; if the second device autonomously triggers multiple preset tasks, the fifth message can include the execution result of each of the multiple preset tasks, or the fifth message can include the final result obtained by the second device according to the execution result of each of the multiple preset tasks.
[0700] Optionally, the first device can continue to determine whether the first preset task is completed according to the execution result of the fifth message this time; if the first preset task is not completed, the first device continues to send a message including the identification information of the first preset task to the second device to trigger the second device to execute the same task; if the first preset task is completed, the first device executes S1311.
[0701] Optionally, the first device can determine whether the first preset task is completed according to the execution result of the second message and the execution result of the fifth message. In this way, it is equivalent to that the first device determines whether the task is completed based on the multiple execution results of the same task, and the same task executed before and after is associated with each other; for example, after the previous execution of the preset task, a part of the responses of the third device is received, and the next execution of the same preset task can no longer be paged to the part of the third device. In this way, it is helpful to realize the continuity processing of the same task, thereby improving the communication efficiency.
[0702] S1311, if the first preset task is completed, the first device sends a fourth message to the second device.
[0703] Steps S1310-S1311 are the same as steps S1005-S1006, and specific descriptions can be referred to the descriptions in the embodiments of steps S1005-S1006.
[0704] It should be noted that, in the embodiments of the present application, there is an association between each message involved in the communication process. For example, the first message and the third message both include the identification information of the first preset task to indicate the second device to repeatedly execute the same task. For another example, the first message and the sixth message both include the identification information of the first preset task to indicate the first device and the second device to execute the same task. For another example, the sixth message and the seventh message both include the identification information of the first preset task to indicate the third device to execute the same task. For another example, the first message and the second message both include the identification information of the first preset task to indicate that the execution result returned by the second device belongs to the preset task triggered by the first device.
[0705] It should be noted that the two messages are associated, which means that the two messages are associated with the same preset task.
[0706] For example, the first message, the third message and the fourth message sent by the first device to the second device can be the same message or different messages. In the case of different messages, one way is that the first message, the third message and the fourth message are different types of messages, which can be identified as different messages by message name and message identification information, and the first message and the third message can indicate the same preset task by carrying the same identification information of the flow or the preset task. For example, the first message and the third message both include the identification information of the first preset task. For another example, the first message includes the specific content of the first preset task and the first information, and the third message carries the identification information of the first preset task. In the case of different messages, another way is that the first message and the third message carry different identification information, but the identification information carried by the two is used to indicate the same preset task. In the case of the same message, the message name and the message type or the identification information of the message carried by the first message and the third message are the same, for example, the first message and the third message are carried by message 1, and when message 1 carries the content of the first message, it is the first message, and when message 1 carries the content of the third message, it is the third message.
[0707] For another example, the first message sent by the first device to the second device and the second message sent by the second device to the first device can carry the same identification information to associate the same preset task. Alternatively, the first message and the second message carry different identification information, but the identification information carried by the two is used to indicate the same preset task.
[0708] For another example, the first message sent by the first device to the second device and the sixth message sent by the second device to the third device are used to implement different functions, but the first message and the sixth message can carry the same identification information to associate the same preset task. Alternatively, the first message and the sixth message carry different identification information, but the identification information carried by the two is used to indicate the same preset task.
[0709] The sixth message and the seventh message sent by the second device to the third device can be the same message or different messages. The second message and the fifth message sent by the second device to the first device can be the same message or different messages. The specific implementation is shown above. Through the above-mentioned manner, the first device, the second device and the third device can identify the same preset task according to the communication message, and subsequent communication is carried out accordingly, thereby helping to realize the repetitive or consecutive processing of the same preset task by the first device, the second device and the third device, and improving the communication efficiency.
[0710] FIG. 14 is a structural schematic diagram of a communication apparatus provided by an embodiment of the present application, which can be implemented by software, hardware or a combination of both into part or whole of a computer device, which can be the computer device described in the embodiment of FIG. 7, for example, the computer device can be the first device, the second device or the third device. Referring to FIG. 14, the apparatus includes a sending module 1401 and a receiving module 1402.
[0711] The sending module 1401 is configured to send a message to one or more devices.
[0712] For example, when the computer device is the first device, the sending module 1401 is configured to send the first message and / or the third message to the second device. For another example, when the computer device is the second device, the sending module 1401 is configured to send the second message to the first device and / or send the sixth message to the third device. For yet another example, when the computer device is the third device, the sending module 1401 is configured to send the eighth message to the second device.
[0713] The receiving module 1402 is configured to receive a message.
[0714] For example, when the computer device is the first device, the receiving module 1402 is configured to receive the second message and / or the fifth message sent by the second device. For another example, when the computer device is the second device, the receiving module 1402 is configured to receive the first message sent by the first device and / or receive the eighth message sent by the third device. For yet another example, when the computer device is the third device, the receiving module 1402 is configured to receive the sixth message and / or the seventh message sent by the second device.
[0715] In the embodiments of the present application, the apparatus can send and receive messages to and from one or more devices, and the exchanged messages include identification information indicating a preset task. The apparatus can identify the same task according to the identification information of the preset task, and then communicate accordingly, thereby facilitating the repetitive or consecutive processing of the same preset task by the devices and improving the communication efficiency.
[0716] It should be noted that the communication apparatus provided by the above-described embodiments is only taken as an example for the division of the above-described functional modules in communication, and in actual applications, the above-described functions can be completed by different functional modules according to needs, i.e., the internal structure of the apparatus is divided into different functional modules to complete all or part of the above-described functions.
[0717] The function units and modules in the above embodiments can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software function unit. In addition, the specific names of the function units and modules are only for the purpose of mutual distinction, and do not limit the protection scope of the embodiments of the present application.
[0718] The communication device and the communication method embodiments provided by the above embodiments belong to the same concept. The specific working process of the units and modules in the above embodiments and the technical effects brought by the units and modules can be referred to the method embodiment part, and will not be described here.
[0719] It should be understood that the size of the serial number of each step in the above embodiments does not mean the order of execution. The execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0720] In the above embodiments, the description of each embodiment has its own emphasis. The parts not described or recorded in detail in a certain embodiment can be referred to the related description of other embodiments.
[0721] The embodiments of the present application also provide a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the steps in each of the above method embodiments.
[0722] The embodiments of the present application also provide a computer program product. When the computer program product runs on a computer device, the computer device can implement the steps in each of the above method embodiments.
[0723] The embodiments of the present application also provide a chip system, which includes a processor and a memory. The processor is coupled with the memory. The processor executes a computer program stored in the memory to implement the steps of any method embodiment of the present application. The chip system can be a single chip or a chip module composed of multiple chips.
[0724] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable apparatus. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another computer-readable storage medium, such as being transferred from one website, computer, server or data center to another website, computer, server or data center through a wired (such as coaxial cable, optical fiber, digital subscriber line (DSL) and the like) or wireless (such as infrared, wireless, microwave and the like) manner. The computer-readable storage medium can be any available medium accessible by a computer, or a data storage device such as a server, data center and the like integrated with one or more available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape and the like), an optical medium (such as a digital versatile disc (DVD) and the like) or a semiconductor medium (such as a solid state disk (SSD) and the like) and the like.
[0725] 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 fully authorized by all parties, and the collection, use and processing of related data need to comply with relevant regulations and standards of relevant countries and regions, and appropriate operation portals are provided for users to choose authorization or refusal.
[0726] The above is an optional embodiment provided by the present application, and is not used to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the technical scope disclosed by the present application should be included in the protection scope of the present application.
Claims
A communication method characterized by comprising: The method applied to a first device comprises: sending a first message to a second device, the first message being used to instruct the second device to perform a first preset task; wherein the first message comprises first information, the first information being used to identify the first preset task. The method of claim 1, wherein The method further comprises: sending a third message to the second device, the third message comprising the first information, the third message being used to instruct to perform the first preset task identified by the first information; or sending a fourth message to the second device, the fourth message being used to instruct to end the first preset task. The method further comprises: The method according to claim 2, characterized in that determining an execution result of the first preset task; based on the execution result of the first preset task, determining that the first preset task is not performed completely, and sending the third message to the second device; or based on the execution result of the first preset task, determining that the first preset task is performed completely, and sending the fourth message to the second device. The determination that the first preset task is not performed completely comprises: The method according to claim 3, characterized in that the number of third devices that have responded is inconsistent with a preset number; and / or, a response of a target device in one or more third devices is not received; The determination that the first preset task is performed completely comprises: the number of third devices that have responded is consistent with a preset number; and / or, a response of a target device in one or more third devices is received. The method further comprises: The method according to claim 2 or 3, characterized in that receiving an execution result of at least one first preset task sent by the second device, and sending the third message to the second device based on the execution result of the at least one first preset task. receiving identification information of the second device and / or identification information of the third device sent by the second device. The method according to claim 5, characterized in that The third message further comprises third information, the third information being used to identify the first preset task, and the third message being used to instruct to perform the first preset task identified by the first information. The method according to any one of claims 2 to 6, characterized in that The third message further comprises a second preset task, and the third message is used to instruct to perform the second preset task. The method of claim 7, wherein The first message and / or the third message further comprises at least one of the following: a preset number of times, a preset time length, a preset number, second information, fourth information; The method according to any one of claims 2 to 8, characterized in that wherein the preset number of times is used to indicate a number of times of performing the first preset task; the preset time length is used to indicate a time of performing the first preset task; the preset number is used to indicate a number of third devices corresponding to the first preset task; the second information is identification information of the second device; and the fourth information is identification information of the third device. The method applied to a second device comprises: A communication method characterized by comprising: sending a sixth message to one or more third devices, the sixth message being used to instruct the third devices to respond according to the sixth message; wherein the sixth message is associated with a first preset task. The method further comprises: The method of claim 10, wherein based on a first preset condition, sending a seventh message to the one or more third devices, the seventh message being associated with the first preset task. The first preset condition comprises at least one of the following: The method of claim 11, wherein receiving a third message sent by the first device, the third message being used to instruct to perform the first preset task; The number of the third devices that have responded is inconsistent with a preset number; No response of a target device in the one or more third devices is received; A conflict is detected in a random access procedure; A failure is detected in a random access procedure. The method according to any one of claims 10 to 12, characterized in that The sending of the sixth message to the one or more third devices includes: receiving a first message sent by a first device; wherein the first message includes first information; the first information is used to identify a first preset task; sending the sixth message to the one or more third devices according to the first message. The method according to any one of claims 10 to 13, characterized in that The method further includes: sending a second message to the first device based on the response of the one or more third devices to the sixth message, the second message being used to indicate an execution result of the first preset task, the second message including the first information. The method of claim 14, wherein The second message further includes the first information, second information and / or fourth information, the second information being identification information of the second device, and the fourth information being identification information of the third device. The method according to any one of claims 12 to 15, characterized in that The third message includes the first information and / or third information, the third information being used to associate the first preset task, and the third message being used to indicate execution of the first preset task. The method of claim 16, wherein The third message further includes a second preset task, and the third message is used to indicate execution of the second preset task. The method according to any one of claims 12 to 17, characterized in that The third message and / or the first message includes at least one of the following: a preset number of times, a preset time length, a preset number, second information, fourth information; The preset number of times is used to indicate a number of times of execution of the first preset task; the preset time length is used to indicate a time of execution of the first preset task; the preset number is used to indicate a number of third devices corresponding to the first preset task; the second information is identification information of the second device; and the fourth information is identification information of the third device. The method according to any one of claims 10 to 18, characterized in that The method further includes: ending the first preset task based on a second preset condition. The method of claim 19, wherein The ending of the first preset task includes: stopping sending messages to the third devices and / or sending a message to the first device to indicate an execution result of the first preset task. The method according to claim 19 or 20, characterized in that The second preset condition includes at least one of the following: a number of times of execution of the first preset task reaches a preset number of times; a time of execution of the first preset task reaches a preset time length; a number of the third devices that have responded reaches a preset number; no response of any one of the third devices is received; no conflict is detected in the process of executing the preset task; receiving a ninth message, the task indicated by the ninth message having a priority higher than a priority of the first preset task; receiving a fourth message sent by the first device, the fourth message being used to indicate ending of the first preset task. The method according to any one of claims 11 to 21, characterized in that The sixth message and / or the seventh message further include the first information, second information, fourth information, fifth information and / or sixth information, the second information being identification information of the second device, the fourth information being identification information of the third device, and the fifth information being used to identify the first preset task; When the sixth information is a preset value, it indicates that the first preset task indicated by the first message or the third message is executed for the first time; when the sixth information is not the preset value, it indicates that the first preset task indicated by the first message or the third message is executed repeatedly. A communication method characterized by comprising: The method applied to the third device comprises: receiving a sixth message sent by a second device; wherein the sixth message is associated with a first preset task; determining whether to respond according to the sixth message. The method of claim 23, wherein The determining whether to respond according to the sixth message comprises: determining whether the sixth message has been received; if the sixth message has not been received, sending an eighth message to the second device, wherein the eighth message is used to indicate a response. The method according to claim 23 or 24, characterized in that The method further comprises: if a plurality of sixth messages sent by the second device are received, selecting a sixth message sent by at least one of the second devices to respond. The method of claim 25, wherein The determining whether to respond according to the sixth message comprises: if a random access process between the second device corresponding to the first preset task associated with the sixth message and the third device is not completed, sending an eighth message to the second device, wherein the eighth message is used to indicate a response. The method according to any one of claims 23 to 26, characterized in that The sixth message comprises first information, second information, fourth information, fifth information and / or sixth information, the first information is used to identify the first preset task, the second information is identification information of the second device; the fourth information is identification information of the third device; the fifth information is used to identify the first preset task; When the sixth information is a preset value, it indicates that the first preset task indicated by the first message or the third message is executed for the first time; when the sixth information is not the preset value, it indicates that the first preset task indicated by the first message or the third message is executed repeatedly. The method of claim 27, wherein The method further comprises: in the case that the sixth message comprises the sixth information, based on the sixth information being the preset value, sending an eighth message to the second device; wherein the eighth message is used to indicate a response; or, based on the sixth information not being the preset value and a random access process between the second device corresponding to the first preset task associated with the sixth message and the third device not being completed, sending an eighth message to the second device. The method of claim 27, wherein The method further comprises: in the case that the seventh message comprises the sixth information, based on the sixth information being the preset value, sending an eighth message to the second device; wherein the eighth message is used to indicate a response; or, based on the sixth information not being the preset value and a random access process between the second device corresponding to the first preset task associated with the sixth message and the third device not being completed, sending an eighth message to the second device. The communication device comprises a processing unit and a transceiver unit, and is configured to execute the method of any one of claims 1 to 9, or the method of any one of claims 10 to 22, or the method of any one of claims 23 to 29. A communication device, characterized by A communication device, characterized by A processor coupled to a memory having stored therein programs or instructions for execution of the method of any one of claims 1 to 9, or, the method of any one of claims 10 to 22, or, the method of any one of claims 23 to 29. A communication system characterized by A communications device as claimed in claim 31. A computer readable storage medium having stored thereon computer programs or instructions, characterized in that, The computer program or instructions, when executed, cause the computer to perform the method of any one of claims 1 to 9, or, the method of any one of claims 10 to 22, or, the method of any one of claims 23 to 29. A computer program product, characterized in that A computer program which, when run, causes the method of any one of claims 1 to 9 to be performed, or, the method of any one of claims 10 to 22 to be performed, or, the method of any one of claims 23 to 29 to be performed.
Citation Information
Patent Citations
Multiple reader counting electronic label method in RFID system
CN101136060A
RFID system electronic tag and its response method
CN101145189A
Communication method and device
CN117812577A
Communication method and device
CN117998533A
Method and apparatus for response control of RFID tag, RFID system, RFID tag, response control information generating program storage medium, and response control program storage medium
US20080094182A1