Communication method, device and system, storage medium and program product

By using messages carrying preset task identification information in the environmental IoT system, the problem of readers repeatedly or continuously triggering the same task is solved, thus improving communication efficiency and reliability.

CN121815455APending Publication Date: 2026-04-07HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

In environmental IoT systems, the repetitive or sequential triggering of the same core network tasks by readers leads to low communication efficiency.

Method used

By sending a message carrying a preset task identifier to the second device through the first device, the first device and the second device are ensured to recognize and execute the same preset task, thereby achieving repetitive or sequential processing.

Benefits of technology

It improves the communication efficiency and reliability between devices in the environmental IoT system and reduces the possibility of repetitive tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121815455A_ABST
    Figure CN121815455A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of Internet of Things, in particular to a communication method, device and system, a storage medium and a program product. In the embodiment of the invention, each device can communicate according to the identification information used for indicating the same task, and each device can identify the same task according to the identification information used for indicating the same task and subsequently communicate in sequence; therefore, the first equipment and the second equipment can process the same preset task repeatedly or continuously, and the communication efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of Internet of Things, and in particular to a communication method, device, system, storage medium and program product. BACKGROUND

[0002] 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

[0003] The present application provides a communication method, device and computer readable storage medium, which helps to realize the communication mechanism of the device for the same core network task.

[0004] To achieve the above-mentioned purpose, the present application adopts the following technical solutions:

[0005] In a first aspect, a communication method is provided, applied to a first device, and the method comprises:

[0006] sending a first message to a second device, the first message being used to instruct the second device to perform a first preset task;

[0007] The first message comprises first information, and the first information is used to identify the first preset task.

[0008] 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 first device and the second device for the same preset task and improving the communication efficiency.

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

[0010] In some application scenarios of the environmental Internet of Things, the first device can be a core network (CN) network element or an AF, the second device can be a reader, and the third device can be an environmental Internet of Things device.

[0011] For example, in the case of Figure 2In the communication flow of Topology 1 shown, the A-IoT controller acts as the CN (Network Controller), and the base station acts as 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 is the AF (Analog Controller), the second device 42 is the base station, and the third device is 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 via the CN.

[0012] For example, in Figure 3 In the communication flow of Topology 2 shown, the A-IoT controller acts as the CN (Network Controller), and the intermediate node acts as a reader / writer. In this case, the first device is the A-IoT controller, the second device is the intermediate node (such as the UE), and the third device 43 can be an environmental IoT device. Alternatively, the first device can be the AF (Analog-Offset Controller), the second device can be the intermediate node (such as the 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 both the CN and the base station.

[0013] In other application scenarios of 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.

[0014] For example, in Figure 3 In the communication flow of Topology 2 shown, the base station can communicate with environmental IoT devices through intermediate nodes. These intermediate nodes act as readers / writers, serving as a secondary device in this scenario. Additionally, in this scenario, the AF can communicate with the base station through the CN, sending signaling to the base station, which then triggers the task indicated by the signaling.

[0015] In some examples, the first message can be a paging message. In some implementations, after the third device receives the paging message from the second device, the third device triggers a random access procedure. For example, in... Figure 2 In the communication flow shown, in S203, after the base station sends an initial message to the environmental IoT device, the environmental IoT device triggers a random access procedure. For example, in... Figure 3 In the communication process shown, in S304, after the intermediate node sends an initial message to the environmental IoT device, the environmental IoT device triggers a random access process.

[0016] 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, the paging message is used to trigger the sending of inventorying, and accordingly, the third device reports its 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 reading by the first device, the paging message is used to trigger the sending of reading signaling, and accordingly, the third device reports the read data after successful random access. For another example, in the application scenario of writing by the first device, the paging message is used to trigger the sending of writing signaling, and accordingly, the third device can send the response information of writing success after successful random access.

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

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

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

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

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

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

[0023] The CBRA can include a two-step contention-based random access (2step CBRA) and a 3step CBRA.

[0024] For example, in the 2step CBRA procedure: the third device determines a resource for a 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.

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

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

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

[0028] For example, in the 3step CBRA procedure: the third device determines a resource for a 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.

[0029] The Msg1 can include a Random ID generated by the third device, but does not include other upper layer data.

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

[0031] The Msg3 can include the identification information of the third device.

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

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

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

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

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

[0037] The first message may include the identification information of the third device that needs to perform the target requirements, the specific target requirements that need to be performed such as disk storage or read, write, activate, deactivate, etc., the identification information of the second device that needs to perform the target requirements, and the relevant identification information of the first preset task that needs to be performed.

[0038] 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 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 process corresponding to the first preset task.

[0039] In one embodiment, the first message may be the first preset task itself, used to identify that the first message is for the second device to execute the first preset task, wherein the first preset task is an AF or CN request.

[0040] The second device is a reader, and the first device can be the control node of the reader.

[0041] In one example, such as Figure 2 As shown, in Topology 1, when the first device is an AF (Automatic Feedback Unit) 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 the A-IoT controller. Specifically, the first device sends the first message to the A-IoT controller, and the A-IoT controller then sends the first message to the second device.

[0042] In another example, such as Figure 2 As shown, 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 the 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.

[0043] In another example, such as Figure 3 As shown, 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 the A-IoT controller and the 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 after the base station establishes an RRC connection with the UE, it sends the first message to the UE.

[0044] In another example, such as Figure 3As shown 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.

[0045] In another example, as shown 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. Figure 3

[0046] In the embodiments of the present application, different target requirements correspond to different first messages and different first preset tasks.

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

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

[0049] Optionally, according to different target requirements, the identification information of the first preset task can be in different forms.

[0050] 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. ​

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

[0052] For example, regardless of whether the target requirement is inventory or downlink command, the target requirement corresponds to a flow, and a message corresponding to the flow can include the identification information of the first preset task.

[0053] In an implementation form of the first aspect, the method further includes:

[0054] sending a third message to the second device, the third message including the first information, and the third message being used to indicate execution of the first preset task identified by the first information;

[0055] or,

[0056] sending a fourth message to the second device, the fourth message being used to indicate ending of the first preset task.

[0057] 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 receives the first message, obtains the specific content of the first preset task from the first message, and executes 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 executes the first preset task.

[0058] 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 indication information of repeatedly executing the first preset task indicated by the first information.

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

[0060] The fourth message is used to indicate the end of the first preset task.

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

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

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

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

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

[0066] In one implementation form of the first aspect, the method further includes:

[0067] determining an execution result of the first preset task;

[0068] 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

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

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

[0071] And / or, a response of a target device in the one or more third devices is not received.

[0072] Determining that the first preset task is executed completely comprises:

[0073] The number of the third devices that have responded is consistent with a preset number.

[0074] And / or, a response of a target device in the one or more third devices is received.

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

[0076] In an implementation form of the first aspect, the method further comprises:

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

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

[0079] In an implementation form of the first aspect, the method further comprises:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0103] 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 situation that the second device cannot break out of repeated execution, and helping to improve the reliability of communication.

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

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

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

[0107] 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 the continuity of the first preset task.

[0108] It can be understood that the third message includes the implementation and effects of the above information, which are the same as the implementation and effects of the first message including the above information. For details, refer to the description in the above examples, which will not be repeated here.

[0109] In a second aspect, a communication method is provided, applied to a second device, and the method includes:

[0110] receiving a first message sent by a first device, the first message being used to indicate to perform a first preset task;

[0111] The first message includes first information, and the first information is used to identify the first preset task.

[0112] 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 the repetitive or consecutive processing of the same preset task by the first device and the second device, and improving the communication efficiency.

[0113] In an implementation form of the second aspect, the method further includes:

[0114] 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;

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

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

[0117] In an implementation form of the second aspect, the method further includes:

[0118] receiving a third message sent by the first 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.

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

[0120] In an implementation form of the second aspect, the method further includes:

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

[0122] Optionally, the first preset condition is at least one of:

[0123] 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;

[0124] the number of the third devices that have responded is inconsistent with a preset number;

[0125] no response is received from a target device in the one or more third devices;

[0126] Detecting a collision in a random access procedure;

[0127] Detecting a failure in a random access procedure.

[0128] In the embodiments of the present 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.

[0129] In an implementation form of the second aspect, the method further includes:

[0130] ending the first preset task based on a second preset condition.

[0131] Optionally, the ending the first preset task includes:

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

[0133] Optionally, the second preset condition includes at least one of:

[0134] a number of times of executing the first preset task reaches a preset number of times;

[0135] a time of executing the first preset task reaches a preset time length;

[0136] a number of the third devices that have responded reaches a preset number;

[0137] no response is received from any one of the third devices;

[0138] no collision is detected in the process of executing the preset task;

[0139] receiving a ninth message, the ninth message indicating a task with a priority higher than a priority of the first preset task;

[0140] receiving a fourth message sent by the first device, the fourth message being used to indicate ending the first preset task.

[0141] 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 is 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.

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

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

[0144] The first device can execute the first preset task according to the second information indicated by the second device, which helps to improve the flexibility of communication.

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

[0146] In an implementation form of the second aspect, the third message further comprises third information, the third information being used to indicate execution of the first preset task indicated by the first message.

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

[0148] In an implementation form of the second aspect, the third message further comprises a second preset task, and the third information is used to indicate execution of the second preset task.

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

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

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

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

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

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

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

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

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

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

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

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

[0161] In a third aspect, a communication method is provided, applied to a second device, and the method includes:

[0162] sending a sixth message to one or more third devices, used to instruct the third devices to respond according to the sixth message;

[0163] The sixth message is associated with a first preset task.

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

[0165] 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 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 received message sent by another device.

[0166] 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 demand 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.

[0167] As another example of the second device generating the sixth message by itself, the second device has a target demand by itself, in this case, the second device generates the sixth message according to the target demand by 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.

[0168] Optionally, the sixth message can be a paging message.

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

[0170] Optionally, the sixth message can be signaling.

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

[0172] In an implementation form of the third aspect, the method further includes:

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

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

[0175] Optionally, the first preset condition includes at least one of the following:

[0176] receiving a third message sent by the first device; the third message is used to indicate to perform the first preset task;

[0177] the number of the third devices that have responded is inconsistent with a preset number;

[0178] a response of a target device in the one or more third devices is not received;

[0179] a conflict is detected in a random access process;

[0180] a failure is detected in a random access process.

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

[0182] In an implementation form of the third aspect, the sending the sixth message to the one or more third devices comprises:

[0183] 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;

[0184] sending the sixth message to the one or more third devices according to the first message.

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

[0186] In an implementation form of the third aspect, the method further comprises:

[0187] 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, and the second message comprising the first information.

[0188] The second message is used to indicate the execution result of the first preset task.

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

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

[0191] 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 / or 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.

[0192] Optionally, the paging message sent by the second device to the third device can include the first information. Correspondingly, the third device can determine whether it is a repeated paging according to the first information after receiving the paging message; 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.

[0193] It can be understood that in the scenario of read / write signaling, the second device no longer sends read / write signaling to the third device after the third device ignores the paging.

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

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

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

[0197] Optionally, the second message can also be statistical data obtained by the second device according to the 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.

[0198] Optionally, the second message can also be a result of whether repeated paging is needed, which is obtained by the second device according to the 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.

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

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

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

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

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

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

[0205] In a case where the first device determines that the first preset task is completed according to the second message, the fourth message is sent to the second device.

[0206] In a case where the second device autonomously triggers repeated execution of the first preset task, the fourth message is used by the first device to instruct the second device to end the first preset task, and accordingly, the second device stops repeated execution of the first preset task after receiving the fourth message.

[0207] In this case, the second device can return an execution result of each execution of the first preset task to the first device, or return an execution result of the last execution of the first preset task to the first device after receiving the fourth message, or return a statistical result of the execution results of the first preset task to the first device after receiving the fourth message.

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

[0209] In an implementation form of the third aspect, the third message includes the first information and / or third information used for associating the first preset task, and the third message is used for instructing execution of the first preset task.

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

[0211] In an implementation form of the third aspect, the third message further includes a second preset task, and the third message is used for instructing execution of the second preset task.

[0212] In the embodiments of the present application, in a case where the identification information of the preset task before multiplexing is carried, 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 manner, the multiplexing rate of the identification information of the preset task can be improved while ensuring the reliability of communication.

[0213] In an implementation form of the third aspect, 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, and fourth information.

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

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

[0216] It can be understood that the implementation manner and role 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.

[0217] In an implementation form of the third aspect, the method further includes:

[0218] ending the first preset task based on a second preset condition.

[0219] Optionally, the ending the first preset task includes:

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

[0221] Optionally, the second preset condition includes at least one of the following:

[0222] a number of times of executing the first preset task reaches a preset number of times;

[0223] a time of executing the first preset task reaches a preset time length;

[0224] a number of the third devices that have responded reaches a preset number;

[0225] no response of any one of the third devices is received;

[0226] no conflict is detected in the process of executing the preset task;

[0227] receiving a ninth message, the priority of the task indicated by the ninth message being higher than the priority of the first preset task;

[0228] receiving a fourth message sent by the first device, the fourth message being used to indicate ending the first preset task.

[0229] Condition 1: the number of times of executing the preset task reaches a preset number of times.

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

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

[0232] In a case where 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 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.

[0233] Optionally, the condition 1 can be judged by the second device, or the condition 1 can be judged by another device.

[0234] In one example, the condition 1 is judged by the second device. 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.

[0235] In another example, the condition 1 is judged by another device. For example, in a case where the first device triggers the preset task, the first device can judge the condition 1. Specifically, the second device can return an 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 currently 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 ending the preset task; correspondingly, after receiving the fourth message, the second device judges that the condition 7 is met, and then ends the preset task.

[0236] Condition 2: the time of executing the preset task reaches a preset time length.

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

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

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

[0240] Optionally, the condition 2 can be judged by the second device, or the condition 2 can be judged by another device.

[0241] In one example, in a case where the second device repeatedly executes the preset task, the second device judges 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.

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

[0243] In another example, the condition 2 is judged by another device. For example, in a case where the preset task is triggered by the first device, the first device can judge the 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 judges 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 judges that the condition 7 is met, and then the second device ends the preset task.

[0244] Condition 3: the number of third devices that have been responded to reaches a preset number.

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

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

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

[0248] Optionally, the second device can judge condition 3, or other devices can judge condition 3.

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

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

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

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

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

[0254] The condition 4 is that no response from any third device is received.

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

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

[0257] Optionally, the first number of times can be set by the second device, or can be set by another device.

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

[0259] Condition 5: no conflict is detected during execution of the preset task.

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

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

[0262] Optionally, the second number of times can be set by the second device, or can be set by another device.

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

[0264] Condition 6: a ninth message is received, and the priority of the task indicated by the ninth message is higher than the priority of the task currently being executed.

[0265] 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 being executed; if so, the current preset task is ended.

[0266] 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 being executed; if so, the current preset task is ended.

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

[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] Condition 7: receiving the fourth message sent by the first device, the fourth message being used to indicate ending the preset task.

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

[0271] 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 above conditions, which will not be described here again.

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

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

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

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

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

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

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

[0279] The fifth information comprises a preset identifier, the preset identifier being used for identifying a preset task, wherein the identification information comprised in the first message sent by the first device to the second device and the identification information comprised in the sixth message can be the same identification information or identification information having a mapping relationship, for example, the identification information comprised in the first message or the third message is first CN identification information, and the identification information comprised 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 the first CN identification information indicates the first preset task. The identification information is used for identifying the first preset task, and can be related identification information of the first preset task, wherein 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.

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

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

[0282] It should be noted that the association between two messages can mean that the two messages are associated with the same preset task.

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

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

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

[0287] In a fourth aspect, a communication method is provided, which is applied to the third device, and the method comprises:

[0288] receiving the sixth message sent by the second device; wherein the sixth message is associated with the first preset task;

[0289] determining whether to respond according to the sixth message.

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

[0291] In an implementation form of the fourth aspect, the determining whether to respond according to the sixth message comprises:

[0292] determining whether the sixth message has been received;

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

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

[0295] In an implementation form of the fourth aspect, the method further comprises:

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

[0297] 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:

[0298] In one implementation, the third device replies to each of the second devices.

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

[0300] In yet another implementation, the third device replies to the second device corresponding to the message including the AS ID and the first information 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.

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

[0302] In one implementation of the fourth aspect, the determining whether to respond according to the sixth information includes:

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

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

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

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

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

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

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

[0310] 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 AS identifier information is associated with the first preset task indicated by the first CN identifier information. 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.

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

[0312] In a manner of implementation of the fourth aspect, the method further includes:

[0313] 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

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

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

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

[0317] In an implementation form of the fourth aspect, the method further comprises:

[0318] 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

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

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

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

[0323] In a seventh aspect, a communication system is provided, which comprises the communication apparatus of the sixth aspect.

[0324] In an eighth aspect, a computer readable storage medium is provided, which stores computer programs or instructions, and the computer programs or instructions are executed to 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.

[0325] In a ninth aspect, a computer program product is provided, which comprises computer programs, and when the computer programs are executed, 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 is performed.

[0326] It can be understood that the beneficial effects of the above-mentioned fifth aspect to ninth aspect can refer to the related description in the above-mentioned first aspect to fourth aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS

[0327] Figure 1 is a topology structure of an environmental Internet of Things provided by an embodiment of the present application;

[0328] Figure 2 is a communication process of topology 1 provided by an embodiment of the present application;

[0329] Figure 3 is a communication process of topology 2 provided by an embodiment of the present application;

[0330] Figure 4 is a schematic diagram of a communication system provided by an embodiment of the present application;

[0331] Figure 5 is a schematic diagram of a protocol layer provided by an embodiment of the present application;

[0332] Figure 6 is a schematic diagram of a protocol layer provided by another embodiment of the present application;

[0333] Figure 7 is a structural schematic diagram of a computer device provided by an embodiment of the present application;

[0334] Figure 8 is a flow chart of a communication method of triggering a same task by a first device provided by an embodiment of the present application;

[0335] Figure 9 is a schematic diagram of a communication flow of triggering a same task by an AF provided by an embodiment of the present application;

[0336] Figure 10 is a schematic diagram of a communication flow of triggering a same task by a CN provided by an embodiment of the present application;

[0337] Figure 11 is a flow chart of a communication method of triggering a same task by a second device provided by an embodiment of the present application;

[0338] Figure 12 is a schematic diagram of a communication flow of triggering a same task by a second device provided by an embodiment of the present application;

[0339] Figure 13 is a flow chart of a communication method provided by another embodiment of the present application;

[0340] Figure 14 is a structural schematic diagram of a communication apparatus provided by an embodiment of the present application. DETAILED DESCRIPTION

[0341] 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 recognize that embodiments of the application can be practiced without these specific details.

[0342] It should be understood that the term "comprising" as used in the specification and in the claims indicates the presence of the recited features, integers, steps, operations, elements, and / 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 "comprising", "including", "containing", "have" and "including" and their conjugates mean "including but not limited to", unless otherwise expressly stated.

[0343] It should be understood that the "one or more" referred to by the present application means one, two or more than two, and the "multiple" referred to by the present application means two or more than two. In the description of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B. "And / or" in this document is only a description of the relationship between the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone.

[0344] 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 functions and roles. 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. do not necessarily mean different.

[0345] The phrase "one embodiment" or "some embodiments" appearing in the present application means that the specific feature, structure or characteristic described in the embodiment is included in one or more embodiments of the present application. Therefore, the phrases "in one embodiment", "in some embodiments", "in other some embodiments", "in further some embodiments" appearing in the present application do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized.

[0346] First, the related terms involved in the embodiments of the present application are introduced.

[0347] Application service module (Application Function, AF), also known as application function, refers to various services of the application layer, similar to an application server. The AF can interact with other core network control planes and provide service services.

[0348] 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 the coverage of the planned area, and to improve the business capacity and resource utilization as much as possible. 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.

[0349] The paging message is a message triggered by the network side or core network to page the terminal. For example, in the new air interface (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.

[0350] Optionally, the paging message can include at least one of the following information: resource, type of random access, downlink signaling, flow ID, device ID, reader ID, and indication information. The flow ID is used to identify different paging messages. The device ID is used to indicate whether the device needs to receive the paging or ignore the paging. The reader ID is used to identify different readers. The indication information is used to indicate that the device that fails to receive the paging receives the paging indication.

[0351] Inventory, a method for counting the signaling of 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; and the AF counts the environmental Internet of Things device according to the number of responses after receiving the responses of the environmental Internet of Things device.

[0352] 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 a reader and a tag device as an example, the reader provides power 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 / write operations on the tag device.

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

[0354] Optionally, random access can be divided into contention-based random access (CBRA) and contention-free random access (CFRA).

[0355] For example, the CBRA process can include the following steps 1-1 to 1-4:

[0356] 1-1, random access preamble transmission as message 1 (Msg1).

[0357] 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).

[0358] 1-2, the random access response (RAR) as message2 (Msg2).

[0359] 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 the random access response (RAR) through the physical downlink shared channel (PDSCH). The RAR contains the responding TA value, uplink grant (UL grant) information, C-RNTI, etc.

[0360] A PDSCH can carry RARs for multiple terminal devices.

[0361] 1-3, the RRC connection request (RRC connection request) as message3 (Msg3).

[0362] The terminal device sends Msg3 to the network device on the specified uplink resource, which contains the terminal device's corresponding identification number and the necessary information required to establish an RRC connection.

[0363] 1-4, the RRC connection setup (RRC connection setup) as message4 (Msg4).

[0364] After 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 the RRC connection setup message to the terminal device. After that, the terminal device can communicate with the network device.

[0365] For example, the CFRA procedure can include the following steps 2-1 to 2-2:

[0366] 2-1, the random access preamble transmission as Msg1.

[0367] The terminal device sends a random access preamble index (or random access preamble sequence) to the network device through the PRACH. In the non-contention random access procedure, the random access preamble index is pre-assigned to the terminal device by the network device. That is, the random access preamble index is dedicated to the terminal device.

[0368] 2-2, the random access response (RAR) as Msg2.

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

[0370] Next, the ambient the internet of things (A-IoT) device related to the embodiments of the present application is described.

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

[0372] 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, building automation and control devices, asset tag devices, and the like, and the embodiments of the present application are not limited thereto. In these scenarios, the networking requirements of the ambient the internet of things device are generally simple, which can be simply asset information reporting or sending a small amount of sensor data.

[0373] The ambient energy collected by the ambient the internet of things device can generally only generate a small amount of electrical 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.

[0374] Different application scenarios have different requirements for the ambient the internet of things device. 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:

[0375] Device type 1a: no energy storage capability, 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 microwatt or below 10 microwatts.

[0376] Device type 1b: has energy storage capability, but does not have independent signal generation capability. Due to the energy storage capability, the device can amplify the backscattered signal after collecting enough power, covering a longer distance. The power consumption of the device when receiving or transmitting signals is between device type 1a and device type 2.

[0377] Device type 2: has both energy storage capability and independent signal generation and amplification capability. The communication capability of the device is similar to that of a conventional Internet of Things device. The power consumption of the device when receiving or transmitting signals is below 1 milliwatt or below 10 milliwatts.

[0378] It should be noted that the above-mentioned three device types are only used as examples to illustrate the types of environmental Internet of Things devices, and other different device types can also be used in actual applications, which are not limited by the embodiments of the present application.

[0379] In some embodiments, the environmental Internet of Things device can report 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).

[0380] For example, the base station can be a base station (node B, NB) of a 3th generation mobile network (3G) cell, an evolved base station (eNB) of a 4th generation mobile network (4G) cell, a next generation base station (gNB) of a 5th generation mobile network (5G) cell, etc.

[0381] For example, 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, or the like, and embodiments of the present application are not limited thereto.

[0382] It should be noted that in some cases, the base station or the UE can implement the function of the reader-writer, in which case the reader-writer can be a base station or a UE capable of implementing the function of the reader-writer.

[0383] In some embodiments, in the case where the environmental IoT device is a tag device, the base station or the UE in communication with the environmental IoT device can also be referred to as a tag reader-writer device.

[0384] In some embodiments, if the environmental IoT device collects electromagnetic wave energy, the reader-writer, the base station or the UE can provide electromagnetic wave energy for the environmental IoT device as an energy supply node, of course, in actual applications, other devices can also be energy supply nodes, and embodiments of the present application are not limited thereto.

[0385] In some embodiments, referring to Figure 1 , the topology structure of the environmental IoT provided by embodiments of the present application is shown. As an example and not limitation, as shown in Figure 1 , the environmental IoT networking topology can include the following two types:

[0386] Topology 1: As shown in (a) in Figure 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.

[0387] 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.).

[0388] For example, referring to Figure 2is a communication process of topology 1 provided by an embodiment of the present application. As an example but not limitation, as shown in Figure 2 , the communication process can include the following steps:

[0389] S201, the AF sends signaling to the A-IoT controller.

[0390] Optionally, the signaling can be a read-write, disable, or other downlink command or inventory.

[0391] S202, the A-IoT controller sends the signaling to the base station.

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

[0393] 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, etc., which is not limited in the embodiments of the present application.

[0394] S203, the base station sends an initial message to the environmental IoT device.

[0395] In topology 1, the base station can implement the function of a reader. 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.

[0396] Optionally, the initial message can be a paging message. Correspondingly, the environmental IoT device triggers a random access process after receiving the paging message.

[0397] Topology 2: As shown in (b) of Figure 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.

[0398] Optionally, in this case, the intermediate node can communicate with the base station.

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

[0400] For example, refer to Figure 3is a communication process of topology 2 provided by an embodiment of the present application. As an example but not limitation, as shown in Figure 3 , the communication process can include the following steps:

[0401] S301, the AF sends signaling to the A-IoT controller.

[0402] S302, the A-IoT controller sends the signaling to the base station.

[0403] Steps S301-S302 are the same as steps S201-S202, and specific descriptions can be referred to in steps S201-S202, which will not be repeated here.

[0404] S303, the base station sends an RRC reconfiguration message to the intermediate node.

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

[0406] In this case, the intermediate node plays the role of a reader / writer, and the base station needs to support the capability of the reader / writer.

[0407] S304, the intermediate node sends the initial message to the environmental IoT device.

[0408] 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, etc.

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

[0410] Optionally, the initial message can be a paging message. Correspondingly, after the environmental IoT device receives the paging message, a random access process is triggered.

[0411] It should be noted that the present embodiment only takes the above two topologies as examples to exemplarily illustrate the environmental IoT networking topology, and other different topologies can also be used in actual applications, which are not limited by the present embodiment.

[0412] Next, the system architecture involved in the embodiments of the present application will be described.

[0413] Referring to Figure 4 is a schematic diagram of a communication system provided by an embodiment of the present application. As an example but not limitation, as shown in Figure 4As shown, the communication system can include a first device 41, a second device 42, and a third device 43.

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

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

[0416] For example, in the communication flow of topology 1 as shown, Figure 2 In this case, the first device 41 is an A-IoT controller, the second device 42 is a base station, and the third device 43 is an environmental IoT device. Alternatively, the first device 41 is an AF, the second device 42 is a base station, and the third device 43 is an environmental IoT device. It should be noted that when the first device 41 is an AF and the second device 42 is a base station, the first device 41 can communicate with the second device 42 through a CN.

[0417] For another example, in the communication flow of topology 2 as shown, Figure 3 In this case, the first device 41 is an A-IoT controller, the second device 42 is an intermediate node (such as a UE), and the third device 43 can be an environmental IoT device. Alternatively, the first device 41 can be an AF, the second device 42 can be an intermediate node (such as a UE), and the third device 43 can be an environmental IoT device. It should be noted that when the first device 41 is an A-IoT controller and the second device 42 is an intermediate node, the first device 41 can communicate with the second device 42 through a base station; when the first device 41 is an AF and the second device 42 is an intermediate node, the first device 41 can communicate with the second device 42 through a CN and a base station.

[0418] In some application scenarios of the environmental IoT, the first device 41 can be a base station, the second device 42 can be an intermediate node between the base station and an environmental IoT device, and the third device 43 can be an environmental IoT device.

[0419] For example, in the communication flow of topology 3 as shown, Figure 3In the communication flow of the illustrated topology 2, the base station can communicate with the environmental IoT device through the intermediate node, where the intermediate node functions as a reader / writer, and in this scenario, the intermediate node can be the second device 42. In addition, in this scenario, the AF can communicate with the base station through the CN, and the base station can be triggered to perform the task indicated by the signaling by the base station.

[0420] As described in S203 and S304, after the first device 41 issues the inventory or the signaling, the second device 42 can send an initial message to the third device 43. Optionally, the initial message is a 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 a random access procedure. For example, in the application scenario where the first device 41 issues the inventory, the paging message is used to trigger the sending of the inventory, and accordingly, the third device 43 reports its own identification information so that the first device 41 can perform the inventory according to the identification information of the third device 43. Figure 2 In the illustrated communication flow, S203, after the base station sends the initial message to the environmental IoT device, the environmental IoT device triggers a random access procedure. For another example, in the illustrated communication flow, S304, after the intermediate node sends the initial message to the environmental IoT device, the environmental IoT device triggers a random access procedure. Figure 3 In the illustrated communication flow, S203, after the base station sends the initial message to the environmental IoT device, the environmental IoT device triggers a random access procedure. For another example, in the illustrated communication flow, S304, after the intermediate node sends the initial message to the environmental IoT device, the environmental IoT device triggers a random access procedure.

[0421] In different application scenarios, the paging message is used to trigger the sending of different signaling. For example, in the application scenario where the first device 41 issues the inventory, the paging message is used to trigger the sending of the inventory, and accordingly, the third device 43 reports its own identification information so that the first device 41 can perform the inventory according to the identification information of the third device 43. For another example, in the application scenario where the first device 41 issues the read signaling, the paging message is used to trigger the sending of the read signaling, and accordingly, the third device 43 reports the read data after the random access is successful. For another example, in the application scenario where the first device 41 issues the write signaling, the paging message is used to trigger the sending of the write signaling, and accordingly, the third device 43 can send the response information of the write success after the random access is successful.

[0422] The paging type is single paging, multiple paging, group paging, or full paging, where 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, and the full paging is paging for all devices, and the paging message does not need to include the identification information of the devices. After the device receives the paging message, if the device ID corresponds to the device ID or the device group ID included in the paging message, the device performs a random access procedure. If the paging message does not include the ID of the device, the device can directly perform a random access procedure upon receiving the paging message. The paging message can also be referred to as an initial message.

[0423] In different types of random access procedures, the data carried in the messages transmitted between the second device 42 and the third device 43 can be different.

[0424] For example, in the CFRA procedure: the third device 43 determines the resource of the non-contention random access procedure, and transmits Msg1 to the second device 42; if the random access is successful, the second device 42 transmits Msg2 to the third device 43.

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

[0426] The Msg2 can include a confirmation message or a non-confirmation message. For example, after the second device 42 receives the Msg1, if the random access is successful, the second device 42 can transmit a random access response to the third device 43 to confirm that the random access procedure has been completed, in which case the Msg2 is a confirmation message. For another example, after the second device 42 receives the Msg1, if the random access is successful, the second device 42 can transmit a signaling to the third device 43 to make the third device 43 perform the task corresponding to the signaling, in which case the Msg2 is a non-confirmation message.

[0427] In other cases, if the random access is successful, the second device 42 can also not transmit the Msg2 to the third device 43, and correspondingly, the third device 43 does not receive the Msg2.

[0428] The CBRA can include a two-step contention-based random access (2step CBRA) and a 3step CBRA.

[0429] For example, in the 2step CBRA procedure: the third device 43 determines the resource of the contention random access procedure, and transmits Msg1 to the second device 42; if the random access is successful, the second device 42 transmits Msg2 to the third device 43.

[0430] The Msg1 can include the 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.

[0431] 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 a 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.

[0432] In some other cases, after the random access is successful, the second device 42 can not send the Msg2 to the third device 43, and correspondingly, the third device 43 does not receive the Msg2.

[0433] For example, in a 3-step CBRA procedure: the third device 43 determines a resource for a contention-based random access procedure, and sends the Msg1 to the second device 42; the second device 42 sends the Msg2 to the third device 43; and if the contention has been resolved, the third device 43 sends the Msg3 to the second device 42.

[0434] The Msg1 can include a Random ID generated by the third device 43, but does not include other upper layer data.

[0435] The Msg2 can include a Random ID. Correspondingly, after the third device 43 receives the Msg2, the third device 43 judges whether the Random IDs in the Msg1 and the Msg2 are the same; if the Random IDs are the same, it indicates that the contention has been resolved, and then the third device 43 sends the Msg3 to the second device 42.

[0436] The Msg3 can include identification information of the third device 43.

[0437] In some cases, after the second device 42 receives the Msg3, the second device 42 can send the Msg4 to the third device 43; and correspondingly, the third device 43 receives the Msg4.

[0438] The Msg4 can include an acknowledgement message or a non-acknowledgement message. For example, after the second device 42 receives the Msg3, 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 Msg4 is an acknowledgement message. For another example, after the second device 42 receives the 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 the Msg4 is a non-acknowledgement message.

[0439] The third device can determine whether the random access is complete based on Msg2 or Msg4. For example, if Msg2 includes an unacknowledged message, the access is incomplete; if Msg2 includes an acknowledgment message, the access is complete; or if Msg2 is not received, the access is either incomplete or complete. Similarly, if Msg4 includes an unacknowledged message, the access is incomplete; if Msg4 includes an acknowledgment message, the access is complete; or if Msg4 is not received, the access is either incomplete or complete.

[0440] It should be noted that the embodiments of this application only use the above three types of random access as examples to illustrate the data involved in the random access process. In actual applications, there may be other different access types, which are not limited in this application.

[0441] In some embodiments, the format of the paging message can be a Medium Access Control Protocol Data Unit (MAC PDU) structure or a MAC control element (CE).

[0442] For example, see Figure 5 This is a schematic diagram of the protocol layer provided in an embodiment of this application. It is intended as an example and not a limitation. Figure 5 As shown, the protocol layers on the UE side may include the Non-access stratum (NAS), RRC layer, Packet Data Convergence Protocol (PDCP) layer, Radio Link Control (RLC) layer, MAC layer, and Physical layer (PHY). The protocol layers on the base station side may include RRC, PDCP, RLC, MAC, and PHY. The protocol layers on the core network side may include NAS.

[0443] exist Figure 5 In the protocol layer shown, the format of the paging message can be MAC CE or MAC PDU.

[0444] In other embodiments, communication for the Environmental Internet of Things (AIoT) may introduce a new protocol layer, the A-IoT layer. In this case, the format of the paging message can be the CE of the A-IoT layer.

[0445] For example, see Figure 6 This is a schematic diagram of a protocol layer provided in another embodiment of this application. It is intended as an example and not a limitation. Figure 6As shown, the protocol layers on the environment IoT device side can include NAS, A-IoT layer, MAC and PHY. The protocol layers on the reader side can include A-IoT layer, MAC and PHY. The protocol layers on the core network side can include NAS.

[0446] It can be seen that a new protocol layer A-IoT layer is added in the upper layer of MAC.

[0447] In Figure 6 In the protocol layers shown, the format of the paging message can be CE of A-IoT layer.

[0448] It should be noted that, Figure 5 and Figure 6 are only examples of protocol layers, and other protocol layer structures can also exist in actual applications, and the embodiments of the present application do not make specific limitations on this.

[0449] The computer device related to the embodiments of the present application will be described below.

[0450] Figure 7 is a structural schematic diagram of a computer device provided by the embodiments of the present application, which can be the first device 41, the second device 42 or the third device 43 shown in Figure 4 . Referring to Figure 7 , the computer device includes at least one processor 701, a communication bus 702, a memory 707 and at least one communication interface 704.

[0451] The processor 701 can be a microprocessor (including a central processing unit (CPU) and the like), an application-specific integrated circuit (ASIC), or can be one or more integrated circuits for controlling the execution of the program of the present application.

[0452] The communication bus 702 can include a channel for transmitting information between the above-mentioned components.

[0453] The memory 707 may be a read-only memory (ROM), random access memory (RAM), electrically erasable programmable read-only memory (EEPROM), optical disc (including compact disc read-only memory (CD-ROM), compressed optical disc, laser disc, digital versatile optical disc, Blu-ray disc, etc.), magnetic disk storage medium, or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but not limited thereto. The memory 703 may exist independently and be connected to the processor 701 via the communication bus 702. The memory 703 may also be integrated with the processor 701.

[0454] The communication interface 704 uses any transceiver-like device to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.

[0455] As an example, processor 701 may include one or more CPUs, such as Figure 7 CPU0 and CPU1 are shown in the diagram.

[0456] As an example, the computer device may include multiple processors, such as Figure 7 The processors 701 and 705 are shown. Each of these processors can be a single-core processor or a multi-core processor. Here, "processor" can refer to one or more devices, circuits, and / or processing cores used to process data (such as computer program instructions).

[0457] As an example, the computer device may also include an output device 706 and an input device 707. The output device 706 communicates with the processor 701 and can display information in various ways. For example, the output device 706 may be a liquid crystal display (LCD), a light-emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector, etc. The input device 707 communicates with the processor 701 and can receive user input in various ways. For example, the input device 707 may be a mouse, a keyboard, a touchscreen device, or a sensor device, etc.

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

[0459] 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 in the embodiments of the present application can be run to process according to the communication method provided in the embodiments of the present application. For example, the execution subject of the communication method provided in the embodiments of the present application can be a functional module in the computer device capable of calling and executing programs, or can be a processing device applied to the computer device, such as a chip, etc.

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

[0461] The communication method provided in the embodiments of the present application will be explained and described in detail below.

[0462] In the embodiments of the present application, the same task can be triggered by the first device or the second device. The two cases will be described below.

[0463] In one embodiment in which the same task is triggered by the first device, refer to Figure 8 is a flow chart of a communication method provided in the embodiments of the present application in which the first device triggers the same task. As shown in Figure 8 The communication method can include the following steps:

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

[0465] In one embodiment, the first message can be triggered by a target demand. For example, the target demand can be inventory or reading, writing, activating, deactivating, 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.

[0466] The first message may include the identification information of the third device that needs to perform the target requirements, the specific target requirements that need to be performed such as disk storage or read, write, activate, deactivate, etc., the identification information of the second device that needs to perform the target requirements, and the relevant identification information of the first preset task that needs to be performed.

[0467] 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 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 process corresponding to the first preset task.

[0468] In one embodiment, the first message may be the first preset task itself, used to identify that the first message is for the second device to execute the first preset task, wherein the first preset task is an AF or CN request.

[0469] The second device is a reader, and the first device can be the control node of the reader.

[0470] In one example, such as Figure 2 As shown, in Topology 1, when the first device is an AF (Automatic Feedback Unit) 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 the A-IoT controller. Specifically, the first device sends the first message to the A-IoT controller, and the A-IoT controller then sends the first message to the second device.

[0471] In another example, such as Figure 2 As shown, 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 the 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.

[0472] In another example, such as Figure 3 As shown, 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 the A-IoT controller and the 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 after the base station establishes an RRC connection with the UE, it sends the first message to the UE.

[0473] In another example, such as Figure 3As shown 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 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 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 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. Figure 3 In the embodiments of the present application, different target requirements correspond to different first messages and different first preset tasks.

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

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

[0477] Optionally, according to different target requirements, the identification information of the first preset task can be in different forms.

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

[0479]

[0480] 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 the 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, 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.

[0481] For example, regardless of whether the target requirement is inventory or downlink command, the target requirement corresponds to a flow, and a message corresponding to the flow can include the identification information of the first preset task.

[0482] S802, after the second device receives the first message, the second device performs the first preset task.

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

[0484] Taking the AF as the first device as an example, referring to Figure 9 FIG. 1 is a schematic diagram of a communication flow of the AF triggering the same task provided by the embodiments of the present application. As shown in Figure 9 The communication flow of the AF triggering the same task can include the following steps:

[0485] S901, the first device sends a first message to a second device through a CN.

[0486] The first message includes first information, the first information is used to instruct to perform a preset task, and the first information is identification information of a first preset task.

[0487] Specifically, the first device sends the first message to the CN, and the CN sends the first message to the second device.

[0488] S902, the second device sends a second message to the first device through the CN.

[0489] Optionally, the first message can also include the first preset task. Correspondingly, after the second device receives the first message, the second device obtains specific content of the first preset task from the first message, and then performs the first preset task.

[0490] The second message is used for indicating the execution result of the first preset task.

[0491] In one example, the first message is inventory, and the process of executing the first preset task can include: the second device sending a paging message to one or more third devices; the third device responding after receiving the paging message; and the second device sending the 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.

[0492] In another example, the first message is read signaling, and the process of executing the first preset task can include: the second device sending a paging message to one or more third devices, the third device triggering a random access process after receiving the paging message; the second device sending read signaling to the third device after the random access succeeds; and the third device reading data according to the read signaling, and 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.

[0493] In another example, the first message is write signaling, and the process of executing the first preset task can include: the second device sending a paging message to one or more third devices, the third device triggering a random access process after receiving the paging message; the second device sending write signaling to the third device after the random access succeeds; and the third device writing data according to the write signaling, and sending a write completion response 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 write completion response and the identification information of the third device. The paging message can include the write signaling, so that the writing and the write completion response can be completed in the random access process.

[0494] Optionally, the paging message sent by the second device to the third device can include the first information. Correspondingly, the third device can determine whether the received paging message is a repeated paging or a new paging according to the first information. If it is a new paging, the third device responds 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.

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

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

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

[0498] S903, the first device determines whether the first preset task is completed according to the second message.

[0499] If the first preset task is not completed, S904 is performed; if the first preset task is completed, S906 is performed.

[0500] Optionally, the second message can include the response of the third device received by the second device. In this case, the first device can count the number of the third devices performing the first preset task according to the second message, and determine whether the first preset task is completed according to the counting result.

[0501] Optionally, the second message can also be the statistical data obtained by the second device after counting the response of the third device. In this case, the first device can determine whether the first preset task is completed without counting after receiving the second message.

[0502] Optionally, the second message can also be the result of whether repeated paging is needed obtained by the second device after counting the response of the third device. In this case, the first device can determine whether to perform repeated paging according to its own judgment after receiving the second message.

[0503] In one case, the first device can send the first message to one or more second devices, and the plurality of second devices can perform the first preset task indicated by the first message respectively.

[0504] The second message can include the first information, which is used to identify the execution result of the first preset task.

[0505] Optionally, the second message can include the identification information of the responding third device. Correspondingly, determining whether the first preset task is completed can include: counting the number of the identification information of the third device in the second message; and if the number is less than a preset number, determining that the first preset task is not completed.

[0506] Optionally, the second message can include the second information, which is the identification information of the second device. Correspondingly, determining whether the first preset task is completed can include: counting the number of the response of the third device received by each second device according to the identification information of the second device; and if the number of the response of the third device received by any one second device is less than a preset number, determining that the first preset task is not completed.

[0507] It can be understood that in the case that the first preset task is performed by multiple second devices, the third device required to be paged by different second devices can be the same or different, the first device can determine whether the first preset task is completed according to the statistical result of the multiple second devices, and the first device can select to perform S904 on the first device of a specific unfinished preset task according to whether the first preset task is completed.

[0508] S904, if the preset task is not completed, the first device sends a third message to the second device through the CN.

[0509] Optionally, the third message can include the first information.

[0510] Exemplarily, the first message includes 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 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 after receiving 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 acquires 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 include identification information related to the first preset task and second device identification information 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 executed does not need to be included. The third message can further include indication information of the first preset task indicated by the first information.

[0511] It can be understood that the third message indicates the same preset task as the first message. In the embodiment of the application, the first device can instruct the second device to perform 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 first information in the third message, and subsequently communicate in accordance therewith, 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.

[0512] Optionally, the third message can include third information for indicating the first preset task identified by the first information to be performed.

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

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

[0515] In some examples, the second device can determine whether the first preset task has been executed according to the third information. If the first preset task has been executed, it can be determined whether the first preset task needs to be repeated according to the first preset condition.

[0516] Optionally, the third message can include the first information and the second preset task.

[0517] 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 the new preset task.

[0518] For example, after the second device receives the third message, it 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.

[0519] S905, the second device sends a fifth message to the first device through the CN.

[0520] 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 are described in the embodiment of S902, which will not be repeated here.

[0521] Optionally, the second message can include second information, which is the identification information of the second device.

[0522] 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 message indicating the execution of the first preset task is continuously sent to the second device. 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 are described in the embodiment of S903, which will not be repeated here.

[0523] S906, the first device sends a fourth message to the second device through the CN.

[0524] The fourth message is used to indicate the end of the first preset task.

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

[0526] 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 receives the fourth message and stops the repeated execution of the first preset task.

[0527] In this case, the second device can return the execution result of each execution of the first preset task to the first device; or after receiving the fourth message, the second device returns the execution result of the last execution to the first device; or after receiving the fourth message, the second device performs statistics according to the execution results of multiple executions of the first preset task, and sends the statistical result to the first device.

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

[0529] In an embodiment, the first message further comprises one or more of: 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 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.

[0530] In one example, the first message comprises the preset number of times. After receiving the first message, in a case where the second device can autonomously trigger repeated execution of the first preset task, the second device determines whether a number of times of repeatedly performing the first preset task currently reaches the preset number of times; and if the preset number of times is reached, the second device stops repeatedly performing the first preset task.

[0531] In this case, the second device can return an execution result of each execution of the first preset task to the first device; 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; or the second device can perform statistics according to the execution results of the multiple executions of the first preset task, and send the statistics to the first device after the preset number of times is reached.

[0532] In another example, the first message comprises the preset time length. After receiving the first message, in a case where the second device can autonomously trigger repeated execution of the first preset task, the second device determines whether a time of performing the first preset task reaches the preset time length; and if the preset time length is reached, the second device stops repeatedly performing the first preset task.

[0533] The time of performing the first 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.

[0534] The repeated execution of the first preset task can be periodic execution of the first preset task at a certain time length, and the execution of the first preset task is 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) by the second device.

[0535] In this case, the second device can return an execution result of each execution of the first preset task to the first device; or the second device can return an execution result of the last execution to the first device after the preset time length is reached; or the second device can perform statistics according to the execution results of the multiple executions of the first preset task, and send the statistics to the first device after the preset time length is reached.

[0536] In another example, the first message includes a preset number. After receiving the first message, the second device performs the first preset task, and judges 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.

[0537] For example, the target requirement is inventory, the total number of the third devices in inventory is 100, and the preset number is set to 100. If the number of responses received by the second device from the third devices does not reach 100, the second device repeatedly performs the inventory.

[0538] For another example, the target requirement is inventory, the total number of the third devices in inventory is 100, and the preset number is set to 80. If the number of responses received by the second device from the third devices does not reach 80, it indicates that a certain proportion of paging is not completed, and the second device repeatedly performs the inventory; if the number of responses received by the second device from the third devices reaches 80, it indicates 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.

[0539] In the above examples, ending the first preset task can mean that the second device stops sending messages to the third devices, and / or the second device sends a second message to the first device.

[0540] Optionally, the second message can include indication information 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 second message to feed back that the first preset task has been ended.

[0541] In the above examples, the first device can limit the conditions under which the second device repeatedly performs the first preset task by a preset number of times, a preset number, and / or a preset time length, effectively reducing the situation where the second device cannot break out of repeated execution, and helping to improve the reliability of communication.

[0542] In another example, the first message includes second information. After receiving the first message, the second device judges whether the second information in the first message is consistent with the identification information of the second device; if yes, the second device performs the first preset task indicated by the first message; if no, the second device ignores the first message.

[0543] In this example, the first device can instruct part of the second devices to perform the first preset task according to the second information, helping to improve the flexibility of communication.

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

[0545] 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, which helps to improve the flexibility of communication.

[0546] 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, the second information, and the fourth information.

[0547] It can be understood that the implementation manner and role of the third message including the above information are the same as those of the first message including the above information, and details can be referred to the description in the above embodiments, which will not be repeated here.

[0548] Taking the CN (such as an A-IoT controller) as the first device for example, referring to Figure 10 , which is a schematic diagram of a communication process triggered by the CN for the same task provided in an embodiment of the present application. As shown in Figure 10 , the communication process triggered by the CN for the same task can include the following steps:

[0549] S1001, the first device sends a first message to a second device.

[0550] S1002, the second device sends a second message to the first device.

[0551] S1003, the first device determines whether a first preset task is completed according to the second message.

[0552] S1004, if the preset task is not completed, the first device sends a third message to the second device.

[0553] S1005, the second device sends a fifth message to the first device.

[0554] S1006, the first device sends a fourth message to the second device.

[0555] Figure 10 In the communication process, the first device can directly interact with the second device, and other implementation manners are the same as those of the communication process Figure 9 described above, and details can be referred to the description in the Figure 9 embodiments, which will not be repeated here.

[0556] It can be understood that, Figure 9 in the communication process, the AF is taken as the first device and triggers the same task, and the CN can be used to forward signaling issued by the first device to the second device and forward information reported by the second device to the first device. Figure 10The communication process described above triggers the same task by the CN as the first device. It can be understood that, in the case of the CN as the first device, the AF sends the inventory or other signaling such as reading and writing to the CN, and after the CN receives the inventory or other signaling sent by the AF, S1001-S1006 is executed. Among them, the first message can be the inventory or other signaling sent by the AF to the CN, or a message including the identification information of the preset task corresponding to the inventory or other signaling generated by the CN according to the inventory or other signaling sent by the AF.

[0557] In one embodiment of triggering the same task by the second device, referring to Figure 11 , it is a flow chart of a communication method provided by the second device to trigger the same task. As shown in Figure 11 , the communication method can include the following steps:

[0558] S1101, the second device sends a sixth message to one or more third devices, for instructing the third device to respond according to the sixth message.

[0559] Among them, the sixth message is associated with the preset task, and the sixth message can include the fifth information, and the fifth information includes the preset identification, and the preset identification 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 the first CN identification information, and the identification information included in the sixth message or the seventh message is the first AS identification information, wherein the first AS identification information corresponds to the first CN identification information, and the first CN identification information indicates the first preset task. The identification 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.

[0560] In one embodiment, the sixth message can be triggered by the 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 the message sent by other devices.

[0561] As an example of generating the sixth message by the second device according to the message sent by other devices, the first device sends the 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 other devices 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.

[0562] As another example of the second device generating the sixth message by itself, the second device has a target requirement by itself, in which case, the second device generates the sixth message according to the target requirement by 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.

[0563] Optionally, the sixth message can be a paging message.

[0564] 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 procedure; after the random access procedure between the second device and the third device is completed, the second device sends read / write signaling to the third device.

[0565] Optionally, the sixth message can be signaling.

[0566] 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 procedure; after the random access procedure 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.

[0567] Optionally, the sixth message can include second information, and the second information 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.

[0568] Optionally, the sixth message can include fourth information, and the fourth information is 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.

[0569] Optionally, the sixth message can include sixth information.

[0570] When the sixth information is a preset value, it indicates that a preset task indicated by the sixth message is executed for the first time, i.e., an initial message of a first preset task; when the sixth information is not a preset value, it indicates that the preset task indicated by the sixth message is repeatedly executed, i.e., a repeated message of the first preset task.

[0571] For example, the sixth information can be a flag. When the flag is 0, it indicates a new transmission, i.e., the preset task indicated by the sixth message is performed for the first time; when the flag is 1, it indicates a retransmission, i.e., the preset task indicated by the sixth message is repeatedly performed. For another example, when the flag is 0, it indicates a new transmission; when the flag is not 0, it indicates repeated performance.

[0572] S1102, the third device determines whether to respond according to the sixth message.

[0573] According to different tasks indicated by the sixth message, the response of the third device to the sixth message is also different.

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

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

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

[0577] Optionally, the manner of determining whether to respond can be that the third device judges whether the sixth message has been received; if the sixth message has not been received, and / or, compared with the device identification included in the sixth message, if the identification information of the third device is within the device identification included in the sixth message, or the sixth message does not include the device identification, the third device responds; if the sixth message has been received, the third device can determine whether to ignore the sixth message according to whether the random access process is completed, 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.

[0578] 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 its own identification information to the second device.

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

[0580] For example, in the case that the sixth message is a write signaling, if the third device has received the sixth message, the write signaling is ignored; if the third device has not received the sixth message, the third device performs a write task corresponding 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.

[0581] Optionally, in the case that the sixth message can include fourth information, after the third device receives the sixth message, it is determined whether the fourth message includes the identification information of the third device; if the fourth message includes the identification information of the third device, a response is determined; if the fourth message does not include the identification information of the third device, the sixth message is ignored.

[0582] 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 third devices.

[0583] Optionally, in the case that the sixth message includes sixth information, if the sixth information is a preset value, a response is determined; if the sixth information is not the preset value, it is determined whether the random access process corresponding to the preset task of the sixth message has been completed, if the random access process has been completed, the sixth message is ignored, and if the random access process corresponding to the preset task of the sixth message has not been completed, the sixth message is responded.

[0584] 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, a response is determined; 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, the sixth message is ignored.

[0585] For example, in the case that 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, the identification information of the third device is sent 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, the current paging is ignored.

[0586] It can be understood that, in the case that the sixth message is a read / write signaling, the second device first sends a paging message to the third device, and after the third device receives 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 to the third device, and the sixth message is a read / write signaling.

[0587] It should be noted that the above two ways of determining whether to respond can be executed alternatively or in parallel.

[0588] 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 then 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.

[0589] For example, referring to Figure 12 is a communication flow diagram of the second device triggering the same task provided by the embodiments of the present application. As Figure 12 shown, the communication flow of the second device triggering the same task can include the following steps:

[0590] S1201, the second device sends a sixth message to one or more third devices.

[0591] S1202, the third device determines whether to respond according to the sixth message.

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

[0593] 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:

[0594] One implementation is that the third device replies to each second device.

[0595] Another implementation is that the third device replies to any one second device and ignores the messages sent by other second devices and including the first information.

[0596] Still another implementation is that the third device selects a second device corresponding to a message including the AS ID and the first information to reply, the AS ID is an ID for the third device and the second device to communicate, which can be a device identifier of the third device, and when multiple third devices are received and the messages correspond to the same preset task, the second device with the AS ID is selected to respond, and the messages sent by other second devices and including the first information are ignored. Wherein, 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 it indicates that the second device corresponding to the sixth message and the third device have communicated not long ago, or it indicates that the communication between the second device corresponding to the sixth message and the third device is relatively reliable or the communication efficiency is relatively high.

[0597] S1203, if the response is received, the third device sends an eighth message to the second device.

[0598] The eighth message is used to indicate the response.

[0599] Optionally, the eighth message can include the identification information of the third device.

[0600] In one example, the second device sends the sixth message to a plurality of third devices. For each third device, it is determined whether to respond according to the received sixth message; if the response is received, the eighth message including the identification information of the third device is sent 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 the eighth message sent by the third device is received.

[0601] S1204, the second device determines whether a first preset condition is met.

[0602] Optionally, the first preset condition can include at least one of the following: receiving the third message sent by the first device; the number of the third devices that have responded is inconsistent with a preset number; the response of a target device in the one or more third devices is not received; a conflict is detected in the random access process; a failure is detected in the random access process.

[0603] In one example, as described in the embodiments, Figure 9 and Figure 10 In the embodiments, in the case of triggering the same task by the first device, the first device sends the third message to indicate that the first preset task is repeatedly executed. In this case, the second device determines that the first preset condition is met.

[0604] In another example, the second device counts the responses received and determines whether the number of the third devices that have responded is consistent with the preset number; if the number is consistent, it is determined that the first preset condition is met.

[0605] 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 the eighth messages of the third devices received by the second device does not reach 100, the second device repeatedly executes the inventory.

[0606] 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 the eighth messages of the third devices received by the second device does not reach 80, it indicates that a certain proportion of paging is not completed, the second device determines that the first preset condition is met and repeatedly executes the inventory; if the number of the eighth messages of the third devices received by the second device reaches 80, it indicates that a certain proportion of paging is completed, the second device ends the inventory task.

[0607] Optionally, the preset number 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 according to the target demand.

[0608] Optionally, the preset number can be sent by other device to the second device. For example, in the case that the target demand is triggered by the first device, the first device can send the preset number to the second device.

[0609] In another example, the second device needs the response of a specific third device. In this case, if the response of the target device in the one or more third devices is not received, it is determined that the first preset condition is met. The target device refers to the specific third device in the one or more third devices.

[0610] In the above example, optionally, the sixth message can include the identification information of the target device to indicate the response. Specifically, after receiving the sixth message, the third device determines whether the identification information of the target device included in the sixth message includes the identification information of itself; if yes, 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.

[0611] Of course, the identification information of the target device can be stored in the second device and does not need to 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 yes, the third device sends an eighth message including the identification information of itself to the second device; if not, 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.

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

[0613] S1205, if the first preset condition is met, the second device sends a seventh message to the third device.

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

[0615] Optionally, the seventh message can include the first information. In other words, the seventh message is a different message from the sixth message, but the seventh message and the sixth message indicate the same task.

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

[0617] Optionally, the seventh message can include the second information, which is the 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 seventh message.

[0618] Optionally, the seventh message can include the fourth information, which is the 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.

[0619] Optionally, the seventh message can include the sixth information.

[0620] After S1205, the third device can determine whether to respond according to the seventh message, which is the same as S1102. For details, refer 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.

[0621] 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 a 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.

[0622] In some cases, if the first preset condition is always met, the second device will always repeat the task indicated by the sixth message, which will affect the subsequent communication or cause communication failure.

[0623] To solve the above problems, in some embodiments, a second preset condition for indicating the end of the task can be set.

[0624] Optionally, the second preset condition can include at least one of the following:

[0625] Condition 1: the number of times of performing the preset task reaches a preset number of times.

[0626] Optionally, the preset number of times can be set by the second device itself. For example, in the case of a target demand generated by the second device itself, the second device sets the preset number of times according to the target demand.

[0627] Optionally, the preset number of times can be sent to the second device by other devices. For example, in the case of a target demand triggered by the first device, 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.

[0628] In the case of the first device triggering 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 to the first device after the preset number of times (condition 1 is met); 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.

[0629] Optionally, condition 1 can be judged by the second device, or by other devices.

[0630] In one example, condition 1 is judged by the second device, specifically: in the case of the second device repeatedly performing the preset task, the second device judges whether the number of times of repeatedly performing the preset task currently reaches the preset number of times; if the preset number of times is reached, the second device stops repeatedly performing the preset task.

[0631] In another example, the condition 1 is determined by the other device. For example, in a case that the first device triggers the preset task, the condition 1 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, the first device can determine whether the number of times that the second device has executed the preset task reaches a preset number of times after receiving the execution result returned by the second device each time, and the first device can send a fourth message to the second device to indicate that the preset task is ended if the number of times reaches the preset number of times. Correspondingly, the second device can determine that the condition 7 is met after receiving the fourth message, and the preset task is ended.

[0632] The condition 2 is that a time of executing the preset task reaches a preset time length.

[0633] Optionally, the preset time length can be set by the second device itself. For example, in a case that the target demand is generated by the second device itself, the second device can set the preset time length according to the target demand.

[0634] Optionally, the preset time length can be sent by the other device to the second device. For example, in a 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.

[0635] In a case that 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, the second device can return an execution result of the last execution of the preset task to the first device after the preset time length is reached (the condition 2 is met), or the second device can send a statistical result of the execution results of the preset task to the first device after the preset time length is reached (the condition 2 is met).

[0636] Optionally, the condition 2 can be determined by the second device, or the condition 2 can be determined by the other device.

[0637] In an example, in a case that the second device repeatedly executes the preset task, the second device can determine whether the time of executing the preset task reaches the preset time length, and the second device can stop repeatedly executing the preset task if the preset time length is reached.

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

[0639] In another example, the condition 2 is determined by another device. For example, in a case that the first device triggers the preset task, the condition 2 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. The first device can determine whether the time of the second device executing the preset task 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, and the fourth message is used to indicate the end of the preset task. Correspondingly, after receiving the fourth message, the second device determines that the condition 7 is met, and then ends the preset task.

[0640] The condition 3 is that the number of the third devices that have responded reaches a preset number.

[0641] Optionally, the preset number can be set by the second device itself. For example, in a case that the target demand is generated by the second device itself, the second device sets the preset number according to the target demand.

[0642] Optionally, the preset number can be sent by another device to the second device. For example, in a 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.

[0643] In a case that 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. Alternatively, after the number of the third devices that have responded reaches the preset number (the condition 3 is met), the second device returns an execution result of the last execution of the preset task to the first device. Alternatively, after the condition 3 is met, the second device can perform statistics on the execution results of the preset task, and send the statistics to the first device.

[0644] Optionally, the condition 3 can be determined by the second device, or the condition 3 can be determined by another device.

[0645] In an 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 devices received by the preset task is the preset number. If yes, the second device ends the preset task and sends a second message to the first device. If no, the second device repeats the execution of the preset task.

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

[0647] For another example, the target requirement is inventory, the total number of the third devices in the inventory is 100, and the preset number is set to be 80. If the number of responses of the third devices received by the second device does not reach 80, it indicates that a certain proportion of paging is not completed, and the second device repeatedly executes the inventory; if the number of responses of the third devices received by the second device reaches 80, it indicates that a certain proportion of paging is completed, and the second device ends the preset task.

[0648] For another example, the execution results of multiple executions of the preset task can be accumulated and counted. Specifically, after the first execution of the preset task, the second device determines whether the number of responses of the third devices received in the preset task is the preset number; if the number is less than the preset number, the second device continues to execute the preset task for the second time, and sends the message including the fourth information and / or the sixth information 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 second execution of the preset task, the second device counts the sum of the number of responses of the third devices received in the first and second preset tasks; if the sum reaches the preset number, the preset task is ended, and the second device stops sending the message to the third devices; if the sum does not reach the preset number, the third preset task is continued to be executed, and the subsequent preset tasks are executed in turn.

[0649] For another example, condition 3 is determined by other devices. For example, in the case that the first device triggers the preset task, the first device can determine condition 3. Specifically, the second device can return the execution result of each execution of the preset task to the first device (for example, the execution result includes the number of responses of the third devices received), and 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, 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 condition 7 is met, and then the preset task is ended.

[0650] Condition 4: no response of any third device is received.

[0651] For an 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 the sixth message to one or more third devices; within the first time period after sending the sixth message, if no response of any third device is received, the preset task is ended.

[0652] In another example, a first number of times of not receiving the response can be set. Specifically, after the second device executes the preset task once, the second device does not receive the response from any of the third devices, and the first count is increased by 1. After the second device executes the preset task again, if the second device still does not receive the response from any of the third devices, the first count is increased 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.

[0653] Optionally, the first number of times can be set by the second device or by another device.

[0654] It can be understood that the second device can determine whether the first number of times is reached, or another device can determine whether the first number of times is reached.

[0655] Condition 5: no conflict is detected during execution of the preset task.

[0656] 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 the sixth message to one or more third devices. After the sixth message is sent, if no conflict is detected within the second time period, the preset task is ended.

[0657] In another example, a second number of times of not detecting the conflict can be set. Specifically, after the second device executes the preset task once, no conflict is detected, and the second count is increased by 1. After the second device executes the preset task again, if no conflict is still detected, the second count is increased 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 executes the preset task again, and the process is repeated.

[0658] Optionally, the second number of times can be set by the second device or by another device.

[0659] It can be understood that the second device can determine whether the second number of times is reached, or another device can determine whether the second number of times is reached.

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

[0661] 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 currently executed task. If yes, the current preset task is ended.

[0662] 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 it is higher, the current preset task is ended.

[0663] Optionally, the task indicated by the ninth message and the currently executed preset task can be tasks of the same type. 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.

[0664] Optionally, the task indicated by the ninth message and the currently executed preset task can be tasks of different types. 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.

[0665] Condition 7: receiving the fourth message sent by the first device, the fourth message being used to indicate ending the preset task.

[0666] In one example, the first device determines that the preset task has been completed according to the execution result returned by the second device (such as the second message described in S906 and S1006), and then sends the fourth message to the second device.

[0667] 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 each condition, which will not be described here.

[0668] 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 (such as the second message or the fifth message) of the preset task to the first device.

[0669] In the above examples, the second device can be restricted from repeatedly executing the task according to the second preset condition, effectively reducing the situation in which the second device cannot jump out of repeated execution, and helping to improve the reliability of communication.

[0670] 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 performed respectively.

[0671] For example, the first device, the second device and the third device perform a communication procedure as shown in Figure 9 or Figure 10 , in which the same task is triggered by the first device. Accordingly, based on the first message and the third message sent by the first device, the second device repeatedly performs the same task. 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 facilitating the repeated or consecutive processing of the same task by the first device and the second device and improving communication efficiency.

[0672] For another example, the second device and the third device perform a communication procedure as shown in Figure 12 , in which the same task is triggered by the second device. Accordingly, based on the sixth message and the seventh message sent by the second device, the third device determines whether to respond. 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 facilitating the repeated or consecutive processing of the same task by the second device and the third device. In addition, it can also reduce the repeated response of the third device, thereby reducing the power consumption of the third device.

[0673] In other 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.

[0674] For example, refer to Figure 13 , which is a flowchart of a communication method provided by another embodiment of the present application. As an example but not limitation, as shown in Figure 13 , the communication method can include the following steps:

[0675] S1301, the first device sends a first message to the second device.

[0676] The first message includes first information, and the first information is identification information of a first preset task.

[0677] Step S1301 is the same as S1001, and the specific description can be referred to in the embodiment of S1001.

[0678] S1302, after receiving the first message, the second device sends a sixth message to the third device.

[0679] Optionally, the sixth message can be the first message.

[0680] Optionally, the sixth message can not be the first message. In this case, one way is that the sixth message comprises the first information. In other words, although the sixth message is different from the first message, the sixth message and the first message both comprise the first information, so the sixth message and the first message indicate the same task. Another way is that the sixth message comprises the fifth information, and the fifth information 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 comprised by the sixth message is different from the first information comprised by the first message, the fifth information and the first information indicate the same task.

[0681] In the embodiments of the present application, the sixth message and the first message indicate the same task, and subsequent communication is performed according to this, so as to help to realize the repetitive or consecutive processing of the same task by the first device, the second device and the third device, and improve the communication efficiency.

[0682] S1303, after receiving the sixth message, the third device determines whether to respond according to the sixth message.

[0683] If responding, S1304 is performed; if not responding, the sixth message is ignored.

[0684] S1304, if responding, the third device sends an eighth message to the second device.

[0685] S1305, the second device determines whether the first preset condition is met.

[0686] If the first preset condition is met, S1306 is performed; if the first preset condition is not met, S1307 is performed.

[0687] S1306, if the first preset condition is met, the second device sends a seventh message to the third device.

[0688] 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, which will not be repeated here.

[0689] So far, it is equivalent to that the second device triggers the repeated execution of the first preset task.

[0690] S1307, if the first preset condition is not met, the second device sends a second message to the first device.

[0691] S1308, the first device determines whether the first preset task is completed according to the second message.

[0692] If the first preset task is not completed, S1309 is performed; if the first preset task is completed, S1311 is performed.

[0693] S1309, if the first preset task is not completed, the first device sends a third message to the second device.

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

[0695] After receiving the third message, the second device re-executes S1302-S1306. At this point, it is equivalent to triggering the repeated execution of the first preset task by the first device.

[0696] 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 a second preset condition. The judgment parameters involved in the second preset condition, such as a preset number of times, a preset time length, a preset number, etc., can be sent by the first device to the second 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, and will not be repeated here.

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

[0698] 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 re-executing S1302-S1306 by the second device, if the second device executes a preset task once, the fifth message can include the execution result of the preset task once; if the second device 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.

[0699] 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, it 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, execute S1311.

[0700] Optionally, the first device can determine whether the first preset task is completed according to the execution results of the second message and the fifth message. In this way, the first device determines whether the task is completed based on the execution results of multiple times of the same task, and the same tasks executed before and after are associated with each other; for example, the first device receives a part of responses of the third device after executing the preset task, and the first device can no longer page the third device when executing the same preset task next time. In this way, it is helpful to realize the continuity of the same task, thereby improving the communication efficiency.

[0701] In S1311, if the first preset task is completed, the first device sends a fourth message to the second device.

[0702] S1310-S1311 are the same as S1005-S1006, and details can be referred to the description in the embodiments of S1005-S1006.

[0703] 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 that the second device repeatedly executes 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 that the first device and the second device 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 that the third device executes 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.

[0704] It should be noted that the association between two messages can mean that the two messages are associated with the same preset task.

[0705] 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 flow or preset task identification information. 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 both 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.

[0706] 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 both is used to indicate the same preset task.

[0707] 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 both is used to indicate the same preset task.

[0708] 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 described 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 subsequently communicate 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.

[0709] Figure 14is a structural schematic diagram of a communication apparatus provided in an embodiment of the present application. The apparatus can be implemented by software, hardware or a combination of both into part or whole of a computer device. The computer device can be the first device, the second device or the third device as described above. Figure 7 The computer device described in the embodiments can be the first device, the second device or the third device. Referring to Figure 14 The apparatus includes a sending module 1401 and a receiving module 1402.

[0710] The sending module 1401 is configured to send a message to one or more devices.

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

[0712] The receiving module 1402 is configured to receive a message.

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

[0714] In the embodiments of the present application, the apparatus can send and receive messages to and from one or more devices. 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.

[0715] It should be noted that the communication apparatus provided in the above embodiments is only taken as an example for the division of the above functional modules in communication. In actual applications, the above 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.

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

[0717] 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 again.

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

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

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

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

[0722] The embodiments of the present application also provide a chip system. The chip system 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.

[0723] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. This computer program product includes one or more computer instructions. When these computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic cable, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave) means. The computer-readable storage medium can be any available medium accessible to a computer, or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (such as floppy disks, hard disks, magnetic tapes, etc.), optical media (such as Digital Versatile Discs (DVDs), etc.) or semiconductor media (such as Solid State Disks (SSDs), etc.).

[0724] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0725] The above-described embodiments are optional embodiments provided by this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the technical scope disclosed in this application should be included within the protection scope of this application.

Claims

1. A communication method, characterized in that, Applied to a first device, the method includes: Send a first message to the second device, the first message being used to instruct the second device to perform a first preset task; The first message includes first information, which is used to identify the first preset task.

2. The method according to claim 1, characterized in that, The method further includes: Send a third message to the second device, the third message including the first information, the third message being used to instruct the execution of the first preset task identified by the first information; or, A fourth message is sent to the second device, the fourth message being used to indicate the termination of the first preset task.

3. The method according to claim 2, characterized in that, The method further includes: Determine the execution result of the first preset task; Based on the execution result of the first preset task, if it is determined that the first preset task has not been completed, the third message is sent to the second device; or, Based on the execution result of the first preset task, the first preset task is determined to be completed, and the fourth message is sent to the second device.

4. The method according to claim 3, characterized in that, Determining that the first preset task has not been completed includes: The number of responding third-party devices is inconsistent with the preset number; And / or, no response was received from the target device in one or more third devices; Determining that the first preset task has been completed includes: The number of responding third-party devices is consistent with the preset number; And / or, a response has been received from the target device in one or more third devices.

5. The method according to claim 2 or 3, characterized in that, The method further includes: The device receives the execution result of at least one first preset task sent by the second device, and sends the third message to the second device based on the execution result of the at least one first preset task.

6. The method according to claim 5, characterized in that, Receive the identification information of the second device and / or the identification information of the third device sent by the second device.

7. The method according to any one of claims 2 to 6, characterized in that, The third message further includes third information, which is used to identify the first preset task, and the third message is used to instruct the execution of the first preset task identified by the first information.

8. The method according to claim 7, characterized in that, The third message also includes a second preset task, which is used to instruct the execution of the second preset task.

9. The method according to any one of claims 2 to 8, characterized in that, The first message and / or the third message further include at least one of the following: a preset number of times, a preset duration, a preset quantity, a second message, and a fourth message; 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.

10. A communication method, characterized in that, Applied to a second device, the method includes: Send a sixth message to one or more third devices to instruct the third devices to respond according to the sixth message; The sixth message is associated with the first preset task.

11. The method according to claim 10, characterized in that, The method further includes: Based on a first preset condition, a seventh message is sent to one or more third devices, the seventh message being associated with the first preset task.

12. The method according to claim 11, characterized in that, The first preset condition includes at least one of the following: The system receives a third message from the first device; the third message is used to instruct the execution of the first preset task. The number of the third devices that have responded is inconsistent with the preset number; No response was received from the target device among the one or more third devices; A collision was detected during the random access process; A failure was detected during the random access process.

13. The method according to any one of claims 10 to 12, characterized in that, Sending the sixth message to one or more third devices includes: Receive 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; The sixth message is sent to the one or more third devices in accordance with the first message.

14. The method according to any one of claims 10 to 13, characterized in that, The method further includes: Based on the response of the one or more third devices to the sixth message, a second message is sent to the first device. The second message is used to indicate the execution result of the first preset task, and the second message includes the first information.

15. The method according to claim 14, characterized in that, The second message also includes the first information, the second information, and / or the fourth information, wherein the second information is the identification information of the second device, and the fourth information is the identification information of the third device.

16. The method according to any one of claims 12 to 15, characterized in that, The third message includes the first information and / or the third information, the third information being used to associate with the first preset task, and the third message being used to instruct the execution of the first preset task.

17. The method according to claim 16, characterized in that, The third message also includes a second preset task, which is used to instruct the execution of the second preset task.

18. 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: preset number of times, preset duration, preset quantity, second information, and fourth information; 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.

19. The method according to any one of claims 10 to 18, characterized in that, The method further includes: Based on the second preset condition, the first preset task is terminated.

20. The method according to claim 19, characterized in that, The termination of the first preset task includes: Stop sending messages to the third device, and / or send a message to the first device indicating the execution result of the first preset task.

21. The method according to claim 19 or 20, characterized in that, The second preset condition includes at least one of the following: The first preset task has been executed a preset number of times; The execution time of the first preset task reaches the preset duration; The number of the third devices that have responded has reached a preset number; No response was received from any of the third devices; No conflict was detected during the execution of the preset task; Upon receiving a ninth message, the priority of the task indicated by the ninth message is higher than the priority of the first preset task; A fourth message is received from the first device, the fourth message being used to indicate the termination of the first preset task.

22. 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, the second information, the fourth information, the fifth information, and / or the 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. 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.

23. A communication method, characterized in that, Applied to a third device, the method includes: Receive a sixth message sent by the second device; wherein the sixth message is associated with a first preset task; Determine whether to respond based on the sixth message.

24. The method according to claim 23, characterized in that, The step of determining whether to respond based on the sixth message includes: Determine whether the sixth message has been received; If the sixth message has not been received, an eighth message is sent to the second device, wherein the eighth message is used to indicate a response.

25. The method according to claim 23 or 24, characterized in that, The method further includes: If a sixth message is received from multiple second devices, at least one of the sixth messages sent by the second devices shall be selected to respond.

26. The method according to claim 25, characterized in that, The step of determining whether to respond based on the sixth information includes: If the random access process between the second device and the third device corresponding to the first preset task associated with the sixth message is not completed, then an eighth message is sent to the second device, wherein the eighth message is used to indicate a response.

27. The method according to any one of claims 23 to 26, characterized in that, 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 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. 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.

28. The method according to claim 27, characterized in that, The method further includes: If the sixth message includes the sixth information, and the sixth information is the preset value, an eighth message is sent to the second device; wherein the eighth message is used to indicate a response; or, Based on the fact that the sixth message is not the preset value, and the random access process between the second device and the third device corresponding to the first preset task associated with the sixth message has not been completed, an eighth message is sent to the second device.

29. The method according to claim 27, characterized in that, The method further includes: If the seventh message includes 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; Alternatively, based on the fact that the sixth information is not the preset value, and the random access process between the second device and the third device corresponding to the first preset task associated with the sixth message has not been completed, an eighth message is sent to the second device.

30. A communication device, characterized in that, The communication device includes a processing unit and a transceiver unit, and is used to perform the method as described in any one of claims 1 to 9, or the method as described in any one of claims 10 to 22, or the method as described in any one of claims 23 to 29.

31. A communication device, characterized in that, The device includes a processor coupled to a memory storing a program or instructions for performing the method as described in any one of claims 1 to 9, or storing a program or instructions for performing the method as described in any one of claims 10 to 22, or storing a program or instructions for performing the method as described in any one of claims 23 to 29.

32. A communication system, characterized in that, Includes the communication device as described in claim 31.

33. A computer-readable storage medium having a computer program or instructions stored thereon, characterized in that, When the computer program or instructions are executed, the computer performs the method as described in any one of claims 1 to 9, or the method as described in any one of claims 10 to 22, or the method as described in any one of claims 23 to 29.

34. A computer program product, characterized in that, Includes a computer program that, when run, causes the method as described in any one of claims 1 to 9 to be performed, or causes the method as described in any one of claims 10 to 22 to be performed, or causes the method as described in any one of claims 23 to 29 to be performed.