Subscription message processing method and device, equipment, storage medium and program product
Patent Information
- Application Number
- CN202280098000.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-15
- Publication Date
- 2025-02-25
AI Technical Summary
In the Internet of Things system, when canceling a subscription, the parameter settings used to indicate the maximum interval and minimum interval of subscription data reports in the subscription request message are not uniform, resulting in incompatible message subscriptions between devices from different manufacturers and limiting the application of message subscriptions. scene.
When canceling a subscription, the subscription device generates a first subscription message that does not contain specified parameters, or a first subscription message that contains a specific value or a random value. It clearly sets the maximum interval and minimum interval parameters in the subscription request message, and unifies the procedures for canceling message subscriptions. Behavior expands the application scenarios of message subscription.
By clearly setting the parameters for unsubscription, the subscription behavior is unified, the application scenarios of message subscription are expanded, and the compatibility issues caused by inconsistent parameter settings are solved.
Smart Images

Figure CN119522563A_ABST
Abstract
Description
Subscription message processing method, device, equipment, storage medium and program product Technical Field
[0001] The present application relates to the field of Internet of Things technology, and in particular to a subscription message processing method, apparatus, device, storage medium, and program product. Background Art
[0002] With the continuous development of wireless communication technology, the application of Internet of Things (IoT) in production and life is becoming more and more extensive.
[0003] In related technologies, a subscribing device in an IoT system can request a subscription from a subscribed device. Specifically, the subscribing device can send a subscription request message to the subscribed device. After the subscription is successful, the subscribed device can report the status of the subscribed resources to the subscribing device regularly or irregularly.
[0004] Summary of the Invention
[0005] The embodiments of the present application provide a subscription message processing method, apparatus, device, storage medium, and program product. The technical solution is as follows:
[0006] In one aspect, an embodiment of the present application provides a method for processing a subscription message, the method being executed by a subscription device, the method comprising:
[0007] Generate a first subscription request message; the first subscription request message is used to delete the subscription relationship between the subscribing device and the subscribed device; the first subscription request message does not include a specified parameter, or the parameter value of the specified parameter included in the first subscription request message is a specific value or a random value; the specified parameter includes at least one of a first parameter and a second parameter; the first parameter is used to indicate the maximum value of the maximum interval of the subscription data report; the second parameter is used to indicate the minimum value of the minimum interval of the subscription data report; the subscription data report is used to indicate the status of the resource subscribed by the subscribing device;
[0008] Send the first subscription request message to the subscribed device.
[0009] In one aspect, an embodiment of the present application provides a method for processing a subscription message, the method being executed by a subscribed device, the method comprising:
[0010] Receive a first subscription request message sent by a subscription device; the first subscription request message is used to delete the subscription relationship between the subscription device and the subscribed device; the first subscription request message does not contain a specified parameter, or the parameter value of the specified parameter contained in the first subscription request message is a specific value or a random value; the specified parameter includes at least one of a first parameter and a second parameter; the first parameter is used to indicate the maximum value of the maximum interval of the subscription data report; the second parameter is used to indicate the minimum value of the minimum interval of the subscription data report; the subscription data report is used to indicate the status of the resource subscribed by the subscription device.
[0011] On the other hand, an embodiment of the present application provides a subscription message processing device, the device comprising:
[0012] A message generation module, configured to generate a first subscription request message; the first subscription request message is used to delete a subscription relationship between a subscribing device and a subscribed device; the first subscription request message does not include a specified parameter, or the parameter value of the specified parameter included in the first subscription request message is a specific value or a random value; the specified parameter includes at least one of a first parameter and a second parameter; the first parameter is used to indicate a maximum value of a maximum interval for a subscription data report; the second parameter is used to indicate a minimum value of a minimum interval for the subscription data report; the subscription data report is used to indicate a status of a resource subscribed to by the subscribing device;
[0013] A sending module is used to send the first subscription request message to the subscribed device.
[0014] On the other hand, an embodiment of the present application provides a subscription message processing device, the device comprising:
[0015] Receive a first subscription request message sent by a subscription device; the first subscription request message is used to delete the subscription relationship between the subscription device and the subscribed device; the first subscription request message does not contain a specified parameter, or the parameter value of the specified parameter contained in the first subscription request message is a specific value or a random value; the specified parameter includes at least one of a first parameter and a second parameter; the first parameter is used to indicate the maximum value of the maximum interval of the subscription data report; the second parameter is used to indicate the minimum value of the minimum interval of the subscription data report; the subscription data report is used to indicate the status of the resource subscribed by the subscription device.
[0016] On the other hand, an embodiment of the present application provides a computer device, wherein the computer device is implemented as an information reporting device, and the computer device includes a processor, a memory, and a transceiver;
[0017] The memory stores a computer program, and the processor executes the computer program so that the computer device implements the above subscription message processing method.
[0018] On the other hand, an embodiment of the present application provides a computer device, which includes a processor, a memory and a transceiver, wherein the memory stores a computer program, and the computer program is used to be executed by the processor to implement the above-mentioned subscription message processing method.
[0019] On the other hand, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned subscription message processing method.
[0020] On the other hand, the present application also provides a chip, which is used to run in a computer device so that the computer device executes the above-mentioned subscription message processing method.
[0021] In another aspect, the present application provides a computer program product, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the above-described subscription message processing method.
[0022] On the other hand, the present application provides a computer program, which is executed by a processor of a computer device to implement the above-mentioned subscription message processing method.
[0023] The technical solutions provided in the embodiments of the present application can bring the following beneficial effects:
[0024] When a subscribing device cancels a subscription from a subscribed device, it can generate a first subscription message that does not contain a specified parameter, or generate a first subscription message that contains a specified parameter with a parameter value that is a specific value or a random value. This provides a clear way to set the maximum value and / or minimum value of the parameters in the subscription request message used to indicate the maximum interval of the subscription data report in the subscription cancellation scenario, unifies the behavior of canceling message subscriptions, and expands the application scenarios of message subscriptions. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0026] FIG1 is a schematic diagram of a network architecture of the Internet of Things provided by one embodiment of the present application;
[0027] FIG2 is a schematic diagram of a subscription process provided by an exemplary embodiment of the present application;
[0028] FIG3 is a flowchart of a subscription message processing method provided by an embodiment of the present application;
[0029] FIG4 is a flowchart of a subscription message processing method provided by an embodiment of the present application;
[0030] FIG5 is a flowchart of a subscription message processing method provided by an embodiment of the present application;
[0031] FIG6 is a schematic diagram of a subscription process involved in the embodiment shown in FIG5 ;
[0032] FIG7 is a block diagram of a subscription message processing device provided by an embodiment of the present application;
[0033] FIG8 is a block diagram of a subscription message processing device provided by an embodiment of the present application;
[0034] FIG9 is a schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0036] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. A person skilled in the art will appreciate that, with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
[0037] Please refer to Figure 1, which shows a schematic diagram of the network architecture of the Internet of Things provided by one embodiment of the present application. The network architecture of the Internet of Things may include: Internet of Things devices 110 (shown in Figure 1 as Internet of Things devices 110a, 110b, 110c, and 110d) and a configuration device 120; optionally, the network architecture may also include a bridge device 130;
[0038] The IoT device 110 may refer to a device in the IoT that is used to provide client functions or server functions corresponding to the IoT protocol.
[0039] For example, the IoT device 110 may be a smart home device, such as a smart switch, a smart lamp, a smart TV, a smart air conditioner, a smart refrigerator, a smart microwave oven, a smart rice cooker, a sweeping robot, and the like.
[0040] Alternatively, the IoT device 110 may be an industrial production equipment, such as a lathe, an industrial robot, a solar panel, a wind turbine, and the like.
[0041] Alternatively, the IoT device 110 may be a commercial service device, such as an unmanned vending machine, etc.
[0042] Alternatively, the IoT device 110 may be a sensing device, such as a surveillance camera, an infrared sensor, a sound sensor, a temperature sensor, and the like.
[0043] In one possible implementation, the configuration device 120 is a user-side terminal device. For example, the configuration device 120 may be a smart controller, a smart remote control, a smartphone, a tablet computer, a smart watch, a smart TV, a smart speaker, a smart switch, a gateway, or the like. Alternatively, the configuration device 120 may be a personal computer, such as a desktop computer, a laptop computer, or a personal workstation.
[0044] In another possible implementation, the configuration device 120 refers to a client entity (which may be a virtual entity) running on the terminal device. For example, the configuration device 120 may be an application (Application, APP) running in the terminal device for accessing, controlling, and managing the IoT device.
[0045] The bridge device 130 is used to enable interaction between two devices supporting different IoT protocols. The bridge device 130 provides information conversion and transmission services between IoT devices 110 supporting different IoT protocols, or between IoT devices 110 supporting different IoT protocols and the configuration device 120.
[0046] The bridge device 130 may be a device dedicated to bridging, or the bridge device 130 may be an intelligent device with a bridging function, such as a gateway or a router.
[0047] In the embodiment of the present application, the IoT device 110, the configuration device 120, and the bridge device 130 may be electronic devices that comply with the same or different IoT protocols. For example, they may be electronic devices that comply with the Matter protocol under the Connectivity Standards Alliance (CSA).
[0048] In FIG1 , when the IoT device 110 a and the IoT device 110 c support the same protocol specification, a secure connection may be established between the IoT device 110 a and the IoT device 110 c , for example, a secure connection may be established based on the Matter specification.
[0049] When the IoT device 110 b and the IoT device 110 d support different protocol specifications, for example, the IoT device 110 b is a Zigbee device and the IoT device 110 d is a Matter device, the IoT device 110 b and the IoT device 110 d may be connected via the bridge device 130 .
[0050] Please refer to Figure 2, which shows a schematic diagram of a subscription process provided by an exemplary embodiment of the present application. As shown in Figure 2, the subscription process may include the following steps:
[0051] S21, the subscription device (ie, subscription initiator) initiates the subscription process and sends a subscription request message.
[0052] The message content of the subscribe request message may be as shown in Table 1 below.
[0053] Table 1
[0054]
[0055] In the subscribe request message, the keepsubscriptions parameter specifies that upon receiving a subscribe request with a value of FALSE, the publisher must delete all subscription relationships between the initiator and the publisher (also referred to as the subscribed device in this embodiment). Maxintervalceiling specifies the maximum interval between notification messages. Minintervalfloor specifies the minimum interval between notification messages.
[0056] S22: After receiving the subscription request, the publisher checks whether the initiator has the authority to subscribe to the subscription target (the subscribed resource) and sends the current status of the subscription target (such as attributes (such as temperature value, light on / off, etc.) or events) via a report data request message.
[0057] S23, after receiving the report data request message, the Initiator replies with a status response (status response message), which indicates that it has received the current status of the subscription target.
[0058] S24: After receiving the status response in S23, the publisher generates and returns a subscribe response message.
[0059] The message "subscribe response" may include the content shown in Table 2 below.
[0060] Table 2
[0061]
[0062] In Table 2 above, the meanings of the parameters are as follows:
[0063] Subscribe ID: Subscription ID, used to identify a subscription relationship between two devices;
[0064] MinInterval: the minimum interval of notification messages (i.e. data report messages);
[0065] MaxInterval: The maximum interval between notification messages.
[0066] S25-S26: When the subscription target changes, the Publisher sends a notification message data report to the Initiator, and the Initiator replies with a status response message.
[0067] In the above solution, the subscribe request message must carry the MaxIntervalCeiling and MinIntervalfloor fields. However, when keepsubscriptions=false, these two fields have no practical meaning. Furthermore, there is no clear solution for how the subscribing device should set MaxIntervalCeiling and MinIntervalfloor when keepsubscriptions=false. As a result, the current settings of the MaxIntervalCeiling and MinIntervalfloor fields in the subscription request message are inconsistent, leading to potential incompatibility between message subscriptions between devices from different manufacturers, and limiting the application scenarios of message subscriptions.
[0068] Please refer to FIG3 , which shows a flowchart of a subscription message processing method provided by one embodiment of the present application. The method can be executed by a subscription device. For example, the subscription device can be one of the IoT device 110 or the configuration device 120 in the network architecture shown in FIG1 . The method can include the following steps:
[0069] Step 301, generate a first subscription request message; the first subscription request message is used to delete the subscription relationship between the subscribing device and the subscribed device; the first subscription request message does not contain a specified parameter, or the parameter value of the specified parameter contained in the first subscription request message is a specific value or a random value; the specified parameter includes at least one of the first parameter and the second parameter; the first parameter is used to indicate the maximum value of the maximum interval of the subscription data report; the second parameter is used to indicate the minimum value of the minimum interval of the subscription data report; the subscription data report is used to indicate the status of the resource subscribed by the subscribed device.
[0070] The first subscription request message may be a message generated by the subscribing device when canceling the subscription relationship with the subscribed device.
[0071] Step 302: Send a first subscription request message to the subscribed device.
[0072] To sum up, in the scheme shown in the embodiment of the present application, when the subscribing device cancels the subscription to the subscribed device, it can generate a first subscription message that does not contain the specified parameters, or generate a first subscription message containing the specified parameters with parameter values that are specific values or random values. This provides a clear method for setting the maximum value and / or minimum value of the parameters in the subscription request message for indicating the maximum interval of the subscription data report in the subscription cancellation scenario, unifies the behavior of canceling message subscriptions, and expands the application scenarios of message subscriptions.
[0073] Please refer to FIG4 , which shows a flowchart of a subscription message processing method provided by one embodiment of the present application. The method may be executed by a subscribed device. For example, the subscribed device may be one of the IoT devices 110 in the network architecture shown in FIG1 . The method may include the following steps:
[0074] Step 401, receiving a first subscription request message sent by a subscribing device; the first subscription request message is used to delete the subscription relationship between the subscribing device and the subscribed device; the first subscription request message does not contain a specified parameter, or the parameter value of the specified parameter contained in the first subscription request message is a specific value or a random value; the specified parameter includes at least one of a first parameter and a second parameter; the first parameter is used to indicate the maximum value of the maximum interval of the subscription data report; the second parameter is used to indicate the minimum value of the minimum interval of the subscription data report; the subscription data report is used to indicate the status of the resource subscribed by the subscribed device.
[0075] To sum up, in the scheme shown in the embodiment of the present application, when the subscribing device cancels the subscription to the subscribed device, it can generate a first subscription message that does not contain the specified parameters, or generate a first subscription message containing the specified parameters with parameter values that are specific values or random values. This provides a clear method for setting the maximum value and / or minimum value of the parameters in the subscription request message for indicating the maximum interval of the subscription data report in the subscription cancellation scenario, unifies the behavior of canceling message subscriptions, and expands the application scenarios of message subscriptions.
[0076] Please refer to FIG5 , which shows a flowchart of a subscription message processing method provided by an embodiment of the present application. The method can be interactively executed by a subscribing device and a subscribed device. The subscribing device can be one of the IoT devices 110 or the configuration device 120 in the network architecture shown in FIG1 , and the subscribed device can be one of the IoT devices 110 in the network architecture shown in FIG1 . The method can include the following steps:
[0077] Step 501: The subscribing device generates a first subscription request message; the first subscription request message is used to delete the subscription relationship between the subscribing device and the subscribed device; the first subscription request message does not contain a specified parameter, or the parameter value of the specified parameter contained in the first subscription request message is a specific value or a random value.
[0078] The parameter value of the keep subscription field in the first subscription request message is a first parameter value; the first parameter value is used to indicate deletion of the subscription relationship between the subscribing device and the subscribed device.
[0079] For example, the keep subscription field may be the keepkeepsubscriptions field in Table 1, and the first parameter value may be false. In other words, the false parameter value in the keepkeepsubscriptions field is used to identify that the first subscription request message is a message for deleting a subscription relationship.
[0080] Among them, the specified parameters include at least one of a first parameter and a second parameter; the first parameter is used to indicate the maximum value of the maximum interval of the subscription data report; the second parameter is used to indicate the minimum value of the minimum interval of the subscription data report; the subscription data report is used to indicate the status of the resources subscribed by the subscribed device.
[0081] In an embodiment of the present application, the above-mentioned subscription data report can be the data report message in the embodiment shown in Figure 2 above.
[0082] The first parameter may be the MaxIntervalCeiling field in the embodiment shown in FIG. 2 ; the second parameter may be the MinIntervalFloor field in the embodiment shown in FIG. 2 .
[0083] In a possible implementation, the subscription device may not set the MaxIntervalCeiling field and / or the MinIntervalFloor field in the first subscription request.
[0084] In another possible implementation, when the parameter value of the designated parameter included in the first subscription request message is a specific value, the parameter value of the designated parameter may satisfy one of the following conditions:
[0085] 1) The parameter value of the specified parameter is 0.
[0086] For example, when the designated parameter is the MaxIntervalCeiling field, the subscribing device may set the parameter value of the MaxIntervalCeiling field in the first subscription message to 0.
[0087] For another example, when the specified parameter is the MinIntervalFloor field, the subscribing device may set the parameter value of the MinIntervalFloor field in the first subscription message to 0.
[0088] For another example, when the specified parameters are the MaxIntervalCeiling field and the MinIntervalFloor field, the subscribing device may set the parameter values of the MaxIntervalCeiling field and the MinIntervalFloor field in the first subscription message to 0.
[0089] 2) The parameter value of the specified parameter is a specified non-zero value.
[0090] For example, when the designated parameter is the MaxIntervalCeiling field, the subscribing device may set the parameter value of the MaxIntervalCeiling field in the first subscription message to 1.
[0091] For another example, when the specified parameter is the MinIntervalFloor field, the subscribing device may set the parameter value of the MinIntervalFloor field in the first subscription message to 2.
[0092] For another example, when the specified parameters are the MaxIntervalCeiling field and the MinIntervalFloor field, the subscribing device may set the MaxIntervalCeiling field in the first subscription message to 1, and set the parameter value of the MinIntervalFloor field to 2.
[0093] 3) The parameter value of the specified parameter is NULL.
[0094] For example, when the designated parameter is the MaxIntervalCeiling field, the subscribing device may set the parameter value of the MaxIntervalCeiling field in the first subscription message to NULL.
[0095] For another example, when the specified parameter is the MinIntervalFloor field, the subscribing device may set the parameter value of the MinIntervalFloor field in the first subscription message to NULL.
[0096] For another example, when the specified parameters are the MaxIntervalCeiling field and the MinIntervalFloor field, the subscribing device may set the parameter values of the MaxIntervalCeiling field and the MinIntervalFloor field in the first subscription message to NULL.
[0097] 4) The parameter value of the first parameter in the first subscription request message is equal to the parameter value of the second parameter in the first subscription request message.
[0098] For example, when the specified parameter is the MaxIntervalCeiling field, the subscribing device can refer to the parameter value of the MinIntervalFloor field in the first subscription message and set the MaxIntervalCeiling field to the same value. For example, when the parameter value of the MinIntervalFloor field in the first subscription message is set to 3, the subscribing device will also set the parameter value of the MaxIntervalCeiling field to 3.
[0099] For another example, when the designated parameter is the MinIntervalFloor field, the subscribing device may refer to the parameter value of the MaxIntervalCeiling field in the first subscription message and set the MinIntervalFloor field to the same value.
[0100] For another example, when the specified parameters are the MaxIntervalCeiling field and the MinIntervalFloor field, the subscribing device can set the parameter values of the MaxIntervalCeiling field and the MinIntervalFloor field in the first subscription message to the same value, for example, both to 3, or both to the same random value.
[0101] In another possible implementation, the subscription device may also set the parameter value of the MaxIntervalCeiling field and / or the MinIntervalFloor field to a random value in the first subscription request.
[0102] Step 502: The subscribing device sends a first subscription request message to the subscribed device; the subscribed device receives the first subscription request message.
[0103] After generating the first subscription request message, the subscribing device may send the first subscription request message to the subscribed device.
[0104] Step 503: The subscribed device deletes the subscription relationship between the subscribing device and the subscribed device.
[0105] After receiving the first subscription request message, the subscribed device determines that the subscribing device wants to delete the subscription relationship in the subscribed device, and can query the responsive subscription relationship according to the identification information of the subscribing device, and delete the queried subscription relationship.
[0106] For example, when the subscribed device parses the first subscription request message and determines that KeepSubscriptions=False in the first subscription request message, it is determined that the subscribing device wants to delete the subscription relationship in the subscribed device.
[0107] In a possible implementation, when the parameter value of the designated parameter included in the first subscription request message is a specific value or a random value, the subscribed device may not process the parameter value of the designated parameter.
[0108] For example, when the subscribed device parses the first subscription request message and determines that KeepSubscriptions=False in the first subscription request message, it may not process the specified parameters in the message (such as the MaxIntervalCeiling field and / or the MinIntervalFloor field).
[0109] Optionally, not processing the specified parameter in the message may include not reading the parameter value in the specified parameter, or not setting the value of MaxInterval and / or MinInterval according to the parameter value in the specified parameter, etc.
[0110] In a possible implementation, when the first subscription request message does not include a specified parameter, or when the parameter value of the specified parameter included in the first subscription request message is a specific value, the subscribed device may further perform the following steps:
[0111] Performing a validity check on the message format of the first subscription request message;
[0112] If the message format of the first subscription request message passes the legality check, the subscription relationship between the subscribing device and the subscribed device is deleted.
[0113] In an embodiment of the present application, in order to ensure the security and accuracy of the deletion of the subscription relationship, when the first subscription request message does not contain a specified parameter, or when the parameter value of the specified parameter contained in the first subscription request message is a specific value, when the subscribed message receives the above-mentioned first subscription request message and determines that the subscribing device wants to delete the subscription relationship in the subscribed device, it can perform a legitimacy check on the first subscription request message based on the parameter value of the specified parameter, and when the legitimacy check passes, delete the subscription relationship between the subscribing device and the subscribed device.
[0114] Optionally, if the legitimacy check fails, the first subscription request message may have a transmission error, or the first subscription request message may be sent by an illegal device or hijacked by a virus. At this time, the subscribed device may not execute the step of deleting the subscription relationship between the subscribing device and the subscribed device.
[0115] In a possible implementation, the process of checking the validity of the message format of the first subscription request message may include:
[0116] If the first subscription request message does not include the specified parameter, the specified parameter is queried in the first subscription request message; if the specified parameter is not found, it is determined that the message format of the first subscription request message passes the legality check.
[0117] In an embodiment of the present application, if the subscribed device knows in advance (for example, as specified in the protocol) that the subscription message used to delete the subscription relationship does not contain the specified parameters, then when the subscribed device receives the above-mentioned first subscription request message and determines that the subscribing device wants to delete the subscription relationship in the subscribed device, it can query the specified parameters in the first subscription request message. If the specified parameters are not queried, it is determined that the message format of the first subscription request message passes the legality check; optionally, if the above-mentioned specified parameters are queried, it can be determined that the message format of the first subscription request message fails the legality check.
[0118] In a possible implementation, the process of checking the validity of the message format of the first subscription request message may include:
[0119] When the parameter value of the specified parameter included in the first subscription request message is a specific value, the parameter value of the specified parameter included in the first subscription request message is read; when the parameter value of the read specified parameter is a specific value, it is determined that the message format of the first subscription request message passes the legality check.
[0120] In an embodiment of the present application, if the subscribed device knows in advance (for example, as specified by the protocol) that the parameter value of the specified parameter contained in the subscription message used to delete the subscription relationship is a specific value, then when the subscribed device receives the above-mentioned first subscription request message and determines that the subscribing device wants to delete the subscription relationship in the subscribed device, it can read the parameter value of the specified parameter in the first subscription request message. If the read parameter value is the specified value, it is determined that the message format of the first subscription request message passes the legitimacy check; optionally, if the read parameter value is not the specified value, it can be determined that the message format of the first subscription request message fails the legitimacy check.
[0121] For example, if the subscribed device already knows in advance that the parameter value of the specified parameter contained in the subscription message used to delete the subscription relationship is 0, if the parameter value of the specified parameter read by the subscribed device is 0, it is determined that the message format of the first subscription request message passes the legality check.
[0122] For another example, if the subscribed device already knows in advance that the parameter value of the specified parameter contained in the subscription message used to delete the subscription relationship is a specified non-zero value, if the parameter value of the specified parameter read by the subscribed device is the specified non-zero value, it is determined that the message format of the first subscription request message passes the legality check.
[0123] For another example, if the subscribed device already knows in advance that the parameter value of the specified parameter contained in the subscription message used to delete the subscription relationship is NULL, if the parameter value of the specified parameter read by the subscribed device is NULL, it is determined that the message format of the first subscription request message passes the legality check.
[0124] For another example, if the subscribed device already knows in advance that the parameter value of the first parameter in the subscription message used to delete the subscription relationship is equal to the parameter value of the second parameter, if the parameter value of the MaxIntervalCeiling field and the parameter value of the MinIntervalFloor field read by the subscribed device are equal, it is determined that the message format of the first subscription request message passes the legality check.
[0125] In a possible implementation, after the subscribed device receives the first subscription request message, it may further perform the following steps:
[0126] In response to a first subscription request message, a first subscription report message is sent to the subscribing device; the first subscription report message is used to indicate the status of the resources subscribed to by the subscribed device in the subscribed device; a first status response message sent by the subscribed device in response to the first subscription report message is received; the first status response message is used to indicate that the first subscription report message has been successfully received.
[0127] Correspondingly, after the subscription device sends the first subscription request message, it may further perform the following steps:
[0128] A first subscription report message is received from the subscribed device in response to the first subscription request message; and a first status response message is sent to the subscribed device.
[0129] In an embodiment of the present application, after receiving the first subscription request message, the subscribing device may report the status of the subscription target again, that is, send a subscription report message, and the subscription report message carries the status information of the subscription target (that is, the status of the resources subscribed by the subscribing device in the current subscribed device). After receiving the first subscription report message, the subscribing device may return a subscription response message to the subscribed device, and the subscription response message may be used to inform the subscribing device that the first subscription report message has been successfully received.
[0130] In a possible implementation, the subscribed device may further perform the following operations:
[0131] A second status response message is sent to the subscribing device; the second status response message is used to indicate that the subscription relationship between the subscribing device and the subscribed device has been deleted.
[0132] Accordingly, the subscribed device can also perform the following operations:
[0133] A second status response message sent by the subscribed device is received; the second status response message is used to indicate that the subscription relationship between the subscribing device and the subscribed device has been deleted.
[0134] In an embodiment of the present application, after the subscribed device deletes the subscription relationship corresponding to the subscribing device, the subscribed device can send a status response message to the subscribing device, and inform the subscribing device of the deletion of the corresponding subscription relationship through the status response message.
[0135] Please refer to Figure 6, which shows a schematic diagram of a subscription process involved in an embodiment of the present application. As shown in Figure 6, the subscription process may include the following steps:
[0136] S61-S63, the Initiator initiates a subscription request process and needs to generate a subscription request message: in the request message, the source, target, S Flag, Dsiz Flag are set, keepsubscriptions is set to TRUE, and the parameter values of the MaxIntervalCeiling and MinIntervalfloor fields are set.
[0137] S64-S65, if the subscription process initiated by the Initiator is a process of canceling all subscriptions, then: the Initiator sets keepsubscriptions to FALSE. In addition, there are several options for setting MaxIntervalCeiling and MinIntervalFloor:
[0138] 1) MaxIntervalCeiling and MinIntervalFloor are not carried. That is, these two parameters are not necessary for the subscribe request message and are only required when keepsubscriptions = TRUE;
[0139] 2) MaxIntervalCeiling and MinIntervalFloor are set to 0, other equal values, or other special values;
[0140] 3) MaxIntervalCeiling and MinIntervalFloor are set to NULL;
[0141] 4) MaxIntervalCeiling and MinIntervalFloor can be set to any value, but if keepsubscriptions = FALSE, the publisher does not process these two values.
[0142] S66: The Initiator sends the subscription request message to the Publisher.
[0143] S67-S68, after receiving the above subscription request message, the Publisher will determine whether the Initiator has the authority to perform the above operation.
[0144] If keepsubscriptions=FALSE in the subscription request message, the publisher checks the validity of the message format based on the settings of MaxIntervalCeiling and MinIntervalFloor in step S64. If the validity check passes, the publisher immediately terminates all subscription relationships with the initiator.
[0145] If keepsubscriptions is set to TRUE in the subscription request message, the Publisher establishes a new subscription relationship.
[0146] S69-S610: The Publisher sends a data report message to the Initiator, and the Initiator returns a status response message to the Publisher.
[0147] The above steps S69-S610 are optional. Even in the unsubscribe scenario, the Initiator may send a data report message for the last time. 200 OK usually indicates a successful reception response message.
[0148] S611: In the unsubscription scenario, after deleting the Initiator's subscription relationship with the resources in the Publisher, the Publisher responds with a status response to the subscribe request, indicating that it has deleted all subscription relationships. This step is also optional.
[0149] S612, in the subscription scenario, after establishing a new subscription relationship between the Initiator and the resources in the Publisher, the Publisher replies with a status response to the subscribe request, which may indicate that the subscription is successful.
[0150] To sum up, in the scheme shown in the embodiment of the present application, when the subscribing device cancels the subscription to the subscribed device, it can generate a first subscription message that does not contain the specified parameters, or generate a first subscription message containing the specified parameters with parameter values that are specific values or random values. This provides a clear method for setting the maximum value and / or minimum value of the parameters in the subscription request message for indicating the maximum interval of the subscription data report in the subscription cancellation scenario, unifies the behavior of canceling message subscriptions, and expands the application scenarios of message subscriptions.
[0151] Please refer to Figure 7, which shows a block diagram of a subscription message processing device provided by an embodiment of the present application. The subscription message processing device 700 has the functions of implementing the method shown in Figure 3 or Figure 5 above, which is performed by the subscription device. As shown in Figure 7, the device may include:
[0152] Message generation module 701 is configured to generate a first subscription request message; the first subscription request message is used to delete the subscription relationship between the subscribing device and the subscribed device; the first subscription request message does not include a specified parameter, or the parameter value of the specified parameter included in the first subscription request message is a specific value or a random value; the specified parameter includes at least one of a first parameter and a second parameter; the first parameter is used to indicate the maximum value of the maximum interval of the subscription data report; the second parameter is used to indicate the minimum value of the minimum interval of the subscription data report; the subscription data report is used to indicate the status of the resource subscribed by the subscribing device;
[0153] The sending module 702 is configured to send the first subscription request message to the subscribed device.
[0154] In a possible implementation, when the parameter value of the designated parameter included in the first subscription request message is a specific value,
[0155] The parameter value of the specified parameter is 0; or,
[0156] The parameter value of the specified parameter is a specified non-zero value; or,
[0157] The parameter value of the specified parameter is NULL; or,
[0158] The parameter value of the first parameter in the first subscription request message is equal to the parameter value of the second parameter in the first subscription request message.
[0159] In a possible implementation, the apparatus further includes:
[0160] The first receiving module is configured to receive a first subscription report message sent by the subscribed device in response to the first subscription request message; the first subscription report message is used to indicate a status of a resource subscribed to by the subscribing device in the subscribed device.
[0161] In a possible implementation, the sending module 702 is further configured to send a first status response message to the subscribed device; the first status response message is used to indicate successful receipt of the first subscription report message.
[0162] In a possible implementation, the apparatus further includes:
[0163] The second receiving module is configured to receive a second status response message sent by the subscribed device; the second status response message is used to indicate that the subscription relationship between the subscribing device and the subscribed device has been deleted.
[0164] In a possible implementation, the parameter value of the keep subscription field in the first subscription request message is a first parameter value; the first parameter value is used to indicate deletion of the subscription relationship between the subscribing device and the subscribed device.
[0165] Please refer to Figure 8, which shows a block diagram of a subscription message processing device provided by an embodiment of the present application. The subscription message processing device 800 has the functions of implementing the method shown in Figure 4 or Figure 5 above, which is performed by the subscribed device. As shown in Figure 8, the device may include:
[0166] Receiving module 801 is used to receive a first subscription request message sent by a subscribing device; the first subscription request message is used to delete the subscription relationship between the subscribing device and the subscribed device; the first subscription request message does not contain a specified parameter, or the parameter value of the specified parameter contained in the first subscription request message is a specific value or a random value; the specified parameter includes at least one of a first parameter and a second parameter; the first parameter is used to indicate the maximum value of the maximum interval of the subscription data report; the second parameter is used to indicate the minimum value of the minimum interval of the subscription data report; the subscription data report is used to indicate the status of the resource subscribed by the subscribing device.
[0167] In a possible implementation, when the parameter value of the designated parameter included in the first subscription request message is a specific value,
[0168] The parameter value of the specified parameter is 0; or,
[0169] The parameter value of the specified parameter is a specified non-zero value; or,
[0170] The parameter value of the specified parameter is NULL; or,
[0171] The parameter value of the first parameter in the first subscription request message is equal to the parameter value of the second parameter in the first subscription request message.
[0172] In a possible implementation manner, when the first subscription request message does not include a specified parameter, or when the parameter value of the specified parameter included in the first subscription request message is a specific value, the apparatus further includes:
[0173] A validity checking module, configured to perform a validity check on the message format of the first subscription request message;
[0174] The deletion module is configured to delete the subscription relationship between the subscribing device and the subscribed device when the message format of the first subscription request message passes the legality check.
[0175] In a possible implementation, the legitimacy checking module is used to:
[0176] In a case where the first subscription request message does not include a specified parameter, querying the first subscription request message for the specified parameter;
[0177] If the specified parameter is not found, it is determined that the message format of the first subscription request message passes the legality check.
[0178] In a possible implementation, the legitimacy checking module is used to:
[0179] When the parameter value of the designated parameter included in the first subscription request message is a specific value, reading the parameter value of the designated parameter included in the first subscription request message;
[0180] When the parameter value of the read designated parameter is a specific value, it is determined that the message format of the first subscription request message passes the legality check.
[0181] In a possible implementation, the apparatus further includes:
[0182] The first sending module is configured to send a first subscription report message to the subscribing device in response to the first subscription request message; the first subscription report message is used to indicate a status of a resource subscribed to by the subscribing device in the subscribed device.
[0183] In a possible implementation, the receiving module 801 is further configured to receive a first status response message sent by the subscribed device in response to the first subscription report message; the first status response message is used to indicate successful receipt of the first subscription report message.
[0184] In a possible implementation, the apparatus further includes:
[0185] The second sending module is configured to send a second status response message to the subscribing device; the second status response message is used to indicate that the subscription relationship between the subscribing device and the subscribed device has been deleted.
[0186] In a possible implementation, the apparatus further includes:
[0187] The processing module is configured to not process the parameter value of the designated parameter when the parameter value of the designated parameter included in the first subscription request message is a specific value or a random value.
[0188] In a possible implementation, the parameter value of the keep subscription field in the first subscription request message is a first parameter value; the first parameter value is used to indicate deletion of the subscription relationship between the subscribing device and the subscribed device.
[0189] It should be noted that the device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example to implement its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0190] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0191] Please refer to FIG9 , which shows a schematic diagram of the structure of a computer device 900 provided in one embodiment of the present application. The computer device 900 may include: a processor 901 , a receiver 902 , a transmitter 903 , a memory 904 , and a bus 905 .
[0192] The processor 901 includes one or more processing cores. The processor 901 executes various functional applications and information processing by running software programs and modules.
[0193] The receiver 902 and the transmitter 903 may be implemented as a communication component, which may be a communication chip, which may also be called a transceiver.
[0194] The memory 904 is connected to the processor 901 via a bus 905 .
[0195] The memory 904 may be used to store a computer program, and the processor 901 may be used to execute the computer program to implement each step in the above method embodiment.
[0196] In addition, the memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, including but not limited to: magnetic disk or optical disk, electrically erasable programmable read-only memory, erasable programmable read-only memory, static random access memory, read-only memory, magnetic memory, flash memory, and programmable read-only memory.
[0197] In an exemplary scenario, when the computer device 900 is implemented as a subscription device, the receiving processor is used to generate a first subscription request message; the first subscription request message is used to delete the subscription relationship between the subscription device and the subscribed device; the first subscription request message does not contain a specified parameter, or the parameter value of the specified parameter contained in the first subscription request message is a specific value or a random value; the specified parameter includes at least one of a first parameter and a second parameter; the first parameter is used to indicate the maximum value of the maximum interval of the subscription data report; the second parameter is used to indicate the minimum value of the minimum interval of the subscription data report; the subscription data report is used to indicate the status of the resource subscribed by the subscription device; the transceiver is used to send the first subscription request message to the subscribed device.
[0198] The process executed by the processor 901 and / or the transceiver in the computer device 900 may refer to the steps executed by the subscription device in the method shown in either FIG. 3 or FIG. 5 .
[0199] In an exemplary scenario, when the computer device 900 is implemented as a subscribed device, the transceiver is used to receive a first subscription request message sent by the subscribing device; the first subscription request message is used to delete the subscription relationship between the subscribing device and the subscribed device; the first subscription request message does not contain a specified parameter, or the parameter value of the specified parameter contained in the first subscription request message is a specific value or a random value; the specified parameter includes at least one of a first parameter and a second parameter; the first parameter is used to indicate the maximum value of the maximum interval of the subscription data report; the second parameter is used to indicate the minimum value of the minimum interval of the subscription data report; the subscription data report is used to indicate the status of the resource subscribed by the subscribing device.
[0200] The process executed by the processor 901 and / or the transceiver in the computer device 900 may refer to the steps executed by the subscribed device in the method shown in either FIG. 4 or FIG. 5 .
[0201] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program is loaded and executed by a processor to implement all or part of the steps performed by the subscribing device or the subscribed device in the method shown in Figures 3, 4 or 5 above.
[0202] The present application also provides a chip, which is used to run in a computer device so that the computer device executes all or part of the steps performed by the subscribing device or the subscribed device in the method shown in Figure 3, Figure 4 or Figure 5 above.
[0203] The present application also provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform all or part of the steps performed by the subscribing device or the subscribed device in the method shown in Figures 3, 4, or 5 above.
[0204] The present application also provides a computer program, which is executed by a processor of a computer device to implement all or part of the steps performed by the subscribing device or the subscribed device in the method shown in Figure 3, Figure 4 or Figure 5 above.
[0205] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0206] The above description is merely an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A subscription message processing method, characterized in that: The method is performed by a subscription device, and includes: Generate a first subscription request message; the first subscription request message is used to delete the subscription relationship between the subscribing device and the subscribed device; the first subscription request message does not include a specified parameter, or the parameter value of the specified parameter included in the first subscription request message is a specific value or a random value; the specified parameter includes at least one of a first parameter and a second parameter; the first parameter is used to indicate the maximum value of the maximum interval of the subscription data report; the second parameter is used to indicate the minimum value of the minimum interval of the subscription data report; the subscription data report is used to indicate the status of the resource subscribed by the subscribing device; Send the first subscription request message to the subscribed device.
2. The method according to claim 1, characterized in that In the case where the parameter value of the designated parameter included in the first subscription request message is a specific value, The parameter value of the specified parameter is 0; or, The parameter value of the specified parameter is a specified non-zero value; or, The parameter value of the specified parameter is NULL; or, The parameter value of the first parameter in the first subscription request message is equal to the parameter value of the second parameter in the first subscription request message.
3. The method according to claim 1 or 2, characterized in that The method further comprises: A first subscription report message is received, which is sent by the subscribed device in response to the first subscription request message; the first subscription report message is used to indicate a status of a resource in the subscribed device subscribed to by the subscribing device.
4. The method according to claim 3, characterized in that The method further comprises: A first status response message is sent to the subscribed device; the first status response message is used to indicate that the first subscription report message is successfully received.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: A second status response message sent by the subscribed device is received; the second status response message is used to indicate that the subscription relationship between the subscribing device and the subscribed device has been deleted.
6. The method according to any one of claims 1 to 5, characterized in that: The parameter value of the keep subscription field in the first subscription request message is a first parameter value; the first parameter value is used to indicate deletion of the subscription relationship between the subscribing device and the subscribed device.
7. A subscription message processing method, characterized in that: The method is executed by a subscribed device, and includes: Receive a first subscription request message sent by a subscription device; the first subscription request message is used to delete the subscription relationship between the subscription device and the subscribed device; the first subscription request message does not contain a specified parameter, or the parameter value of the specified parameter contained in the first subscription request message is a specific value or a random value; the specified parameter includes at least one of a first parameter and a second parameter; the first parameter is used to indicate the maximum value of the maximum interval of the subscription data report; the second parameter is used to indicate the minimum value of the minimum interval of the subscription data report; the subscription data report is used to indicate the status of the resource subscribed by the subscription device.
8. The method according to claim 7, characterized in that In the case where the parameter value of the designated parameter included in the first subscription request message is a specific value, The parameter value of the specified parameter is 0; or, The parameter value of the specified parameter is a specified non-zero value; or, The parameter value of the specified parameter is NULL; or, The parameter value of the first parameter in the first subscription request message is equal to the parameter value of the second parameter in the first subscription request message.
9. The method according to claim 7 or 8, characterized in that In a case where the first subscription request message does not include a designated parameter, or a parameter value of the designated parameter included in the first subscription request message is a specific value, the method further includes: Performing a validity check on the message format of the first subscription request message; If the message format of the first subscription request message passes the legality check, the subscription relationship between the subscribing device and the subscribed device is deleted.
10. The method according to claim 9, characterized in that The performing a validity check on the message format of the first subscription request message includes: In a case where the first subscription request message does not include a specified parameter, querying the first subscription request message for the specified parameter; If the specified parameter is not found, it is determined that the message format of the first subscription request message passes the legality check.
11. The method according to claim 9, characterized in that The performing a validity check on the message format of the first subscription request message includes: When the parameter value of the designated parameter included in the first subscription request message is a specific value, reading the parameter value of the designated parameter included in the first subscription request message; When the parameter value of the read designated parameter is a specific value, it is determined that the message format of the first subscription request message passes the legality check.
12. The method according to any one of claims 7 to 11, characterized in that: The method further comprises: In response to the first subscription request message, a first subscription report message is sent to the subscribing device; the first subscription report message is used to indicate the status of the resources subscribed by the subscribing device in the subscribed device.
13. The method according to claim 12, characterized in that The method further comprises: Receive a first status response message sent by the subscribed device in response to the first subscription report message; the first status response message is used to indicate that the first subscription report message is successfully received.
14. The method according to any one of claims 7 to 13, characterized in that: The method further comprises: A second status response message is sent to the subscribing device; the second status response message is used to indicate that the subscription relationship between the subscribing device and the subscribed device has been deleted.
15. The method according to any one of claims 7 to 14, characterized in that: The method further comprises: In a case where the parameter value of the designated parameter included in the first subscription request message is a specific value or a random value, the parameter value of the designated parameter is not processed.
16. The method according to any one of claims 7 to 15, characterized in that: The parameter value of the keep subscription field in the first subscription request message is a first parameter value; the first parameter value is used to indicate deletion of the subscription relationship between the subscribing device and the subscribed device.
17. A subscription message processing device, characterized in that: The device comprises: A message generation module, configured to generate a first subscription request message; the first subscription request message is used to delete a subscription relationship between a subscribing device and a subscribed device; the first subscription request message does not include a specified parameter, or the parameter value of the specified parameter included in the first subscription request message is a specific value or a random value; the specified parameter includes at least one of a first parameter and a second parameter; the first parameter is used to indicate a maximum value of a maximum interval for a subscription data report; the second parameter is used to indicate a minimum value of a minimum interval for the subscription data report; the subscription data report is used to indicate a status of a resource subscribed to by the subscribing device; A sending module is used to send the first subscription request message to the subscribed device.
18. The device according to claim 17, characterized in that In the case where the parameter value of the designated parameter included in the first subscription request message is a specific value, The parameter value of the specified parameter is 0; or, The parameter value of the specified parameter is a specified non-zero value; or, The parameter value of the specified parameter is NULL; or, The parameter value of the first parameter in the first subscription request message is equal to the parameter value of the second parameter in the first subscription request message.
19. The device according to claim 17 or 18, characterized in that The device further comprises: The first receiving module is configured to receive a first subscription report message sent by the subscribed device in response to the first subscription request message; the first subscription report message is used to indicate a status of a resource subscribed to by the subscribing device in the subscribed device.
20. The device according to claim 19, characterized in that The sending module is further configured to send a first status response message to the subscribed device; the first status response message is used to indicate that the first subscription report message is successfully received.
21. The device according to any one of claims 17 to 20, characterized in that The device further comprises: The second receiving module is configured to receive a second status response message sent by the subscribed device; the second status response message is used to indicate that the subscription relationship between the subscribing device and the subscribed device has been deleted.
22. The device according to any one of claims 17 to 21, characterized in that The parameter value of the keep subscription field in the first subscription request message is a first parameter value; the first parameter value is used to indicate deletion of the subscription relationship between the subscribing device and the subscribed device.
23. A subscription message processing device, characterized in that: The device comprises: A receiving module is used to receive a first subscription request message sent by a subscribing device; the first subscription request message is used to delete the subscription relationship between the subscribing device and the subscribed device; the first subscription request message does not contain a specified parameter, or the parameter value of the specified parameter contained in the first subscription request message is a specific value or a random value; the specified parameter includes at least one of a first parameter and a second parameter; the first parameter is used to indicate the maximum value of the maximum interval of the subscription data report; the second parameter is used to indicate the minimum value of the minimum interval of the subscription data report; the subscription data report is used to indicate the status of the resource subscribed by the subscribing device.
24. The device according to claim 23, characterized in that In the case where the parameter value of the designated parameter included in the first subscription request message is a specific value, The parameter value of the specified parameter is 0; or, The parameter value of the specified parameter is a specified non-zero value; or, The parameter value of the specified parameter is NULL; or, The parameter value of the first parameter in the first subscription request message is equal to the parameter value of the second parameter in the first subscription request message.
25. The device according to claim 23 or 24, characterized in that In a case where the first subscription request message does not include a designated parameter, or a parameter value of the designated parameter included in the first subscription request message is a specific value, the apparatus further includes: A validity checking module, configured to perform a validity check on the message format of the first subscription request message; The deletion module is configured to delete the subscription relationship between the subscribing device and the subscribed device when the message format of the first subscription request message passes the legality check.
26. The device according to claim 25, characterized in that The legality checking module is used to: In a case where the first subscription request message does not include a specified parameter, querying the first subscription request message for the specified parameter; If the specified parameter is not found, it is determined that the message format of the first subscription request message passes the legality check.
27. The device according to claim 25, characterized in that The legality checking module is used to: When the parameter value of the designated parameter included in the first subscription request message is a specific value, reading the parameter value of the designated parameter included in the first subscription request message; When the parameter value of the read designated parameter is a specific value, it is determined that the message format of the first subscription request message passes the legality check.
28. The device according to any one of claims 23 to 27, characterized in that The device further comprises: The first sending module is configured to send a first subscription report message to the subscribing device in response to the first subscription request message; the first subscription report message is used to indicate a status of a resource subscribed to by the subscribing device in the subscribed device.
29. The device according to claim 28, characterized in that The receiving module is further configured to receive a first status response message sent by the subscribed device in response to the first subscription report message; the first status response message is used to indicate that the first subscription report message is successfully received.
30. The device according to any one of claims 23 to 29, characterized in that The device further comprises: The second sending module is configured to send a second status response message to the subscribing device; the second status response message is used to indicate that the subscription relationship between the subscribing device and the subscribed device has been deleted.
31. The device according to any one of claims 23 to 30, characterized in that The device further comprises: The processing module is configured to not process the parameter value of the designated parameter when the parameter value of the designated parameter included in the first subscription request message is a specific value or a random value.
32. The device according to any one of claims 23 to 31, characterized in that The parameter value of the keep subscription field in the first subscription request message is a first parameter value; the first parameter value is used to indicate deletion of the subscription relationship between the subscribing device and the subscribed device.
33. A computer device, characterized in that: The computer device includes a processor, a memory and a transceiver; The memory stores a computer program, and the processor executes the computer program so that the computer device implements the subscription message processing method according to any one of claims 1 to 16.
34. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and the computer program is used to be executed by a processor to implement the subscription message processing method according to any one of claims 1 to 16.
35. A chip, characterized in that: The chip is used to run in a computer device, so that the computer device executes the subscription message processing method according to any one of claims 1 to 16.
36. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; the processor of the computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, so that the computer device executes the subscription message processing method as described in any one of claims 1 to 16.
37. A computer program, characterized in that The computer program is executed by a processor of a computer device to implement the subscription message processing method according to any one of claims 1 to 16.
