Data transmission method and device, equipment and storage medium

CN119487803APending Publication Date: 2025-02-18GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280097885.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-10-31
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In the IoT communication system, the data reporting method of subscription devices may lead to invalid reporting and multiple repeated subscription requests, resulting in low reporting efficiency.

Method used

Provide at least two data reporting methods, determined according to the minimum interval time field carried in the subscription request. The reporting methods include reporting when attributes or event status changes and reporting at specified intervals to avoid fixed frequency reporting and multiple repeated subscriptions.

Benefits of technology

It improves the efficiency of reporting subscription data, meets the different needs of both subscribing parties, reduces invalid reporting and repeated subscriptions, and simplifies the negotiation process of subscription data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119487803A_ABST
    Figure CN119487803A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method and device, equipment and a storage medium, and relates to the technical field of communication. The method comprises the steps of reporting subscription data to subscription equipment; wherein the subscription data corresponds to at least two reporting modes, and the reporting modes are determined at least according to the minimum interval time field carried in the subscription request sent by the subscription device.
Need to check novelty before this filing date? Find Prior Art

Description

Data transmission method, device, equipment and storage medium Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data transmission method, apparatus, device and storage medium. Background Art

[0002] In an IoT communication system, a subscribing device can initiate a subscription request to a subscribed device and wait for the subscribed device's response to activate or cancel the subscription. After activating the subscription, the subscribed device needs to report the subscription data to the subscribing device.

[0003] The timing of reporting subscription data is determined by subscription requests and responses. The minimum interval for reporting subscription data is requested by the subscribing device, and the maximum interval for reporting subscription data is determined by negotiation between the subscribing device and the subscribed device. The subscribed device will report subscription data at a fixed frequency within the minimum and maximum intervals.

[0004] If the subscription data is not received within the maximum interval, the subscribing device will automatically cancel the subscription; if the subscribing device wishes to obtain the subscription data again, it must re-subscribe. Based on the above subscription data reporting method, on the one hand, it may result in invalid reports from the subscribed device (for example, the subscribing device does not need to obtain the subscription data at a certain moment), and on the other hand, it may also lead to multiple repeated subscription requests for the same subscription data, resulting in low subscription data reporting efficiency.

[0005] Summary of the Invention

[0006] The present invention provides a data transmission method, apparatus, device, and storage medium, which provide at least two reporting methods for subscription data to improve the reporting efficiency of subscription data. The technical solutions are as follows:

[0007] According to one aspect of the present application, a data transmission method is provided. The method is performed by a subscribed device, and the method includes:

[0008] Report subscription data to the subscription device;

[0009] There are at least two reporting modes corresponding to subscription data, and the reporting mode is determined at least according to the minimum interval time field carried in the subscription request sent by the subscription device.

[0010] According to one aspect of the present application, a data transmission method is provided, which is performed by a subscription device and includes:

[0011] Receive subscription data reported by the subscribed device;

[0012] There are at least two reporting modes corresponding to subscription data, and the reporting mode is determined at least according to the minimum interval time field carried in the subscription request sent by the subscription device.

[0013] According to one aspect of the present application, a data transmission device is provided, the device comprising:

[0014] Reporting module, used to report subscription data to the subscription device;

[0015] There are at least two reporting modes corresponding to subscription data, and the reporting mode is determined at least according to the minimum interval time field carried in the subscription request sent by the subscription device.

[0016] According to one aspect of the present application, a data transmission device is provided, the device comprising:

[0017] A receiving module, configured to receive subscription data reported by a subscribed device;

[0018] There are at least two reporting modes corresponding to subscription data, and the reporting mode is determined at least according to the minimum interval time field carried in the subscription request sent by the subscription device.

[0019] According to one aspect of the present application, a subscribed device is provided, which includes a memory and a processor; the memory stores at least one program code, and the program code is loaded and executed by the processor to implement the data transmission method described above.

[0020] According to one aspect of the present application, a subscription device is provided, which includes a memory and a processor; the memory stores at least one program code, and the program code is loaded and executed by the processor to implement the data transmission method described above.

[0021] According to one aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to be executed by a processor to implement the data transmission method described above.

[0022] According to one aspect of the present application, a chip is provided. The chip includes a programmable logic circuit and / or program instructions, and when an electronic device equipped with the chip is running, it is used to implement the data transmission method described above.

[0023] According to one aspect of the present application, a computer program product is provided. The computer program product includes computer instructions. The computer instructions are stored in a computer-readable storage medium. A processor reads and executes the computer instructions from the computer-readable storage medium to implement the data transmission method described above.

[0024] The technical solutions provided by the embodiments of the present application include at least the following beneficial effects:

[0025] At least two reporting methods are provided for subscription data, providing multiple options for subscribed devices. This improves the reporting efficiency of subscription data and meets the different subscription requirements of both subscribers. The reporting method for subscription data is determined based on at least the minimum interval field carried in the subscription request. For example, the reporting method is determined based on both the minimum and maximum interval fields carried in the subscription request, eliminating the need for the subscribing and subscribed devices to negotiate the maximum interval for subscription data. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0027] FIG1 is a schematic diagram of a subscription process provided by an exemplary embodiment of the present application;

[0028] FIG2 is a schematic diagram of a data model of a terminal provided by an exemplary embodiment of the present application;

[0029] FIG3 is a flow chart of a data transmission method provided by an exemplary embodiment of the present application;

[0030] FIG4 is a flow chart of a data transmission method provided by an exemplary embodiment of the present application;

[0031] FIG5 is a flowchart of a data transmission method provided by an exemplary embodiment of the present application;

[0032] FIG6 is a flowchart of a data transmission method provided by an exemplary embodiment of the present application;

[0033] FIG7 is a flowchart of a data transmission method provided by an exemplary embodiment of the present application;

[0034] FIG8 is a flowchart of a data transmission method provided by an exemplary embodiment of the present application;

[0035] FIG9 is a flowchart of a data transmission method provided by an exemplary embodiment of the present application;

[0036] FIG10 is a schematic diagram of a subscription request apparatus provided by an exemplary embodiment of the present application;

[0037] FIG11 is a schematic diagram of a subscription request apparatus provided by an exemplary embodiment of the present application;

[0038] FIG12 is a block diagram of a communication device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

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

[0040] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, Advanced Long Term Evolution (LTE-A) system, New Radio (NR) system, NR system evolution system, LTE on unlicensed spectrum (LTE-U) system, NR on unlicensed spectrum (NR-U) system, Non-Terrestrial Networks (NTN) system, Universal Mobile Telecommunication System (UMTS), Wireless Local Area Networks (WLAN), Wireless Fidelity (Wireless Fidelity) system. Fidelity, WiFi), fifth-generation communication (5th-Generation, 5G) system or other communication systems, etc.

[0041] With the development of communication technology, mobile communication systems will not only support traditional communications, but also support, for example, Internet of Things (IoT) communications, and the embodiments of the present application can be applied to IoT communication systems.

[0042] The IoT communication system includes multiple terminals (or devices), and information exchange and communication can be achieved between each two terminals.

[0043] The terminal may also be referred to as User Equipment (UE). A terminal may be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, an in-vehicle device, a wearable device, a terminal device in a next-generation communication system such as a NR network, or a terminal device in a future evolved Public Land Mobile Network (PLMN) network.

[0044] In an embodiment of the present application, the terminal can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; it can also be deployed on the water surface (such as a ship, etc.); it can also be deployed in the air (for example, on an airplane, balloon, and satellite, etc.).

[0045] In an embodiment of the present application, the terminal may be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self-driving, a wireless terminal device in remote medical, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, or a wireless terminal device in a smart home, etc.

[0046] As an example and not a limitation, in the embodiment of the present application, the terminal may also be a wearable device. Wearable devices may also be called wearable smart devices, which are a general term for wearable devices that use wearable technology to intelligently design and develop wearable devices for daily wear, such as glasses, gloves, watches, clothing and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and independent of smartphones to achieve complete or partial functions, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0047] It should be understood that the terms "system" and "network" are often used interchangeably herein. The term "and / or" is simply a description of an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " generally indicates that the related objects are in an "or" relationship.

[0048] The terms used in the embodiments of this application are intended only to explain the specific embodiments of this application and are not intended to limit this application. The terms "first," "second," "third," and "fourth," etc. in the specification and claims of this application and the accompanying drawings are used to distinguish different objects, not to describe a specific order. In addition, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusions.

[0049] It should be understood that the "indication" mentioned in the embodiments of this application can be a direct indication, an indirect indication, or an indication of an association. For example, "A indicates B" can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association between A and B.

[0050] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between the two, or an association relationship between the two, or a relationship between indication and being indicated, configuration and being configured, etc.

[0051] In the embodiments of the present application, "pre-defined" can be implemented by pre-storing corresponding codes, tables, or other methods that can be used to indicate relevant information in devices (e.g., including the subscribing device and the subscribed device). The present application does not limit the specific implementation method. For example, pre-defined can refer to information defined in the protocol.

[0052] FIG1 is a schematic diagram of a subscription process provided by an exemplary embodiment of the present application.

[0053] In an IoT communication system, a subscribing device can initiate a subscription request to a subscribed device and wait for the subscribed device's subscription response to activate or cancel the subscription. For example, the subscribing device is the subscription initiator and the subscribed device is the subscription responder. The subscription process includes the following steps:

[0054] Step 1: The subscription initiator initiates a subscription request to the subscription responder.

[0055] Illustratively, a subscription request is used to request a subscription to a target resource from a subscription responder. The target resource may include attributes and / or events, and the requested attributes and / or events may be one or more. Optionally, the subscription request includes at least one field indicating the resource information being subscribed to.

[0056] The parameter fields carried in the subscription request are shown in Table 1:

[0057] Table 1

[0058]

[0059] in:

[0060] When the value of the KeepSubscriptions field is False, all existing subscriptions from the subscription initiator are terminated.

[0061] The MinIntervalFloor field indicates the requested lower (lowest) minimum interval value. Alternatively, the value of the MinIntervalFloor field indicates the boundary value of the requested minimum reporting interval, measured in seconds. Based on this field, if a subscriber needs to report multiple data items, and the reporting interval defined by the subscriber for these multiple data items is less than the minimum interval, the multiple data items will be cached and reported once the minimum interval is reached.

[0062] The MaxIntervalCeil field indicates the upper (highest) maximum interval value for the request. Alternatively, the value of the MaxInterval field indicates the maximum reporting timeout for the request, measured in seconds. Based on this field, the subscriber must report data at least once within this timeframe.

[0063] The AttributeRequests field is used to indicate a list of zero or more request paths for cluster attribute data. A cluster optionally includes two roles: the client and the server. The client is the controller, and the server is the controlled.

[0064] The DataVersionFilters field indicates a list of zero or more cluster instance data versions. The DataVersionFilters field is optional and may be present when an attribute request list is present. If the DataVersion of two reported data is the same, only the DataVersion is reported the second time, without reporting the attribute value.

[0065] The EventRequests field is used to indicate a list of zero or more request paths for cluster events.

[0066] The EventFilters field is used to indicate a list of zero or more minimum event counts for each specific node, which can also be understood as a filter condition for requesting event reporting.

[0067] When the value of the FabricFilters field is true, the data read from the Fabric range list is limited to the accessed Fabric domain.

[0068] In some embodiments, the subscription process is based on the Matter protocol.

[0069] The Matter protocol, also known as Project Connected Home over IP, is an open-source smart home standard project that aims to develop and promote a new connectivity protocol to simplify development costs for smart home device vendors and improve compatibility between smart home products from different manufacturers. Building on the Internet Protocol, the Matter protocol will support communication between smart home devices, mobile applications, and cloud services, defining a specific set of Internet Protocol-based network technologies for devices.

[0070] In the Matter protocol, the device data model can be referred to Figure 2, as follows:

[0071] Node: represents a device node and belongs to a logical device;

[0072] Endpoint: A node contains multiple endpoints, each of which represents a service instance or a virtual device. The device type corresponding to the endpoint can be indicated by device_type;

[0073] Cluster: An endpoint contains multiple clusters. Clusters are elements that build a functional set. Clusters can optionally include two roles: user side and service side. The user side belongs to the control side, and the service side belongs to the controlled side.

[0074] Attribute: A cluster contains 0 or more attributes, which are used to describe the functional units in the functional set;

[0075] Command: A cluster contains 0 or more commands, which are used to describe the control of functional units;

[0076] Event: A cluster contains 0 or more events. Events are used to describe the records of specific behaviors that have occurred in the past of functional units.

[0077] Taking a vehicle device as an example, the device data model is explained below. The device type of the vehicle device's root node (RootNode) is stored under Endpoint 0, and the air conditioner device type of the vehicle device is stored under Endpoint 5.

[0078] In some embodiments, the clusters included in endpoint 5 include a temperature control cluster and a fan cluster. The attributes included in the temperature control cluster may optionally include temperature attribute values, the commands included in the temperature control cluster may optionally include temperature increase commands and temperature decrease commands, and the events included in the temperature control cluster may optionally include temperature abnormality alarm events.

[0079] For example, the attribute request field can be expressed as follows: AttributeRequests[endpoint-id / cluster-id / attribute-id, endpoint-id / cluster-id / attribute-id,…]; the event request field can be expressed as follows: EventRequests[endpoint-id / cluster-id / event-id, endpoint-id / cluster-id / event-id,…].

[0080] It should be understood that the above is only an illustrative example and does not limit the present application. Different data models can be formed for different types of devices or different devices of the same type, and the data model can be set according to actual needs.

[0081] Step 2: The subscription responder sends the first data report to the subscription initiator.

[0082] After receiving the subscription request initiated by the subscription initiator, the subscription responder needs to report the data.

[0083] Optionally, in the first data reporting, the subscription responder may report the resource information to be subscribed according to the attribute request field and the event request field carried in the subscription request.

[0084] Step 3: The subscription initiator reports the success or failure status to the subscription responder.

[0085] After receiving the data reported by the subscription responder, the subscription initiator can determine whether the status is successful or not based on the first data report. Optionally, step 3 can be implemented as follows: the subscription initiator sends a success status message to the subscription responder.

[0086] Step 4: The subscription responder confirms whether to return a subscription response based on the status information returned by the subscription initiator.

[0087] Illustratively, the subscription responder may determine whether to return a subscription response to the subscription initiator based on the received status information. Optionally, upon receiving the success status information returned by the subscription initiator, the subscription responder determines that a subscription response needs to be returned to the subscription initiator and generates parameter data for the subscription response.

[0088] Step 5: After receiving the success status sent by the subscription initiator, the subscription responder returns the subscription response.

[0089] Indicatively, the subscription responder sends the generated parameter data to the subscription initiator via a subscription response message. The parameter fields carried in the subscription response are shown in Table 2:

[0090] Table 2

[0091] Parameter Field Field Type Mandatory / Optional Description Subscription ID uint32 Mandatory Used to identify a subscription Maximum Interval uint16 Mandatory The maximum reporting timeout of the final subscription decision

[0092] in:

[0093] The Subscription ID field is used to identify a subscription. The Subscription ID field is generated based on a subscription request sent by a subscription initiator to a subscription responder.

[0094] The MaxInterval field indicates the maximum time interval negotiated between the subscription initiator and the subscription responder. Alternatively, the value of the MaxInterval field indicates the negotiated maximum reporting timeout limit, in seconds. Based on this field, the subscription responder should make its second data report within a timeframe that does not exceed this limit.

[0095] Step 6: The subscription responder sends a second data report to the subscription initiator.

[0096] According to the above content, after confirming the return of the subscription response to the subscription initiator, the subscription responder sends a second data report to the subscription initiator. Among them, the second data report should be completed within the time not exceeding the boundary value indicated by the maximum interval field.

[0097] Step 7: The subscription initiator sends a status response to the subscription responder.

[0098] Indicatively, after receiving the second data report sent by the subscription responder, the subscription initiator will return a status response to the subscription responder to achieve the purpose of keeping the subscription connection alive.

[0099] Referring to the above content, based on steps 1 and 5, the timing of the second data report needs to be determined based on the minimum interval field carried in the subscription request and the maximum interval field carried in the subscription response. In the related art, the duration indicated by the minimum interval field ≤ the duration indicated by the maximum interval field ≤ MAX (60 minutes, the duration indicated by the maximum interval field), that is, MinIntervalFloor = <MaxInterval<=MAX(60min,MaxIntervalCeil)。

[0100] The maximum interval for the second data report is determined by negotiation between the subscription initiator and the subscription responder, and shall not exceed the maximum of 60 minutes and the duration indicated by the maximum interval field in the subscription request. For example, if the duration indicated by the maximum interval field is 120 minutes, the negotiated maximum interval shall not exceed 120 minutes; for another example, if the duration indicated by the maximum interval field is 30 minutes, the negotiated maximum interval shall not exceed 60 minutes.

[0101] Based on this, the subscription responder will report data at a fixed frequency within the maximum interval and the maximum interval. If no report information is received after the maximum interval, the subscription initiator will automatically cancel the subscription. For example, the subscription initiator sends a subscription request to the subscription responder, and the keep subscription field in the subscription request is false, thereby canceling the subscription.

[0102] At this point, if the subscription initiator wishes to obtain the reported information again, it needs to re-initiate the subscription request.

[0103] The above-described reporting method may, on the one hand, result in invalid reports from the subscriber responder, for example, if the subscriber initiator does not need to obtain subscription data at a certain moment. It should be understood that in some embodiments, the subscriber initiator may have special subscription requirements that cannot be met by the fixed-frequency data reporting method used in related technologies. For example, the subscriber initiator may only wish to obtain reported data when the subscription data changes, thereby reducing the frequency of data reporting and lowering power consumption for both parties.

[0104] On the other hand, based on the above reporting method, if the subscription responder fails to report data within the maximum interval, or the subscription initiator fails to receive the reported data within the maximum time interval for any reason, the subscription will be canceled, resulting in multiple repeated subscription requests for the same subscription data, which will also make the reporting efficiency of subscription data low.

[0105] An embodiment of the present application provides a data transmission method, wherein the subscription data involved can also be understood as the second data reporting performed by the subscription responder to the subscription initiator in Figure 1.

[0106] FIG3 shows a flowchart of a data transmission method provided by an exemplary embodiment of the present application. The method is executed by a subscribed device and includes the following steps:

[0107] Step 102: Subscription data is reported to the subscription device.

[0108] Illustratively, there are at least two reporting modes corresponding to subscription data, and the reporting mode is determined at least according to the minimum interval time field carried in the subscription request sent by the subscription device.

[0109] The subscription data is data corresponding to the subscription relationship established between the subscribing device and the subscribed device. Referring to the above content, before executing step 102, a subscription process needs to be performed between the subscribing device and the subscribed device.

[0110] It can be understood that before step 102: the subscribing device sends a subscription request to the subscribed device, requesting a new subscription relationship; and the subscribed device sends a subscription response to the subscribing device, notifying the subscribing device that the subscription relationship indicated in the subscription request has been established. Therefore, the subscription data is the data corresponding to the subscription relationship indicated in the subscription request and subscription response.

[0111] After establishing a subscription relationship, the subscribed device can report subscription data to the subscribing device. There are at least two reporting methods for subscription data. Optional reporting methods for subscription data include the following:

[0112] Report when the state of the attributes and / or events subscribed to by the subscribing device changes;

[0113] In this reporting mode, the subscribed device only reports subscription data when the state of the subscribed attributes and / or events changes. For example, the subscribed device is a sensor lamp, the subscribing device is a mobile terminal, and the subscribed attribute is the on / off property. The sensor lamp lights up when a person passes by and turns off after a period of time. In this case, the sensor lamp will only report subscription data to the mobile terminal when the lamp lights up or turns off.

[0114] Based on this, the subscribed device does not need to report at a fixed frequency, and the subscribing device does not need to subscribe to the same subscription data multiple times. This will reduce the reporting frequency of subscription data, avoid invalid reporting of subscription data, and thus improve the reporting efficiency of subscription data.

[0115] Report at specified intervals.

[0116] Illustratively, the specified duration may be determined based on the minimum interval field carried in the subscription request, or based on the maximum interval field carried in the subscription request, or based on the maximum interval field carried in the subscription response corresponding to the subscription request.

[0117] In some embodiments, subscription data is reported after a first time interval, where the first time interval is determined by a minimum time interval field. In other embodiments, subscription data is reported after a second time interval, where the second time interval is determined by a maximum time interval field carried in a subscription request, or the second time interval is determined by a maximum time interval field carried in a subscription response corresponding to the subscription request.

[0118] According to the foregoing, the reporting method for subscription data is determined based on at least the minimum interval field carried in the subscription request. Optionally, the reporting method is determined based on both the minimum interval field and the maximum interval field carried in the subscription request; or, the reporting method is determined based on the minimum interval field carried in the subscription request and the maximum interval field carried in the subscription response corresponding to the subscription request.

[0119] When establishing a subscription relationship, both parties can determine the specific reporting method for subscription data based on the subscription request, or based on the values ​​of fields in the subscription request and subscription response. In other words, the reporting method can be determined based solely on the subscription request, or based on both the subscription request and subscription response. These two determination methods will be described in detail later and are omitted here.

[0120] Optionally, the default value of the minimum interval time field is the first value, and the default value of the maximum interval time field carried in the subscription request is the second value; or, the default value of the minimum interval time field is the first value, and the default value of the maximum interval field carried in the subscription response corresponding to the subscription request is the second value.

[0121] In some embodiments, the first value is 0 and the second value is 0×FFFF.

[0122] For example, a subscribing device sends a subscription request to a subscribed device, and the subscription request carries a minimum interval field and a maximum interval field. If no specific values ​​are assigned to these two fields, the minimum interval field is assumed to be the first value, and the maximum interval field is assumed to be the second value.

[0123] With reference to the above content, the following are the implementation methods of various data transmission methods:

[0124] When MinIntervalFloor = 0, MaxIntervalCeil or MaxInterval = 0×FFFF, the subscribed device reports subscription data when the status of the attributes and / or events subscribed by the subscribing device changes;

[0125] When MinIntervalFloor!=0, MaxIntervalCeil or MaxInterval=0×FFFF, the subscribed device reports subscription data at the frequency set by MinIntervalFloor; if the subscription data is not reported within the set MaxIntervalCeil or MinIntervalFloor time, the subscribing device can wait for the subscribed device to report subscription data when the status of the subscribed attributes and / or events changes;

[0126] When MinIntervalFloor = 0, MaxIntervalCeil or MaxInterval! = 0×FFFF, the subscribed device only needs to report the subscription data within the MaxInterval time range. If the subscribed device does not report the subscription data or the subscribing device does not receive the subscription data after MaxIntervalCeil or MaxInterval time, the subscribing device automatically cancels the subscription;

[0127] When MinIntervalFloor!=0 and MaxIntervalCeil!=0×FFFF, the subscribed device reports subscription data at the frequency set by MinIntervalFloor. If the subscribed device does not report subscription data or the subscribing device does not receive subscription data within the set MinIntervalFloor time, and the subscribed device does not report subscription data or the subscribing device does not receive subscription data within the time defined by MaxIntervalCeil, the subscribing device automatically cancels the subscription.

[0128] It should be understood that the above examples are merely illustrative examples and do not constitute a specific limitation on the present application; other implementation methods that can provide at least two reporting methods based on the subscription request, or based on the values ​​of the fields in the subscription request and subscription response are all within the scope of protection of the present application and will not be described in detail.

[0129] In summary, the data transmission method provided in the embodiments of the present application provides at least two reporting methods for subscription data, thereby providing multiple options for subscribed devices, improving the reporting efficiency of subscription data, and meeting the different subscription requirements of both parties regarding subscription data. The reporting method for subscription data is determined based on at least the minimum time interval field carried in the subscription request. For example, the reporting method is determined based on the minimum time interval field and the maximum time interval field carried in the subscription request, thereby avoiding the need for the subscribing device and the subscribed device to negotiate the maximum time interval for subscription data.

[0130] FIG4 shows a flowchart of a data transmission method provided by an exemplary embodiment of the present application. The method is executed by a subscription device and includes the following steps:

[0131] Step 202: Receive subscription data reported by the subscribed device.

[0132] Illustratively, there are at least two reporting modes corresponding to subscription data, and the reporting mode is determined at least according to the minimum interval time field carried in the subscription request sent by the subscription device.

[0133] The subscription data is the data corresponding to the subscription relationship established between the subscribing device and the subscribed device. Schematically, before executing step 202, a subscription process needs to be performed between the subscribing device and the subscribed device. The specific description can be referred to the above content and will not be repeated here.

[0134] Optionally, the subscription data may be reported in the following manner: reporting when the state of the attribute and / or event subscribed by the subscribing device changes; reporting at intervals of a specified duration.

[0135] The specified duration may be determined based on the minimum interval field carried in the subscription request, or based on the maximum interval field carried in the subscription request, or based on the maximum interval field carried in the subscription response corresponding to the subscription request.

[0136] According to the foregoing, the reporting method for subscription data is determined based on at least the minimum interval field carried in the subscription request. Optionally, the reporting method is determined based on both the minimum interval field and the maximum interval field carried in the subscription request; or, the reporting method is determined based on the minimum interval field carried in the subscription request and the maximum interval field carried in the subscription response corresponding to the subscription request.

[0137] When establishing a subscription relationship, both parties can determine the specific reporting method for subscription data based on the subscription request, or based on the values ​​of fields in the subscription request and subscription response. In other words, the reporting method can be determined based solely on the subscription request, or based on both the subscription request and subscription response. These two determination methods will be described in detail later and are omitted here.

[0138] Optionally, the default value of the minimum interval time field is the first value, and the default value of the maximum interval time field carried in the subscription request is the second value; or, the default value of the minimum interval time field is the first value, and the default value of the maximum interval field carried in the subscription response corresponding to the subscription request is the second value.

[0139] In some embodiments, the first value is 0 and the second value is 0×FFFF.

[0140] For example, a subscribing device sends a subscription request to a subscribed device, and the subscription request carries a minimum interval field and a maximum interval field. If no specific values ​​are assigned to these two fields, the minimum interval field is assumed to be the first value, and the maximum interval field is assumed to be the second value.

[0141] For examples of determining a specific reporting method for subscription data based on a subscription request, or based on the values ​​of fields in a subscription request and a subscription response, please refer to the above content and will not be repeated here.

[0142] It should be understood that the above examples are merely illustrative examples and do not constitute a specific limitation on the present application; other implementation methods that can provide at least two reporting methods based on the subscription request, or based on the values ​​of the fields in the subscription request and subscription response are all within the scope of protection of the present application and will not be described in detail.

[0143] In summary, the data transmission method provided in the embodiments of the present application provides at least two reporting methods for subscription data, thereby providing multiple options for subscribed devices, improving the reporting efficiency of subscription data, and meeting the different subscription requirements of both parties regarding subscription data. The reporting method for subscription data is determined based on at least the minimum time interval field carried in the subscription request. For example, the reporting method is determined based on the minimum time interval field and the maximum time interval field carried in the subscription request, thereby avoiding the need for the subscribing device and the subscribed device to negotiate the maximum time interval for subscription data.

[0144] FIG5 shows a flow chart of a data transmission method provided by an exemplary embodiment of the present application.

[0145] Subscription data refers to the data associated with an established subscription relationship between a subscribing device and a subscribed device. To transmit subscription data, both the subscribing device and the subscribed device must first complete a subscription process to define the subscribed attributes and / or events, enabling the subscribed device to report the subscription data based on the established subscription relationship.

[0146] Schematically, the subscription process between the subscribing device and the subscribed device includes the following:

[0147] The subscribing device sends a subscription request to the subscribed device, where the subscription request is used to request a new subscription relationship; the subscribed device sends a subscription response to the subscribing device, where the subscription response is used to inform the subscribing device that the subscription relationship indicated by the subscription request has been established.

[0148] Subsequently, the subscribed device may report the data corresponding to the subscription relationship according to the reporting method determined among the at least two reporting methods.

[0149] Illustratively, the data transmission method provided in the embodiment of the present application includes the following steps:

[0150] Step 302: The subscribed device reports subscription data to the subscribing device.

[0151] Illustratively, there are at least two reporting modes corresponding to subscription data, and the reporting mode is determined at least according to the minimum interval time field carried in the subscription request sent by the subscription device.

[0152] Optionally, the subscription data may be reported in the following manner: reporting when the state of the attribute and / or event subscribed by the subscribing device changes; reporting at intervals of a specified duration.

[0153] For the description of the reporting method, please refer to the above content and will not be repeated here.

[0154] According to the foregoing, the reporting method for subscription data is determined based on at least the minimum interval field carried in the subscription request. Optionally, the reporting method is determined based on both the minimum interval field and the maximum interval field carried in the subscription request; or, the reporting method is determined based on the minimum interval field carried in the subscription request and the maximum interval field carried in the subscription response corresponding to the subscription request.

[0155] When determining a subscription relationship, the subscribing parties may determine the specific reporting method for the subscription data based on the subscription request, or based on the values ​​of fields in the subscription request and subscription response. That is, the subscribing parties may determine the reporting method based solely on the subscription request, or based on both the subscription request and subscription response. This will be described in detail later in the embodiments of this application.

[0156] Optionally, the default value of the minimum interval time field is the first value, and the default value of the maximum interval time field carried in the subscription request is the second value; or, the default value of the minimum interval time field is the first value, and the default value of the maximum interval field carried in the subscription response corresponding to the subscription request is the second value.

[0157] In some embodiments, the first value is 0 and the second value is 0×FFFF.

[0158] For example, a subscribing device sends a subscription request to a subscribed device, and the subscription request carries a minimum interval field and a maximum interval field. If no specific values ​​are assigned to these two fields, the minimum interval field is assumed to be the first value, and the maximum interval field is assumed to be the second value.

[0159] For examples of determining a specific reporting method for subscription data based on a subscription request, or based on the values ​​of fields in a subscription request and a subscription response, please refer to the above content and will not be repeated here.

[0160] It should be understood that the above examples are merely illustrative examples and do not constitute a specific limitation on the present application; other implementation methods that can provide at least two reporting methods based on the subscription request, or based on the values ​​of the fields in the subscription request and subscription response are all within the scope of protection of the present application and will not be described in detail.

[0161] It should be understood that in the above embodiment, the steps on the subscription device side and the steps on the subscribed device side can be independently implemented as an embodiment of the data transmission method. For specific explanations, please refer to the above content.

[0162] To sum up, the data transmission method provided in the embodiment of the present application provides at least two reporting methods for subscription data, thereby providing multiple options for the subscribed device to improve the reporting efficiency of subscription data and meet the different subscription requirements of the two subscribers regarding subscription data.

[0163] The reporting method of the subscription data is determined at least based on the minimum time interval field carried in the subscription request. Optionally, the reporting method is determined based on the minimum time interval field and the maximum time interval field carried in the subscription request; or the reporting method is determined based on the minimum time interval field carried in the subscription request and the maximum time interval field carried in the subscription response corresponding to the subscription request.

[0164] It can be understood that the subscribing parties can determine the reporting method based only on the subscription request, or the subscribing parties can determine the reporting method based on the subscription request and subscription response, as follows:

[0165] (1) The subscribing parties determine the reporting method based on the subscription request.

[0166] Optionally, in this manner, the data transmission method provided in the embodiment of the present application further includes:

[0167] The subscribing device sends a subscription request to the subscribed device. The subscription request carries a minimum interval time field and a maximum interval time field. The reporting method of the subscription data is determined according to the minimum interval time field and the maximum interval time field.

[0168] In some embodiments, if the minimum interval field and the maximum interval field are not specified in the subscription request, the minimum interval field is defaulted to the first value (e.g., 0) and the maximum interval field is defaulted to the second value (e.g., 0xFFFF). That is, MinIntervalFloor = 0, MaxIntervalCei = 0xFFFF, and the reporting method is determined as follows: reporting is performed when the status of the attributes and / or events subscribed to by the subscribing device changes.

[0169] It should be understood that the subscription request may also specify that the minimum interval time field is the first value and the maximum interval time field is the second value. In this case, the reporting method is still determined as follows: reporting when the status of the attributes and / or events subscribed by the subscribing device changes.

[0170] In other embodiments, the minimum interval field has a third value, and the maximum interval field has a second value. The third value is different from the first and second values, and is not equal to the first value. This can be understood as MinIntervalFloor! = 0. For example, MinIntervalFloor! = 0, MaxIntervalCeil = 0×FFFF, and the reporting method is determined as: reporting after a first interval, where the first interval is indicated by the third value.

[0171] In this case, the reporting method also includes: if the subscription data is not reported after the first time interval, reporting is performed when the status of the attributes and / or events subscribed to by the subscribing device changes. That is, if the subscription data is not reported after the first time interval (the subscribing device does not receive the subscription data, or the subscribed device does not report), the subscribing device may continue to wait, and the subscribed device will change its reporting of the subscription data from reporting after the first time interval (fixed interval reporting) to reporting when the status of the subscribed attributes and / or events changes (non-fixed interval reporting).

[0172] In other embodiments, the minimum interval field is the first value, and the maximum interval field is the fourth value. The fourth value is a value different from the first value and the second value, and the fourth value is not equal to the second value. This can be understood as MaxIntervalCeil! = 0. For example, MinIntervalFloor = 0, MaxIntervalCeil! = 0×FFFF, and the reporting method is determined as: reporting after the second interval, where the second interval is indicated by the fourth value.

[0173] In this case, if no subscription data report is received after the second time interval (the subscribing device does not receive the subscription data, or the subscribed device does not report), the subscribing device may automatically cancel the subscription. Optionally, if no subscription data is received after the second time interval, the subscribing device sends a first indication message to the subscribed device, the first indication message being used to instruct the subscribing device to cancel its subscription to the subscribed device regarding the subscription data.

[0174] In other embodiments, the minimum interval time field is the fifth value and the maximum interval time field is the sixth value. The fifth value and the sixth value are both numerical values ​​different from the first value and the second value, and the fifth value is not equal to the first value, and the sixth value is not equal to the second value. This can be understood as MinIntervalFloor! = 0, MaxIntervalCeil! = 0×FFFF. It should be understood that the fifth value may be equal to the third value, and the sixth value may be equal to the fourth value. At this point, the reporting method is determined as follows: reporting after the third interval, where the third interval is indicated by the fifth value.

[0175] In this case, if no subscription data report is received after the fourth time interval (either the subscribing device does not receive the subscription data, or the subscribed device does not report), the subscribing device may automatically cancel the subscription. The fourth time interval is indicated by the sixth value. Optionally, if no subscription data is received after the fourth time interval, the subscribing device sends a second indication message to the subscribed device, the second indication message being used to instruct the subscribing device to cancel its subscription to the subscribed device regarding the subscription data.

[0176] Optionally, when both parties determine the reporting method based on the subscription request, the subscription response sent by the subscribed device to the subscribing device may not carry the maximum interval field; or, the maximum interval field carried in the subscription response does not limit the reporting method.

[0177] (2) The two subscribers determine the reporting method based on the subscription request and subscription response.

[0178] Optionally, in this manner, the data transmission method provided in the embodiment of the present application further includes:

[0179] The subscribing device sends a subscription request to the subscribed device, and the subscription request carries the minimum interval time field and the maximum interval time field;

[0180] The subscribed device sends a subscription response to the subscribing device, and the subscription response carries a maximum interval field;

[0181] The reporting method of subscription data is determined according to the minimum interval time field and the maximum interval field.

[0182] In some embodiments, if the minimum interval time field is not specified in the subscription request, the default minimum interval time field is the first value (such as 0). That is, MinIntervalFloor = 0. It should be understood that the subscription request may also specify that the minimum interval time field is the first value. Subsequently, based on the maximum interval field in the subscription response being the second value (such as 0×FFFF), that is, MinIntervalFloor = 0, MaxInterval = 0×FFFF. At this time, the reporting method is determined as follows: reporting when the status of the attributes and / or events subscribed to by the subscribing device changes.

[0183] In other embodiments, the minimum interval field has a third value, and the maximum interval field has a second value. The third value is different from the first and second values, and is not equal to the first value. This can be understood as MinIntervalFloor! = 0. For example, if MinIntervalFloor! = 0 and MaxInterval = 0×FFFF, the reporting method is determined as follows: reporting after a first interval, where the first interval is indicated by the third value.

[0184] In this case, the reporting method also includes: if the subscription data is not reported after the first time interval, reporting is performed when the status of the attributes and / or events subscribed to by the subscribing device changes. That is, if the subscription data is not reported after the first time interval (the subscribing device does not receive the subscription data, or the subscribed device does not report), the subscribing device may continue to wait, and the subscribed device will change its reporting of the subscription data from reporting after the first time interval (fixed interval reporting) to reporting when the status of the subscribed attributes and / or events changes (non-fixed interval reporting).

[0185] In other embodiments, the minimum interval field is the first value, and the maximum interval field is the fourth value. The fourth value is a value different from the first and second values, and is not equal to the second value. This can be understood as MaxInterval! = 0. For example, MinIntervalFloor = 0, MaxInterval! = 0×FFFF, and the reporting method is determined as: reporting after the second interval, where the second interval is indicated by the fourth value.

[0186] In this case, if no subscription data report is received after the second time interval (the subscribing device does not receive the subscription data, or the subscribed device does not report), the subscribing device may automatically cancel the subscription. Optionally, if no subscription data is received after the second time interval, the subscribing device sends a first indication message to the subscribed device, the first indication message being used to instruct the subscribing device to cancel its subscription to the subscribed device regarding the subscription data.

[0187] With reference to the above content, the reporting methods of subscription data include the following: reporting when the status of the attributes and / or events subscribed by the subscribing device changes; reporting at intervals of specified duration.

[0188] The following are various ways to report subscription data:

[0189] Implementation method 1: Report when the status of the attributes and / or events subscribed to by the subscribing device changes.

[0190] FIG6 shows a flowchart of a data transmission method provided by an exemplary embodiment of the present application. Step 302 can be implemented as step 3021, specifically as follows:

[0191] Step 3021: The subscribed device reports subscription data to the subscribing device.

[0192] The method of reporting subscription data includes: reporting when the state of the attributes and / or events subscribed by the subscribing device changes.

[0193] Optionally, the reporting method is determined according to the first value and the second value;

[0194] Among them, the first value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription request; or, the first value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

[0195] In some embodiments, the first value is 0 and the second value is 0×FFFF. Referring to the foregoing, the first value and the second value may be default values ​​or assigned by the subscribing device or the subscribed device.

[0196] For example, in the case of MinIntervalFloor=0, MaxIntervalCeil or MaxInterval=0×FFFF, the reporting mode is determined as: reporting when the state of the attribute and / or event subscribed by the subscribing device changes.

[0197] It can be understood that, according to the first value and the second value, the reporting method of subscription data can be set to report only when the subscribed attributes and / or event status changes, that is, the subscribed device only reports when the subscription data changes.

[0198] It should be understood that in the above embodiment, the steps on the subscription device side and the steps on the subscribed device side can be independently implemented as an embodiment of the data transmission method. For specific explanations, please refer to the above content.

[0199] In summary, in the data transmission method provided in the embodiments of the present application, based on the first and second values, the subscription data can be reported when the status of the attributes and / or events subscribed to by the subscribing device changes. This eliminates the need for the subscribed device to report data at a fixed frequency, thereby avoiding invalid data reporting, reducing the frequency of subscription data reporting, and improving data reporting efficiency.

[0200] Implementation method 2: reporting after a first period of time.

[0201] FIG7 shows a flowchart of a data transmission method provided by an exemplary embodiment of the present application. Step 302 can be implemented as step 3022, specifically as follows:

[0202] Step 3022: The subscribed device reports subscription data to the subscribing device.

[0203] The reporting method of the subscription data includes: reporting after a first time interval, and the first time interval is determined according to the minimum interval time field carried in the subscription request.

[0204] Optionally, the reporting method is determined based on a third value and a second value, and the third value is used to indicate the first duration; wherein, the third value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription request; or, the third value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

[0205] In some embodiments, the second value is 0×FFFF.

[0206] As mentioned above, the second value can be a default value or assigned by the subscribing device or the subscribed device. The third value is a value different from the first and second values ​​and is not equal to the first value. This can be understood as MinIntervalFloor! = 0, MaxIntervalCeil or MaxInterval = 0×FFFF. MinIntervalFloor! = 0 can be understood as the minimum interval time field being any value not equal to 0. In this case, the reporting method is determined as: reporting after the first interval duration, where the first interval duration is indicated by the third value.

[0207] Optionally, the reporting method further includes: when no subscription data is reported after a first time interval, reporting is performed when the state of the attribute and / or event subscribed by the subscribing device changes.

[0208] That is, if no report of subscription data is received after the first time interval (the subscribing device does not receive the subscription data, or the subscribed device does not report), the subscribing device can continue to wait, and the subscribed device will report the subscription data from after the first time interval (fixed interval reporting) to when the status of the subscribed attributes and / or events changes (non-fixed interval reporting).

[0209] It should be understood that in the above embodiment, the steps on the subscription device side and the steps on the subscribed device side can be independently implemented as an embodiment of the data transmission method. For specific explanations, please refer to the above content.

[0210] To sum up, in the data transmission method provided in the embodiment of the present application, based on the third value and the second value, the reporting method of the subscription data can be determined as: reporting after a first time interval; if the subscription data is not reported after the first time interval, the subscribed device reports the subscription data when the status of the attributes and / or events subscribed by the subscribing device changes.

[0211] Based on this, the subscribed device can first report data at a fixed frequency to ensure the transmission of the subscribed data. Then, if the subscribed data is not reported after a certain period of time, the subscribed device can adjust the reporting method to prevent the subscribing device from directly canceling the subscription relationship. This reporting method can avoid repeated requests for the same subscription data while ensuring the transmission of the subscription data, thereby indirectly improving the reporting efficiency of subscription data.

[0212] Implementation method three: reporting after the second period of time.

[0213] FIG8 shows a flowchart of a data transmission method provided by an exemplary embodiment of the present application. Step 302 can be implemented as step 3023, specifically as follows:

[0214] Step 3023: The subscribed device reports subscription data to the subscribing device.

[0215] Among them, the reporting method of subscription data includes: reporting after a second interval, the second interval is determined according to the maximum interval time field carried in the subscription request, or the second interval is determined according to the maximum interval field carried in the subscription response corresponding to the subscription request.

[0216] Optionally, the reporting method is determined based on the first value and the fourth value, and the fourth value is used to indicate the second duration; wherein, the first value is the value of the minimum interval time field, and the fourth value is the value of the maximum interval time field carried in the subscription request; or, the first value is the value of the minimum interval time field, and the fourth value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

[0217] In some embodiments, the first value is 0.

[0218] With reference to the foregoing, the first value can be a default value or assigned by the subscribing device or the subscribed device. The fourth value is a value different from the first and second values, and is not equal to the second value. This can be understood as MinIntervalFloor = 0, MaxIntervalCeil or MaxInterval! = 0×FFFF. MaxIntervalCeil or MaxInterval! = 0×FFFF can be understood as the value of the maximum interval time field or the maximum interval field being any value not equal to 0×FFFF. In this case, the reporting method is determined as: reporting after the second interval, where the second interval is indicated by the fourth value.

[0219] In this case, if no subscription data report is received after the second time interval (the subscribing device does not receive the subscription data, or the subscribed device does not report), the subscribing device may automatically cancel the subscription to avoid long waiting.

[0220] Optionally, the data transmission method provided in the embodiment of the present application further includes:

[0221] Step 3041: When no subscription data is received after a second period of time, the subscribing device sends first indication information to the subscribed device.

[0222] Illustratively, the first indication information is used to instruct the subscribing device to cancel its subscription to the subscribed device regarding subscription data.

[0223] In some embodiments, the first indication information may be provided via a subscription request sent by the subscribing device. For example, if no subscription data is received after a second interval, the subscribing device may send a subscription request to the subscribed device, with the "keep subscription" field in the subscription request set to false. Based on the definition of the "keep subscription" field in related art, the existing subscription from the subscribing device may be terminated, thereby canceling the subscribing device's subscription to the subscribed device's subscription data.

[0224] In some embodiments, the subscribed device may not receive the first indication information, and the subscribed device still reports the subscription data to the subscribing device. Based on this, the data transmission method provided in the embodiment of the present application further includes:

[0225] Step 305: The subscribing device sends a status code to the subscribed device.

[0226] Illustratively, the status code is used to indicate that the subscription data corresponds to a canceled or inactive subscription relationship.

[0227] A canceled or inactive subscription relationship refers to a subscription relationship that the subscribing device has notified of the need for cancellation. In some embodiments, a canceled or inactive subscription relationship can be indicated by a special subscription identifier (e.g., an inactive Subscription ID). Based on the status code, the subscribed device can cancel the subscription relationship corresponding to the subscription data, thereby avoiding reporting the subscription data to the subscribing device again.

[0228] Exemplarily, the status code is the INACTIVE_SUBSCRIBE status code.

[0229] It should be understood that in the above embodiment, the steps on the subscription device side and the steps on the subscribed device side can be independently implemented as an embodiment of the data transmission method. For specific explanations, please refer to the above content.

[0230] To sum up, in the data transmission method provided in the embodiment of the present application, based on the first value and the fourth value, the reporting method of the subscription data can be determined as: reporting after the second time interval; if the subscription data is not received after the second time interval, the subscribing device sends a first indication information for canceling the subscription to the subscribed device.

[0231] Because the second duration is indicated by the fourth value, the time interval for reporting subscription data can be extended, which relatively reduces the reporting frequency of subscription data, thereby avoiding invalid reporting of data and improving the reporting efficiency of subscription data.

[0232] Implementation method 4: reporting after the third period of time.

[0233] FIG9 shows a flowchart of a data transmission method provided by an exemplary embodiment of the present application. Step 302 can be implemented as step 3024, specifically as follows:

[0234] Step 3024: The subscribed device reports subscription data to the subscribing device.

[0235] The reporting method of the subscription data includes: reporting after a third time interval, and the third time interval is determined according to the minimum interval time field carried in the subscription request.

[0236] Optionally, the reporting method is determined based on the fifth value and the sixth value, and the fifth value is used to indicate the third duration; wherein the fifth value is the value of the minimum interval time field, and the sixth value is the value of the maximum interval time field carried in the subscription request.

[0237] It should be understood that the fifth value and the sixth value are both values ​​different from the first value and the second value, and the fifth value is not equal to the first value, and the sixth value is not equal to the second value. In addition, the fifth value may be equal to the third value, and the sixth value may be equal to the fourth value.

[0238] In some embodiments, the first value is 0 and the second value is 0×FFFF.

[0239] As mentioned above, the first and second values ​​can be default values ​​or assigned by the subscribing device or the subscribed device. For example, MinIntervalFloor! = 0, MaxIntervalCeil! = 0×FFFF. MinIntervalFloor! = 0 can be understood as meaning that the minimum interval field value is any value not equal to 0; MaxIntervalCeil! = 0×FFFF can be understood as meaning that the maximum interval field value is any value not equal to 0×FFFF. In this case, the reporting method is determined as: reporting after the third interval duration, where the third interval duration is indicated by the fifth value.

[0240] In this case, if no subscription data report is received after the fourth time interval (the subscribing device does not receive the subscription data, or the subscribed device does not report), the subscribing device may automatically cancel the subscription.

[0241] Optionally, the data transmission method provided in the embodiment of the present application further includes:

[0242] Step 3042: When no subscription data is received after the fourth time interval, the subscribing device sends second indication information to the subscribed device.

[0243] Illustratively, the second indication information is used to instruct the subscribing device to cancel its subscription to the subscribed device regarding subscription data.

[0244] In some embodiments, the second indication information may be provided via a subscription request sent by the subscribing device. For example, if no subscription data is received after a fourth time interval, the subscribing device may send a subscription request to the subscribed device, with the "keep subscription" field in the subscription request set to false. Based on the definition of the "keep subscription" field in related art, the existing subscription from the subscribing device may be terminated, thereby canceling the subscribing device's subscription to the subscribed device's subscription data.

[0245] In some embodiments, the subscribed device may not receive the second indication information, and the subscribed device may still report the subscription data to the subscribing device. Based on this, the data transmission method provided in the embodiment of the present application further includes:

[0246] Step 305: The subscribing device sends a status code to the subscribed device.

[0247] Illustratively, the status code is used to indicate that the subscription data corresponds to a canceled or inactive subscription relationship.

[0248] A canceled or inactive subscription relationship refers to a subscription relationship that the subscribing device has notified of the need for cancellation. In some embodiments, a canceled or inactive subscription relationship can be indicated by a special subscription identifier (e.g., an inactive Subscription ID). Based on the status code, the subscribed device can cancel the subscription relationship corresponding to the subscription data, thereby avoiding reporting the subscription data to the subscribing device again.

[0249] Exemplarily, the status code is the INACTIVE_SUBSCRIBE status code.

[0250] It should be understood that in the above embodiment, the steps on the subscription device side and the steps on the subscribed device side can be independently implemented as an embodiment of the data transmission method. For specific explanations, please refer to the above content.

[0251] To sum up, in the data transmission method provided in the embodiment of the present application, according to the fifth value and the sixth value, the reporting method of the subscription data can be determined as: reporting after the third time interval; if the subscription data is not received after the fourth time interval, the subscribing device sends a second indication information for canceling the subscription to the subscribed device.

[0252] Because the third duration is indicated by the fifth value, the interval for reporting subscription data can be extended, relatively reducing the frequency of reporting subscription data, thereby avoiding invalid data reporting and improving the efficiency of subscription data reporting. Furthermore, because both the fifth and sixth values ​​are included in the subscription request, negotiation between the subscribing device and the subscribed device regarding the maximum interval is eliminated, thereby simplifying and clarifying the determination of the subscription data reporting method.

[0253] It should be understood that the aforementioned embodiments provide examples of different ways of reporting subscription data. The aforementioned embodiments may be implemented individually or in combination, and this application does not limit this.

[0254] For example, the data transmission method provided in the embodiment of the present application can be implemented as follows:

[0255] Among them, after receiving the subscription request sent by the subscribing device, the subscribed device (data publisher) must report data to the subscribing device at a frequency that cannot be lower than MinIntervalFloor (default value 0, unit s) and cannot exceed MaxIntervalCeil or MaxInterval (default value 0xFFFF, unit s).

[0256] Based on this, according to MinIntervalFloor and MaxIntervalCeil, or MinIntervalFloor and MaxInterval, there are several optional reporting methods for subscription data:

[0257] (1) When MinIntervalFloor = 0, MaxIntervalCeil or MaxInterval = 0×FFFF, it means that the subscribed device is allowed to report data only when the state changes;

[0258] (2) When MinIntervalFloor!=0, MaxIntervalCeil or MaxInterval=0×FFFF, it means that the subscribed device reports data according to the frequency set by MinIntervalFloor. If no data is reported within the set MaxIntervalCeil or MinIntervalFloor time, the subscribing device waits for the subscribed device to report data when the data changes;

[0259] (3) When MinIntervalFloor = 0, MaxIntervalCeil or MaxInterval! = 0×FFFF, it means that the subscribed device only needs to report data within the MaxInterval time range. If the MaxIntervalCeil or MaxInterval time is exceeded and no data is reported, the subscriber will automatically cancel the subscription;

[0260] (4) When MinIntervalFloor!=0 and MaxIntervalCeil!=0×FFFF, it means that the subscribed device reports data at the frequency set by MinIntervalFloor. If no data is reported within the set MinIntervalFloor time and no data is reported within the time defined by MaxIntervalCeil, the subscribing device cancels the subscription.

[0261] Optionally, if the subscribing device receives a data report for a canceled or inactive subscription, it sends an INACTIVE_SUBSCRIBE status code to the subscribed device.

[0262] The following is an embodiment of the device of the present application. For details not described in detail in the embodiment of the device, reference can be made to the corresponding records in the above method embodiment, and no further details will be given herein.

[0263] FIG10 shows a schematic diagram of a subscription request apparatus provided by an exemplary embodiment of the present application, the apparatus comprising:

[0264] Reporting module 1020, used to report subscription data to the subscription device;

[0265] There are at least two reporting modes corresponding to subscription data, and the reporting mode is determined at least according to the minimum interval time field carried in the subscription request sent by the subscription device.

[0266] Optionally, the reporting method is determined based on the following information: the minimum interval time field; the maximum interval time field carried in the subscription request.

[0267] Optionally, the reporting method is determined based on the following information: the minimum interval time field; and the maximum interval field carried in the subscription response corresponding to the subscription request.

[0268] Optionally, the reporting method includes: reporting when the status of the attribute and / or event subscribed by the subscribing device changes.

[0269] Optionally, the reporting method is determined based on a first value and a second value; wherein, the first value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription request; or, the first value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

[0270] Optionally, the reporting method includes: reporting after a first time interval, and the first time interval is determined according to the minimum interval time field.

[0271] Optionally, the reporting method further includes: when no subscription data is reported after a first period of time, when a state of an attribute and / or event subscribed by the subscription device changes, reporting the subscription data to the subscription device.

[0272] Optionally, the reporting method is determined based on a third value and a second value, and the third value is used to indicate the first duration; wherein, the third value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription request; or, the third value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

[0273] Optionally, the reporting method includes: reporting after a second interval, the second interval is determined according to the maximum interval time field carried in the subscription request, or the second interval is determined according to the maximum interval field carried in the subscription response corresponding to the subscription request.

[0274] Optionally, the device also includes: a receiving module 1040, used to receive a first indication message sent by the subscribing device; wherein the first indication message is used to instruct the subscribing device to cancel the subscription of the subscribed device to the subscription data, and the first indication message is sent when no subscription data is received after a second time interval.

[0275] Optionally, the reporting method is determined based on the first value and the fourth value, and the fourth value is used to indicate the second duration; wherein, the first value is the value of the minimum interval time field, and the fourth value is the value of the maximum interval time field carried in the subscription request; or, the first value is the value of the minimum interval time field, and the fourth value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

[0276] Optionally, the reporting method includes: reporting after a third time interval, and the third time interval is determined according to the minimum interval time field.

[0277] Optionally, the device also includes: a receiving module 1040, used to receive a second indication message sent by the subscribing device; wherein the second indication message is used to instruct the subscribing device to cancel its subscription to the subscribed device regarding the subscription data, and the second indication message is sent when no subscription data is received after a fourth time interval, and the fourth time interval is greater than the third time interval.

[0278] Optionally, the reporting method is determined based on the fifth value and the sixth value, and the fifth value is used to indicate the third duration; wherein the fifth value is the value of the minimum interval time field, and the sixth value is the value of the maximum interval time field carried in the subscription request.

[0279] Optionally, the default value of the minimum interval time field is the first value, and the default value of the maximum interval time field carried in the subscription request is the second value; or, the default value of the minimum interval time field is the first value, and the default value of the maximum interval field carried in the subscription response corresponding to the subscription request is the second value.

[0280] Optionally, the apparatus further includes: a receiving module 1040, configured to receive a status code sent by a subscription device; wherein the status code is used to indicate that the subscription data is data corresponding to a canceled or inactive subscription relationship.

[0281] FIG11 shows a schematic diagram of a subscription request apparatus provided by an exemplary embodiment of the present application, the apparatus comprising:

[0282] Receiving module 1120, configured to receive subscription data reported by a subscribed device;

[0283] There are at least two reporting modes corresponding to subscription data, and the reporting mode is determined at least according to the minimum interval time field carried in the subscription request sent by the subscription device.

[0284] Optionally, the reporting method is determined based on the following information: the minimum interval time field; the maximum interval time field carried in the subscription request.

[0285] Optionally, the reporting method is determined based on the following information: the minimum interval time field; and the maximum interval field carried in the subscription response corresponding to the subscription request.

[0286] Optionally, the reporting method includes: reporting when the status of the attribute and / or event subscribed by the subscribing device changes.

[0287] Optionally, the reporting method is determined based on a first value and a second value; wherein, the first value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription request; or, the first value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

[0288] Optionally, the reporting method includes: reporting after a first time interval, where the first time interval is determined based on the minimum interval time field; or, if no subscription data is reported after the first time interval, reporting is performed when the status of the attributes and / or events subscribed to by the subscribing device changes.

[0289] Optionally, the reporting method is determined based on a third value and a second value, and the third value is used to indicate the first duration; wherein, the third value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription request; or, the third value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

[0290] Optionally, the reporting method includes: reporting after a second interval, the second interval is determined according to the maximum interval time field carried in the subscription request, or the second interval is determined according to the maximum interval field carried in the subscription response corresponding to the subscription request.

[0291] Optionally, the device also includes: a sending module 1140, which is used to send a first indication message to the subscribed device when no subscription data is received after a second time interval; wherein the first indication message is used to instruct the subscribing device to cancel its subscription to the subscribed device regarding the subscription data.

[0292] Optionally, the reporting method is determined based on the first value and the fourth value, and the fourth value is used to indicate the second duration; wherein, the first value is the value of the minimum interval time field, and the fourth value is the value of the maximum interval time field carried in the subscription request; or, the first value is the value of the minimum interval time field, and the fourth value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

[0293] Optionally, the reporting method includes: reporting after a third time interval, and the third time interval is determined according to the minimum interval time field.

[0294] Optionally, the device also includes: a sending module 1140, used to send a second indication message to the subscribing device when no subscription data is received after a fourth time interval; wherein the second indication message is used to instruct the subscribing device to cancel the subscription of the subscription device to the subscribed device regarding the subscription data, and the fourth time interval is greater than the third time interval.

[0295] Optionally, the reporting method is determined based on the fifth value and the sixth value, and the fifth value is used to indicate the third duration; wherein the fifth value is the value of the minimum interval time field, and the sixth value is the value of the maximum interval time field carried in the subscription request.

[0296] Optionally, the default value of the minimum interval time field is the first value, and the default value of the maximum interval time field carried in the subscription request is the second value; or, the default value of the minimum interval time field is the first value, and the default value of the maximum interval field carried in the subscription response corresponding to the subscription request is the second value.

[0297] Optionally, the apparatus further includes: a sending module 1140, configured to send a status code to the subscribed device; wherein the status code is used to indicate that the subscription data is data corresponding to a canceled or inactive subscription relationship.

[0298] FIG12 shows a schematic structural diagram of a communication device (subscribing device or subscribed device) provided by an exemplary embodiment of the present application. The communication device includes: a processor 1201 , a receiver 1202 , a transmitter 1203 , a memory 1204 and a bus 1205 .

[0299] The processor 1201 includes one or more processing cores. The processor 1201 executes various functional applications and information processing by running software programs and modules.

[0300] The receiver 1202 and the transmitter 1203 may be implemented as a communication component, which may be a communication chip.

[0301] The memory 1204 is connected to the processor 1201 via a bus 1205 .

[0302] The memory 1204 may be used to store at least one instruction, and the processor 1201 may be used to execute the at least one instruction to implement the various steps of the data transmission method mentioned in the above method embodiment.

[0303] In addition, the memory 1204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof. Volatile or non-volatile storage devices include but are not limited to: magnetic disks or optical disks, electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), read-only memory (ROM), magnetic memory, flash memory, and programmable read-only memory (PROM).

[0304] The present application also provides a subscribed device, which includes a memory and a processor; at least one program code is stored in the memory, and the program code is loaded and executed by the processor to implement the aforementioned data transmission method.

[0305] The present application also provides a subscription device, which includes a memory and a processor; the memory stores at least one program code, and the program code is loaded and executed by the processor to implement the aforementioned data transmission method.

[0306] The present application also provides a computer-readable storage medium, in which a computer program is stored. The computer program is used to be executed by a processor to implement the aforementioned data transmission method.

[0307] The present application also provides a chip, which includes a programmable logic circuit and / or program instructions, and is used to implement the aforementioned data transmission method when an electronic device equipped with the chip is running.

[0308] The present application also provides a computer program product, which includes computer instructions. The computer instructions are stored in a computer-readable storage medium. A processor reads and executes the computer instructions from the computer-readable storage medium to implement the aforementioned data transmission method.

[0309] The above description is merely an optional 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 data transmission method, characterized in that: The method is executed by a subscribed device, and includes: Report subscription data to the subscription device; There are at least two reporting modes corresponding to the subscription data, and the reporting mode is determined at least according to the minimum interval time field carried in the subscription request sent by the subscription device.

2. The method according to claim 1, characterized in that The reporting method is determined based on the following information: The minimum interval time field; The maximum interval time field carried in the subscription request.

3. The method according to claim 1, characterized in that The reporting method is determined based on the following information: The minimum interval time field; The maximum interval field carried in the subscription response corresponding to the subscription request.

4. The method according to any one of claims 1 to 3, characterized in that: The reporting methods include: Report when the status of the attribute and / or event subscribed by the subscribing device changes.

5. The method according to claim 4, characterized in that The reporting method is determined according to the first value and the second value; Among them, the first value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription request; or, the first value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

6. The method according to any one of claims 1 to 3, characterized in that: The reporting methods include: Reporting is performed after a first time interval, where the first time interval is determined according to the minimum interval time field.

7. The method according to claim 6, characterized in that The reporting method also includes: In the case that the subscription data is not reported after the first time interval, the subscription data is reported to the subscription device when the status of the attribute and / or event subscribed by the subscription device changes.

8. The method according to claim 6 or 7, characterized in that The reporting mode is determined according to a third value and a second value, where the third value is used to indicate the first duration; Among them, the third value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription request; or, the third value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

9. The method according to any one of claims 1 to 3, characterized in that: The reporting methods include: The reporting is performed after a second interval, where the second interval is determined according to the maximum interval time field carried in the subscription request, or the second interval is determined according to the maximum interval field carried in the subscription response corresponding to the subscription request.

10. The method according to claim 9, characterized in that The method further comprises: Receiving first indication information sent by the subscription device; The first indication information is used to instruct the subscriber to cancel the subscription of the subscription data of the subscribed device, and the first indication information is sent when the subscription data is not received after the second time interval.

11. The method according to claim 9 or 10, characterized in that The reporting mode is determined according to the first value and the fourth value, where the fourth value is used to indicate the second duration; Among them, the first value is the value of the minimum interval time field, and the fourth value is the value of the maximum interval time field carried in the subscription request; or, the first value is the value of the minimum interval time field, and the fourth value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

12. The method according to any one of claims 1 to 3, characterized in that: The reporting methods include: Reporting is performed after a third time interval, where the third time interval is determined according to the minimum interval time field.

13. The method according to claim 12, characterized in that The method further comprises: receiving second indication information sent by the subscription device; The second indication information is used to instruct the cancellation of the subscription of the subscribing device to the subscribed device regarding the subscription data, and the second indication information is sent when the subscription data is not received after a fourth time interval, and the fourth time interval is greater than the third time interval.

14. The method according to claim 12, characterized in that The reporting mode is determined according to a fifth value and a sixth value, wherein the fifth value is used to indicate the third duration; The fifth value is the value of the minimum interval time field, and the sixth value is the value of the maximum interval time field carried in the subscription request.

15. The method according to any one of claims 1 to 14, characterized in that: The default value of the minimum interval time field is the first value, and the default value of the maximum interval time field carried in the subscription request is the second value; Alternatively, the default value of the minimum interval time field is the first value, and the default value of the maximum interval field carried in the subscription response corresponding to the subscription request is the second value.

16. The method according to any one of claims 1 to 15, characterized in that The method further comprises: Receiving a status code sent by the subscription device; The status code is used to indicate that the subscription data is data corresponding to a canceled or inactive subscription relationship.

17. A data transmission method, characterized in that: The method is performed by a subscription device, and includes: Receive subscription data reported by the subscribed device; There are at least two reporting modes corresponding to the subscription data, and the reporting mode is determined at least according to the minimum interval time field carried in the subscription request sent by the subscription device.

18. The method according to claim 17, characterized in that The reporting method is determined based on the following information: The minimum interval time field; The maximum interval time field carried in the subscription request.

19. The method according to claim 17, wherein The reporting method is determined based on the following information: The minimum interval time field; The maximum interval field carried in the subscription response corresponding to the subscription request.

20. The method according to any one of claims 17 to 19, characterized in that The reporting methods include: Report when the status of the attribute and / or event subscribed by the subscribing device changes.

21. The method according to claim 20, characterized in that The reporting method is determined according to the first value and the second value; Among them, the first value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription request; or, the first value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

22. The method according to any one of claims 17 to 19, characterized in that The reporting methods include: Reporting after a first time interval, where the first time interval is determined according to the minimum interval time field; Alternatively, in the case where the subscription data is not reported after the first time interval, reporting is performed when the status of the attribute and / or event subscribed by the subscribing device changes.

23. The method according to claim 22, characterized in that The reporting mode is determined according to a third value and a second value, where the third value is used to indicate the first duration; Among them, the third value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription request; or, the third value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

24. The method according to any one of claims 17 to 19, characterized in that The reporting methods include: The reporting is performed after a second interval, where the second interval is determined according to the maximum interval time field carried in the subscription request, or the second interval is determined according to the maximum interval field carried in the subscription response corresponding to the subscription request.

25. The method according to claim 24, characterized in that The method further comprises: If the subscription data is not received after the second time interval, sending first indication information to the subscribed device; The first indication information is used to instruct to cancel the subscription of the subscribing device to the subscribed device regarding the subscription data.

26. The method according to claim 24 or 25, characterized in that The reporting mode is determined according to the first value and the fourth value, where the fourth value is used to indicate the second duration; Among them, the first value is the value of the minimum interval time field, and the fourth value is the value of the maximum interval time field carried in the subscription request; or, the first value is the value of the minimum interval time field, and the fourth value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

27. The method according to any one of claims 17 to 19, characterized in that The reporting methods include: Reporting is performed after a third time interval, where the third time interval is determined according to the minimum interval time field.

28. The method according to claim 27, characterized in that The method further comprises: If the subscription data is not received after the fourth time interval, sending second indication information to the subscription device; The second indication information is used to instruct to cancel the subscription of the subscribing device to the subscribed device regarding the subscription data, and the fourth duration is greater than the third duration.

29. The method according to claim 27, characterized in that The reporting mode is determined according to a fifth value and a sixth value, wherein the fifth value is used to indicate the third duration; The fifth value is the value of the minimum interval time field, and the sixth value is the value of the maximum interval time field carried in the subscription request.

30. The method according to any one of claims 17 to 29, characterized in that The default value of the minimum interval time field is the first value, and the default value of the maximum interval time field carried in the subscription request is the second value; Alternatively, the default value of the minimum interval time field is the first value, and the default value of the maximum interval field carried in the subscription response corresponding to the subscription request is the second value.

31. The method according to any one of claims 17 to 30, characterized in that The method further comprises: Send a status code to the subscribed device; The status code is used to indicate that the subscription data is data corresponding to a canceled or inactive subscription relationship.

32. A data transmission device, characterized in that: The device comprises: Reporting module, used to report subscription data to the subscription device; There are at least two reporting modes corresponding to the subscription data, and the reporting mode is determined at least according to the minimum interval time field carried in the subscription request sent by the subscription device.

33. The device according to claim 32, characterized in that The reporting method is determined based on the following information: The minimum interval time field; The maximum interval time field carried in the subscription request.

34. The device according to claim 32, characterized in that The reporting method is determined based on the following information: The minimum interval time field; The maximum interval field carried in the subscription response corresponding to the subscription request.

35. The device according to any one of claims 32 to 34, characterized in that The reporting methods include: Report when the status of the attribute and / or event subscribed by the subscribing device changes.

36. The device according to claim 35, characterized in that The reporting method is determined according to the first value and the second value; Among them, the first value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription request; or, the first value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

37. The device according to any one of claims 32 to 34, characterized in that The reporting methods include: Reporting is performed after a first time interval, where the first time interval is determined according to the minimum interval time field.

38. The device according to claim 37, characterized in that The reporting method also includes: In the case that the subscription data is not reported after the first time interval, the subscription data is reported to the subscription device when the status of the attribute and / or event subscribed by the subscription device changes.

39. The device according to claim 37 or 38, characterized in that The reporting mode is determined according to a third value and a second value, where the third value is used to indicate the first duration; Among them, the third value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription request; or, the third value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

40. The device according to any one of claims 32 to 34, characterized in that The reporting methods include: The reporting is performed after a second interval, where the second interval is determined according to the maximum interval time field carried in the subscription request, or the second interval is determined according to the maximum interval field carried in the subscription response corresponding to the subscription request.

41. The device according to claim 40, characterized in that The device further comprises: A receiving module, configured to receive first indication information sent by the subscription device; The first indication information is used to instruct the subscriber to cancel the subscription of the subscription data of the subscribed device, and the first indication information is sent when the subscription data is not received after the second time interval.

42. The device according to claim 40 or 41, characterized in that The reporting mode is determined according to the first value and the fourth value, where the fourth value is used to indicate the second duration; Among them, the first value is the value of the minimum interval time field, and the fourth value is the value of the maximum interval time field carried in the subscription request; or, the first value is the value of the minimum interval time field, and the fourth value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

43. The device according to any one of claims 32 to 34, characterized in that The reporting methods include: Reporting is performed after a third time interval, where the third time interval is determined according to the minimum interval time field.

44. The device according to claim 43, characterized in that The device further comprises: A receiving module, configured to receive second indication information sent by the subscription device; The second indication information is used to instruct the cancellation of the subscription of the subscribing device to the subscribed device regarding the subscription data, and the second indication information is sent when the subscription data is not received after a fourth time interval, and the fourth time interval is greater than the third time interval.

45. The device according to claim 43, characterized in that The reporting mode is determined according to a fifth value and a sixth value, wherein the fifth value is used to indicate the third duration; The fifth value is the value of the minimum interval time field, and the sixth value is the value of the maximum interval time field carried in the subscription request.

46. ​​The device according to any one of claims 32 to 45, characterized in that The default value of the minimum interval time field is the first value, and the default value of the maximum interval time field carried in the subscription request is the second value; Alternatively, the default value of the minimum interval time field is the first value, and the default value of the maximum interval field carried in the subscription response corresponding to the subscription request is the second value.

47. The device according to any one of claims 32 to 46, characterized in that The device further comprises: A receiving module, configured to receive a status code sent by the subscription device; The status code is used to indicate that the subscription data is data corresponding to a canceled or inactive subscription relationship.

48. A data transmission device, characterized in that The apparatus is executed by a subscription device, and includes: A receiving module, configured to receive subscription data reported by a subscribed device; There are at least two reporting modes corresponding to the subscription data, and the reporting mode is determined at least according to the minimum interval time field carried in the subscription request sent by the subscription device.

49. The device according to claim 48, characterized in that The reporting method is determined based on the following information: The minimum interval time field; The maximum interval time field carried in the subscription request.

50. The device according to claim 48, characterized in that The reporting method is determined based on the following information: The minimum interval time field; The maximum interval field carried in the subscription response corresponding to the subscription request.

51. The device according to any one of claims 48 to 50, characterized in that The reporting methods include: Report when the status of the attribute and / or event subscribed by the subscribing device changes.

52. The device according to claim 51, characterized in that The reporting method is determined according to the first value and the second value; Among them, the first value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription request; or, the first value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

53. The device according to any one of claims 48 to 50, characterized in that The reporting methods include: Reporting after a first time interval, where the first time interval is determined according to the minimum interval time field; Alternatively, in the case where the subscription data is not reported after the first time interval, reporting is performed when the status of the attribute and / or event subscribed by the subscribing device changes.

54. The device according to claim 53, characterized in that The reporting mode is determined according to a third value and a second value, where the third value is used to indicate the first duration; Among them, the third value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription request; or, the third value is the value of the minimum interval time field, and the second value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

55. The device according to any one of claims 48 to 50, characterized in that The reporting methods include: The reporting is performed after a second interval, where the second interval is determined according to the maximum interval time field carried in the subscription request, or the second interval is determined according to the maximum interval field carried in the subscription response corresponding to the subscription request.

56. The device according to claim 55, characterized in that The device further comprises: A sending module, configured to send first indication information to the subscribed device if the subscription data is not received after the second time interval; The first indication information is used to instruct to cancel the subscription of the subscribing device to the subscribed device regarding the subscription data.

57. The device according to claim 55 or 56, characterized in that The reporting mode is determined according to the first value and the fourth value, where the fourth value is used to indicate the second duration; Among them, the first value is the value of the minimum interval time field, and the fourth value is the value of the maximum interval time field carried in the subscription request; or, the first value is the value of the minimum interval time field, and the fourth value is the value of the maximum interval time field carried in the subscription response corresponding to the subscription request.

58. The device according to any one of claims 48 to 50, characterized in that The reporting methods include: Reporting is performed after a third time interval, where the third time interval is determined according to the minimum interval time field.

59. The device according to claim 58, characterized in that The device further comprises: a sending module, configured to send second indication information to the subscription device if the subscription data is not received after the fourth time interval; The second indication information is used to instruct to cancel the subscription of the subscribing device to the subscribed device regarding the subscription data, and the fourth duration is greater than the third duration.

60. The device according to claim 58, wherein The reporting mode is determined according to a fifth value and a sixth value, wherein the fifth value is used to indicate the third duration; The fifth value is the value of the minimum interval time field, and the sixth value is the value of the maximum interval time field carried in the subscription request.

61. The device according to any one of claims 48 to 60, characterized in that The default value of the minimum interval time field is the first value, and the default value of the maximum interval time field carried in the subscription request is the second value; Alternatively, the default value of the minimum interval time field is the first value, and the default value of the maximum interval field carried in the subscription response corresponding to the subscription request is the second value.

62. The device according to any one of claims 48 to 61, characterized in that The device further comprises: The sending module is used to send the status code to the subscribed device; The status code is used to indicate that the subscription data is data corresponding to a canceled or inactive subscription relationship.

63. A subscribed device, characterized in that The subscribed device includes a memory and a processor; At least one program code is stored in the memory, and the program code is loaded and executed by the processor to implement the data transmission method according to any one of claims 1 to 16.

64. A subscription device, characterized in that The subscription device includes a memory and a processor; At least one program code is stored in the memory, and the program code is loaded and executed by the processor to implement the data transmission method according to any one of claims 17 to 31.

65. A computer-readable storage medium, characterized in that The storage medium stores a computer program, which is used to be executed by a processor to implement the data transmission method according to any one of claims 1 to 31.

66. A chip, characterized in that The chip includes a programmable logic circuit and / or program instructions, and when an electronic device equipped with the chip is running, is used to implement the data transmission method according to any one of claims 1 to 31.

67. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor reads and executes the computer instructions from the computer-readable storage medium to implement the data transmission method according to any one of claims 1 to 31.