WO2024026802A1 - Data reporting method and apparatus, chip, storage medium, and computer program - Google Patents
Data reporting method and apparatus, chip, storage medium, and computer program Download PDFInfo
- Publication number
- WO2024026802A1 WO2024026802A1 PCT/CN2022/110390 CN2022110390W WO2024026802A1 WO 2024026802 A1 WO2024026802 A1 WO 2024026802A1 CN 2022110390 W CN2022110390 W CN 2022110390W WO 2024026802 A1 WO2024026802 A1 WO 2024026802A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data reporting
- value
- reporting message
- field
- read request
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 105
- 238000004590 computer program Methods 0.000 title claims abstract description 28
- 230000004044 response Effects 0.000 claims description 50
- 230000015654 memory Effects 0.000 claims description 19
- 230000003993 interaction Effects 0.000 abstract description 52
- 238000004891 communication Methods 0.000 description 22
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 10
- 230000009471 action Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 9
- 238000003491 array Methods 0.000 description 4
- 239000004744 fabric Substances 0.000 description 4
- 238000010408 sweeping Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013499 data model Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 240000007594 Oryza sativa Species 0.000 description 1
- 235000007164 Oryza sativa Nutrition 0.000 description 1
- 238000004378 air conditioning Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000009432 framing Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 235000009566 rice Nutrition 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 238000005406 washing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/40—Data acquisition and logging
Definitions
- the present application relates to the technical field of the Internet of Things, and more specifically, to a data reporting method, device, chip, storage medium and computer program.
- the server device can send a data reporting message (ReportDataMessage) to the client device to enable the client device to read data from the server device.
- the data reporting message includes a field used to indicate whether the client device needs to respond to the data reporting message. In the related technology, the setting of this field is unreasonable, which brings trouble to the interoperability of read interaction.
- This application provides a data reporting method, device, chip, storage medium and computer program. Each aspect involved in this application is introduced below.
- a data reporting method including: a server device receives a read request sent by a client device; the server device sends a first data reporting message to the client device, and the first data reporting The message includes or omits a first field, the first field has a first value or a second value, and the first value is used to instruct the client device to respond to the first data reporting message, so The second value is used to indicate that the client device does not respond to the first data reporting message; wherein the value of the first field is determined based on first information, and the first information is used to indicate that the Whether the first data reporting message is the last data reporting message corresponding to the read request; or, the value of the first field is the second value; or the value of the first field is the The first value.
- a data reporting method including: a client device sends a read request to a server device; the client device receives a first data reporting message sent by the server device, and the first data reporting The message includes or omits a first field, the first field has a first value or a second value, and the first value is used to instruct the client device to respond to the first data reporting message, so The second value is used to indicate that the client device does not respond to the first data reporting message; the client device determines whether to send a status response to the server device according to the value of the first field; Wherein, the value of the first field is determined based on first information, and the first information is used to indicate whether the first data reporting message is the last data reporting message corresponding to the read request; or, the third The value of a field is the second value; or the value of the first field is the first value.
- a data reporting device configured on a server device.
- the device includes: a receiving module for receiving a read request sent by a client device; and a sending module for reporting to the client device.
- the device sends a first data reporting message, the first data reporting message includes or omits a first field, the first field has a first value or a second value, and the first value is used to indicate to the customer
- the terminal device responds to the first data reporting message, and the second value is used to indicate that the client device does not respond to the first data reporting message; wherein the value of the first field is based on the first data reporting message.
- An information determination the first information is used to indicate whether the first data reporting message is the last data reporting message corresponding to the read request; or, the value of the first field is the second value ; Or, the value of the first field is the first value.
- a data reporting device configured on a client device.
- the device includes: a first sending module for sending a read request to the server device; a receiving module for receiving the service
- the first data reporting message sent by the end device, the first data reporting message includes or omits a first field, the first field has a first value or a second value, and the first value is used to indicate that the The client device responds to the first data reporting message, and the second value is used to indicate that the client device does not respond to the first data reporting message;
- a determining module is configured to determine according to the first data reporting message.
- the value of the field determines whether to send a status response to the server device; wherein the value of the first field is determined based on first information, and the first information is used to indicate whether the first data reporting message is the The last data reporting message corresponding to the read request; or the value of the first field is the second value; or the value of the first field is the first value.
- a server device including a processor, a memory, and a communication interface.
- the memory is used to store one or more computer programs.
- the processor is used to call the computer program in the memory so that the The server device performs some or all of the steps in the method of the first aspect.
- a client device including a processor, a memory, and a communication interface.
- the memory is used to store one or more computer programs.
- the processor is used to call the computer program in the memory so that the The client device performs some or all of the steps in the method of the second aspect.
- embodiments of the present application provide a communication system, which includes the above-mentioned server device and/or client device.
- the system may also include other devices that interact with the server device or the client device in the solution provided by the embodiments of the present application.
- embodiments of the present application provide a computer-readable storage medium.
- the computer-readable storage medium stores a computer program.
- the computer program causes the data reporting device to perform some or all of the steps in the methods of the above aspects. .
- embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause the data reporting device to execute Some or all of the steps in the methods of the above aspects.
- the computer program product can be a software installation package.
- embodiments of the present application provide a chip, which includes a memory and a processor.
- the processor can call and run a computer program from the memory to implement some or all of the steps described in the methods of the above aspects.
- the value of the first field in the first data reporting message may be set to the first value (that is, the client device responds to the first data reporting message); or, The value of a field can be set to the second value (that is, the client device does not respond to the first data reporting message) to be consistent with the value of the field used to indicate whether to respond to the data reporting operation in the upper layer data reporting operation.
- the values are consistent; or, the value of the first field can be determined based on whether the first data reporting message is the last data reporting message corresponding to the read request, so as to determine the value of the first field according to different situations.
- the above method can make the setting of the first field more reasonable and help improve the interoperability of read interaction.
- FIG. 1 is an architectural example diagram of a wireless communication system applicable to embodiments of the present application.
- Figure 2 is an example diagram of the layered architecture of Matter equipment.
- Figure 3 is a schematic flow chart of read interaction provided by an embodiment of the present application.
- Figure 4 is a schematic flow chart of read interaction provided by another embodiment of the present application.
- Figure 5 is a schematic flowchart of a data reporting method provided by an embodiment of the present application.
- Figure 6 is a schematic flowchart of a data reporting method provided by another embodiment of the present application.
- Figure 7 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
- Figure 8 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
- Figure 9 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
- Figure 10 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
- Figure 11 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
- Figure 12 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
- Figure 13 is a schematic structural diagram of a data reporting device provided by an embodiment of the present application.
- Figure 14 is a schematic structural diagram of a data reporting device provided by another embodiment of the present application.
- Figure 15 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
- IoT The Internet of things
- IoT devices may be smart home devices.
- IoT devices may include smart air conditioners, smart refrigerators, washing machines, rice cookers, sweeping robots, and other devices.
- the IoT device may be an intelligent monitoring device.
- the IoT device may include a surveillance camera, a temperature sensor, a sound sensor, etc.
- the Connectivity Standards Alliance launched an Internet of Things application layer technology standard—Matter Standard Protocol, which can provide an interoperable application layer for smart home devices based on Internet Protocol (Internet Protocol, IP) solution.
- IP Internet Protocol
- the Matter standard may also be called a connected home over IP (CHIP) standard.
- the Matter standard can support three underlying communication protocols: Ethernet, Wi-Fi, and Thread, and can allow IoT devices with different protocols to communicate with each other.
- the communication system 100 shown in FIG. 1 may include a Matter client device 110 and a Matter server device 120.
- the Matter client device 110 is a client device on the user side, and the Matter client device 110 can communicate with the Matter server device 120 .
- the Matter client device 110 can send control information to the Matter server device 120 to control the Matter server device 120 .
- the Matter server device 120 is a smart air conditioner
- the Matter client device 110 can control the temperature adjustment of the Matter server device 120 by sending control information to the Matter server device 120 .
- the Matter client device 110 may send request information to the Matter server device 120 to request interaction with the Matter server device 120, such as data transmission.
- the Matter server device 120 is a smart air conditioner
- the Matter client device 110 can subscribe to the indoor temperature measured by the air conditioning sensor of the Matter server device 120 by sending subscription request information to the Matter server device 120 . At this time, users can monitor the indoor temperature by receiving periodic reports.
- the above-mentioned Matter client device 110 may refer to a terminal device with a Matter client installed, where the terminal device may be a mobile phone, a computer, a tablet, a smart bracelet, a smart watch, etc.
- the Matter client can be an application (application, APP) or a small program, etc., and the embodiments of the present application are not limited to this.
- the Matter server device 120 may refer to an Internet of Things device that supports the Matter standard protocol.
- the Matter server device 120 can directly communicate with the Matter client device 110, so that the Matter client device 110 controls the Matter server device 120.
- the Matter server device 120 when the Matter server device 120 is a smart air conditioner that supports the Matter standard protocol, the Matter client device 110 can control the switch of the smart air conditioner and set the air conditioner temperature, wind speed, etc.
- the Matter server device 120 is a sweeping robot that supports the Matter standard protocol
- the Matter client device 110 can control the sweeping robot to start or stop working, control the working mode of the sweeping robot, etc.
- the communication system 100 shown in FIG. 1 may also include other devices such as a configuration device (commissioner), which is not limited in this embodiment of the present application.
- the configuration device can be used to configure the Matter server device 120.
- the configuration device can be understood as a terminal device installed with a configuration terminal through which the user can configure the Matter server device 120 .
- the terminal device may be a mobile phone, a computer, a tablet, a smart bracelet, a smart watch, etc., which are not limited in the embodiments of the present application.
- the configuration terminal may be an application program or an applet, which is not limited in the embodiments of the present application.
- configuration terminal can be the same APP or applet as the Matter client.
- configuration terminal can be a different APP or applet from the Matter client.
- the embodiments of the present application do not limit this.
- the architecture of Matter devices can be divided into multiple layers, and different layers can implement different responsibilities.
- Figure 2 shows an example diagram of the layered architecture of a Matter device. As shown in Figure 2, the architecture of the Matter device can be divided into 7 layers, from high to low: application layer, data model layer, interaction model layer, and operation frame layer. (action framing layer), security layer (security layer), message layer (message layer), and IP transport layer (IP transport layer).
- the application layer corresponds to the high-order business logic of Matter devices.
- an application focused on lighting might contain logic that handles turning a light bulb on/off, as well as its color characteristics.
- the data model layer corresponds to data primitives that help describe device functionality. Applications can execute these data structures when the Matter device has the intention to interact with other devices (for example, another Matter device).
- the interaction model layer represents a set of operations that can be performed on a Matter device in order to interact with other devices (for example, another Matter device). These operations can execute structures defined at the data model layer.
- the operation is serialized into a prescribed binary format for encoding over the network. This process is handled at the operation frame level.
- the security layer can process encoded operation frames, such as encrypting messages, adding message verification codes, etc. These operations ensure that data remains confidential and authentic between the sender and receiver of the message.
- the message layer can use required and optional header fields to construct a payload format that can specify the attributes and logical routing information of the message.
- the message layer constructs the payload
- the message will be sent to the IP transport layer for IP management of data through the underlying transport protocol (for example, TCP protocol).
- transport protocol for example, TCP protocol
- the interaction model of the Matter device is implemented at the interaction model layer of the Matter device.
- the interaction model of Matter devices can be used to define interactions, transactions, and actions between Matter client devices and Matter server devices. Among them, Matter client device and Matter server device can be understood as different nodes.
- a physical entity for example, Matter device
- a node can have multiple node identifiers (identifiers, IDs), and the scope of each node ID is a specific device collection (fabric). For example, when a node ID is used as the target address for an interaction, the network within the scope of the specified node ID is the access network for the interaction.
- An operation can be understood as a single logical communication from a source node to one or more target nodes, for example, a single logical communication from a Matter client device to a Matter server device, or a single logical communication from a Matter server device to a Matter client device. logical communication.
- Read request operations can be used to request cluster attribute data and/or events.
- Data reporting operations can be used to respond to read request operations or subscription request operations.
- the status response action can be used to return a success or error response.
- the subscribe request operation can be used to request a subscription to feature set property data and/or events.
- Subscription response operations can be used in response to subscription request operations.
- Read transactions can be used to request feature set properties and/or event data.
- Subscription transactions can be used to subscribe to feature set properties and/or event data.
- Reporting transactions can be used as part of a subscription interaction to maintain the subscription interaction.
- Write transactions can be used to modify feature set properties.
- Invoking transactions can be used to invoke feature set commands.
- a transaction is composed of a series of operations, or a transaction can include one or more operations.
- a read transaction can include multiple operations such as read request operations, data reporting operations, and status response operations.
- subscription transactions can include multiple operations such as subscription request operations, data reporting operations, and subscription response operations.
- reporting transactions can include only data reporting operations, or multiple operations such as data reporting operations and status response operations.
- Read interactions can be used to request feature set properties and/or event data.
- Subscription interactions can be used to subscribe to feature set properties and/or event data.
- Write interactions can be used to modify feature set properties.
- Invoke interactions can be used to invoke feature set commands.
- An interaction is composed of a series of transactions, or an interaction can include one or more transactions. Taking read interaction as an example, the read interaction may only include a read transaction. Take subscription interaction as an example. Subscription interaction can include multiple transactions such as subscription transactions and reporting transactions.
- different transactions may contain data reporting operations, such as read transactions, subscription transactions, reporting transactions, etc.
- the data reporting operation is the first operation in a reporting transaction (as part of a subscription interaction), for example, as the first operation in each synchronized reporting transaction.
- the data reporting operation is a subsequent operation of the read request operation or the subscription request operation, for example, as part of a read transaction that directly responds to the read request operation, or as part of a subscription transaction that directly responds to the subscription request operation.
- the specific operation information of the data reporting operation can be found in Table 2.
- the data reporting operation can consist of one or more required fields and optional fields. Take the mandatory field SuppressResponse as an example. This field can be used to indicate whether the client device needs to respond to the data reporting operation. When the value of SuppressResponse is TRUE, it can mean that the client device does not respond to the data reporting operation; when the value of SuppressResponse is FALSE, it can mean that the client device responds to the data reporting operation.
- the data reporting operation may be unicast.
- the attribute reporting and/or event reporting lists in the data reporting operation may be empty.
- the data reporting operation shall not include any nested attribute data fields or nested event data fields defined as fabric sensitive.
- SuppressResponse may be set to TRUE for a data reporting operation that initiates a reporting transaction that delivers an empty list of attribute reporting and event reporting. In some embodiments, SuppressResponse should be set to TRUE for data reporting operations as part of a read transaction. In some embodiments, SuppressResponse should be set to FALSE for reporting data operations as part of a subscription transaction.
- the client device After the client device receives the data reporting operation, if the SuppressResponse of the data reporting operation is TRUE, the client device does not generate a response to the data reporting operation; otherwise, the client device can generate a status response operation.
- the status code corresponding to the status response operation may include the following: success (SUCCESS) to continue interacting with the server device; invalid subscription (INVALID_SUBSCRIPTION).
- the code can be used when the data reporting operation is part of the subscription interaction and the subscription ID is invalid; fail (FAILURE) to terminate the interaction with the server device.
- Operations can be delivered by one or more messages.
- the actual construction and encoding of messages is done in the message layer, which is located below the interaction model layer.
- the message layer can encode the operation of the interaction model layer into one or more messages and deliver the message to the destination.
- the message layer of the server device can encode the data reporting operation into one or more data reports. message, and deliver the one or more data reporting messages to the client device.
- the contents of the data reporting message can be seen in Table 3. As shown in Table 3, the data reporting message can include one or more fields, such as SuppressResponse, MoreChunkedMessages, etc.
- the sender eg, server device
- the recipient for each data reporting message received by the recipient (eg, client device), the recipient should return a successful status response message (StatusResponseMessage) to the sender unless SuppressResponse is TRUE.
- StatusResponseMessage a successful status response message
- SuppressResponse should not be set to TRUE when AttributeReports or EventReports is a non-empty array.
- the SuppressResponse of the data reporting operation should be set to TRUE; for the message layer, the SuppressResponse of the data reporting message should be set to TRUE. Should be set to FALSE when AttributeReports or EventReports is a non-empty array.
- the server device sends a data reporting message to the client device, the client device may report an error due to different understanding of the SuppressResponse field.
- the field setting in the data reporting message that indicates whether the client device needs to respond to the data reporting message is unreasonably set, which may cause the client device to easily report an error after receiving the data reporting message. This will bring interoperability to the realization of read interaction. to trouble.
- the embodiments of the present application propose three embodiments, which can make the setting of the field used to indicate whether the client device needs to respond to the data reporting message (ie, the first field below) more convenient. It is reasonable and helps to improve the interoperability of read interaction.
- the first embodiment aims to determine the value of the first field based on whether the first data reporting message is the last data reporting message corresponding to the read request.
- Embodiment 2 aims to set the value of the first field in the data reporting message to the second value (that is, the client device does not respond to the first data reporting message), so as to be consistent with the upper layer data reporting operation used to indicate whether The values of the fields that need to respond to the data reporting operation must be consistent.
- Embodiment 3 aims to set the value of the first field in the data reporting message to the first value (the client device responds to the first data reporting message).
- Embodiment 1 to Embodiment 3 are described below respectively.
- Figures 3 and 4 are schematic flow charts of read interactions provided by embodiments of the present application.
- this flow diagram can also be understood as a flow diagram of a read transaction.
- read interaction can include multiple operations such as read request operations, data reporting operations, and status response operations.
- Each operation in a read interaction can be delivered by one or more messages.
- a read request operation can be delivered by a read request message
- a data reporting operation can be delivered by one or more data reporting messages, and so on.
- the data reporting operation is constructed at the interaction model layer, while the data reporting message is constructed and encoded at the message layer.
- Figure 3 shows a schematic flow chart of a data reporting operation transmitted by a data reporting message.
- the client device sends a read request to the server device.
- This read request can be used to request feature set attribute data and/or events.
- the read request can be understood as a read request message, which is used to transmit the read request operation of the client device.
- step S320 the server device sends a first data reporting message to the client device.
- the server device After receiving the read request sent by the client device, the server device can determine the function set attribute data and/or events corresponding to the read request based on the read request, and send a data reporting message to the client device, wherein the data reporting message Carrying the function set attribute data report and/or event report corresponding to the read request.
- the function set attribute data report and the event report can be carried in the data reporting message in the form of an array.
- the attribute data report can include one or more attribute reporting information block arrays (for example, the AttributeReportIB array), event The report can include one or more arrays of event reporting information blocks (for example, the EventReportIB array).
- a read request can correspond to one or more data reporting messages.
- the read request only corresponds to one data reporting message (ie, only corresponds to the first data reporting message).
- the first data reporting message may carry all function set attribute data and/or events corresponding to the read request.
- the server device when the read request corresponds to only one data reporting message, it can be considered that the server device sends the data reporting message to the client device in a single reporting manner.
- the first data reporting message may include a first field, and the first field may be used to indicate whether the client device needs to respond to the first data reporting message.
- the first data reporting message may omit the first field.
- the first data reporting message may be omitted.
- the first field will be described in detail later and will not be described here.
- step S330 the client device determines whether to send a status response to the server device. In some embodiments, if the value of the first field is used to instruct the client device to send a status response to the server device, or the first data reporting message omits the first field, then the process shown in Figure 3 may also include step S340 .
- step S340 the client device sends a status response to the server device. This status response can be used to return a success or error response to the server device. In some embodiments, the status response can be understood as a status response message, which is used to convey the status response operation of the client device.
- the embodiment of this application does not limit the status code contained in the status response message.
- the status code can be any of successful, failed, or invalid subscription.
- Figure 4 shows a schematic flow chart in which the data reporting operation is transmitted by multiple data reporting messages.
- the client device sends a read request to the server device.
- step S410 For relevant description of step S410, please refer to step S310, which will not be described again here.
- step S420 the server device sends a data reporting message to the client device.
- the read request corresponds to multiple data reporting messages
- the first data reporting message may be any one of the multiple data reporting messages.
- the function set attribute data and/or events corresponding to the read request require multiple data reporting messages to be carried, and the first data reporting message carries part of the function set attribute data and/or events corresponding to the read request.
- the server device when the read request corresponds to multiple data reporting messages, it can be considered that the server device sends the data reporting message to the client device in a segmented reporting manner, where each data reporting message carries part of the segmentation data.
- the server device can split the function set attribute data and/or events corresponding to the read request into multiple segmented data, and each data reporting message carries part of the multiple segmented data. segment data.
- the first field may include the first field or omit the first field.
- the client device can determine whether to send a status response to the server device based on the received data reporting message, for example , when the value of the first field is the first value or the first data reporting message omits the first field, send a status response to the server device; when the value of the first field is the second value , does not send a status response to the server device.
- the client device can also send a status response to the server device.
- the status response please refer to the previous description of step S340, which will not be described again here.
- the first data reporting message can be understood as one or more data reporting messages sent by the server device to the client device. anyone.
- the first field is used to indicate whether the client device needs to respond to the data reporting message.
- the first field may be, for example, the SuppressResponse mentioned above.
- the first field may have different values, for example, it may have two values (a first value and/or a second value).
- the first value may be used to instruct the client device to respond to the first data reporting message
- the second value may be used to instruct the client device not to respond to the first data reporting message.
- the type of the first field may be Boolean.
- the first value may be FALSE to instruct the client device to respond to the first data reporting message; the second value may be TRUE to instruct the client device not to respond to the data reporting message.
- the embodiment of the present application is not limited to this.
- the type of the first field may be a numeric type.
- the first field in the first data reporting message can be omitted, that is, , when the value of the first field is the first value, the first data reporting message may omit the first field.
- the client device After the client device receives the first data reporting message, if the first data reporting message omits the first field, the client device needs to respond to the first data reporting message, that is, the client device needs to send a status response to the server device.
- the embodiments of the present application are not limited to this.
- the value of the first field is the second value
- the server device sends the first data reporting message to the client device the first The first field in the data reporting message can be omitted.
- the value of the first field may be determined based on the first information.
- the first information is used to indicate whether the first data reporting message is the last data reporting message corresponding to the read request.
- the value of the first field may be the first value; if the first information indicates that the first data reporting message The message is the last data reporting message corresponding to the read request, then the value of the first field can be the second value.
- the server device before sending the first data reporting message to the client device, the server device may set the value of the first field according to the first information.
- the first data reporting message can be understood as the last data reporting message corresponding to the read request.
- the server device can set the value of the first field to the second value.
- Figure 5 is a schematic flowchart of a data reporting method provided by an embodiment of the present application.
- the schematic flowchart of the data reporting method can also be understood as a schematic flowchart of read interaction between a client device and a server device.
- the read request only corresponds to one data reporting message.
- step S510 the client device sends a read request to the server device.
- step S520 after receiving the read request, the server device sets the value of the first field according to the first information.
- the server device determines that the read request only corresponds to the first data reporting message, and the server device determines that the first data reporting message is the last data reporting message corresponding to the read request. Based on this, the server device can set the value of the first field to the second value.
- step S530 the server device sends a first data reporting message to the client device, where the value of the first field in the first data reporting message is the second value.
- the client device determines not to respond to the data reporting message according to the value of the first field.
- the server device needs to determine whether the first data reporting message is the last data reporting message among multiple data reporting messages. In this case, the server device can set the value of the first field according to the judgment result.
- the server device sets the value of the first field to the second value. if the read request corresponds to multiple data reporting messages, and the first data reporting message is not the last data reporting message among the multiple data reporting messages, the server device sets the value of the first field to the first value.
- Figure 6 is a schematic flowchart of a data reporting method provided by another embodiment of the present application.
- the read request corresponds to multiple data reporting messages.
- step S610 the client device sends a read request to the server device.
- step S620 after receiving the read request, the server device sets the value of the first field of the first data reporting message among the multiple data reporting messages.
- the server device determines that the read request corresponds to multiple data reporting messages, and the server device can set the value of the first field of the first data reporting message among the multiple data reporting messages to the first value (such In this case, the first field of the first data reporting message can also be omitted).
- step S630 the server device sends the first data reporting message among the plurality of data reporting messages to the client device, where the value of the first field in the first data reporting message is the first value.
- step S640 the client device sends a status response to the server device to return a success or error response.
- step S650 the server device sets the value of the first field of the second data reporting message among the plurality of data reporting messages.
- the server device sets the value of the first field of the second data reporting message to the second value. In this way, after receiving the data reporting message sent by the server device, the client device determines not to respond to the data reporting message according to the value of the first field.
- the server device sets the value of the first field of the second data reporting message to the first value. In this way, after receiving the data reporting message sent by the server device, the client device determines to send a status response to the server device according to the value of the first field.
- the server device continues to determine whether the subsequent data reporting message is the last data reporting message among the multiple data reporting messages until Determine that a certain data reporting message is the last data reporting message among multiple data reporting messages. In this case, the server device sets the value of the first field of the last data reporting message to the second value.
- the value of the first field may be the second value; if the first information indicates that the first data reporting message The message is the last data reporting message corresponding to the read request, then the value of the first field can be the first value.
- the server device before sending the first data reporting message to the client device, the server device may set the value of the first field according to the first information.
- the first data reporting message can be understood as the last data reporting message corresponding to the read request.
- the server device can set the value of the first field to the first value.
- Figure 7 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
- the read request only corresponds to one data reporting message.
- step S710 the client device sends a read request to the server device.
- step S720 after receiving the read request, the server device sets the value of the first field according to the first information.
- the server device determines that the read request only corresponds to the first data reporting message, and the server device determines that the first data reporting message is the last data reporting message corresponding to the read request. Based on this, the server device can set the value of the first field to the first value.
- step S730 the server device sends a first data reporting message to the client device, where the value of the first field in the first data reporting message is the first value.
- step S740 the client device sends a status response to the server device to return a success or error response.
- the server device needs to determine whether the first data reporting message is the last data reporting message among multiple data reporting messages. In this case, the server device can set the value of the first field according to the judgment result.
- the server device sets the value of the first field to the first value. if the read request corresponds to multiple data reporting messages, and the first data reporting message is not the last data reporting message among the multiple data reporting messages, the server device sets the value of the first field to the second value.
- Figure 8 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
- the read request corresponds to multiple data reporting messages.
- step S810 the client device sends a read request to the server device.
- step S820 after receiving the read request, the server device sets the value of the first field of the first data reporting message among the plurality of data reporting messages.
- the server device determines that the read request corresponds to multiple data reporting messages, and the server device can set the value of the first field of the first data reporting message among the multiple data reporting messages to the second value.
- step S830 the server device sends the first data reporting message among the plurality of data reporting messages to the client device, where the value of the first field in the first data reporting message is the second value. In this way, after the client device receives the first data reporting message sent by the server device, it determines not to respond to the first data reporting message according to the value of the first field.
- step S840 the server device sets the value of the first field of the second data reporting message among the plurality of data reporting messages.
- the server device sets the value of the first field of the second data reporting message to the first value. In this way, after receiving the data reporting message sent by the server device, the client device determines to respond to the data reporting message according to the value of the first field. In this case, after step S840, the client device may also send a status response to the server device to return a success or error response.
- the server device sets the value of the first field of the second data reporting message to the second value. In this way, after receiving the data reporting message sent by the server device, the client device does not send a status response to the server device according to the value of the first field.
- the server device continues to determine whether the subsequent data reporting message is the last data reporting message among the multiple data reporting messages until Determine that a certain data reporting message is the last data reporting message among multiple data reporting messages. In this case, the server device sets the value of the first field of the last data reporting message as the first value.
- the first data reporting message may include a second field, and the second field is used to carry the first information. That is to say, the second field may be used to indicate whether the first data reporting message is the last data reporting message corresponding to the read request.
- the first data reporting message when the value of the second field is used to indicate that the first data reporting message is the last data reporting message corresponding to the read request, the first data reporting message may omit the second field.
- the second field may be used to directly indicate whether the first data reporting message is the last data reporting message corresponding to the read request.
- the second field may be used to indirectly indicate whether the first data reporting message is the last data reporting message corresponding to the read request.
- the second field may be used to indicate whether the read request corresponds to more block messages after the first data reporting message (that is, after the server device sends the first data reporting message, whether there are subsequent pending messages corresponding to the read request. Sending data needs to be sent).
- the first data reporting message is the last data reporting message corresponding to the read request; if the second field The value of is used to indicate that the read request also corresponds to more chunked messages after the first data reporting message (the read request still has chunked messages to be sent after the first data reporting message), then it can be considered that the first data reporting message It is not the last data reporting message corresponding to the read request.
- the first data reporting message is the last data reporting message corresponding to the read request; if there is still no subsequent data to be sent after the server device sends the first data reporting message, If there is subsequent data to be sent, the first data reporting message is not the last data reporting message corresponding to the read request.
- the second field may have a third value and/or a fourth value.
- the third value may be used to indicate that the first data reporting message is the last data reporting message corresponding to the read request
- the fourth value may be used to indicate that the first data reporting message is not the last data reporting message corresponding to the read request.
- the second field may be, for example, the aforementioned MoreChunkedMessages.
- the type of the second field may be Boolean.
- the third value may be FALSE to indicate that the first data reporting message is the last data reporting message corresponding to the read request; the fourth value may be TRUE to indicate that the first data reporting message is not the last data reporting message corresponding to the read request. Data reporting message.
- the embodiment of the present application is not limited to this.
- the type of the second field may be a numeric type.
- the third value may be 0 to indicate that the first data reporting message is the last data reporting message corresponding to the read request; the second value may be any value except 0 (for example, the second value It can be any value greater than 0, for example, the second value is 1) to indicate that the first data reporting message is not the last data reporting message corresponding to the read request.
- the second field in the first data reporting message may be omitted.
- the first data reporting message is a data reporting message including an attribute data report and/or an event report.
- At least one of the attribute data report and the event report in the first data reporting message is a non-empty array.
- the attribute data report in the first data reporting message is a non-empty array, or the first data The attribute data report and event report in the reporting message are both non-empty arrays.
- the attribute data report and/or event report in the first data reporting message being a non-empty array may mean that the AttributeReports and/or EventReports in the first data reporting message are a non-empty array.
- the embodiments of the present application are not limited thereto.
- the first data reporting message may also be a data reporting message that does not include an attribute data report and/or an event report. In other words, the AttributeReports and/or EventReports in the first data reporting message are empty arrays.
- the value of the first field is the second value.
- the first field in the first data reporting message may be used to indicate that the client device does not respond to the first data reporting message. This is taken into account that for the data reporting operation in the read transaction, the client device does not respond to the data reporting operation, and the setting mechanism of the first field in the lower-layer data reporting message is consistent with the setting mechanism of the corresponding field in the upper-layer data reporting operation. , which is conducive to improving the interoperability of read interaction.
- the first data reporting message can be understood as the last data reporting message corresponding to the read request.
- the server device can set the value of the first field to the second value.
- Figure 9 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
- the read request only corresponds to one data reporting message.
- step S910 the client device sends a read request to the server device.
- step S920 after receiving the read request, the server device sets the value of the first field to the second value.
- step S930 the server device sends a first data reporting message to the client device, where the value of the first field in the first data reporting message is the second value.
- the client device determines not to respond to the data reporting message according to the value of the first field.
- the server device sends data reporting messages in segmented reporting
- the server device You can set the value of the first field to the second value.
- the server device sets the value of the first field to the second value. value.
- Figure 10 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
- the read request corresponds to multiple data reporting messages.
- step S1010 the client device sends a read request to the server device.
- step S1020 after receiving the read request, the server device sets the value of the first field of the first data reporting message among the plurality of data reporting messages to the second value.
- step S1030 the server device sends the first data reporting message among the plurality of data reporting messages to the client device, where the value of the first field in the first data reporting message is the second value.
- step S1040 the server device sets the value of the first field of the second data reporting message among the plurality of data reporting messages to the second value.
- step S1050 the server device sends a second data reporting message to the client device, and the value of the first field in the second data reporting message is the second value.
- the server device sends multiple data reporting messages corresponding to the read request to the client device, where the value of the first field in any of the multiple data reporting messages is set to Second value.
- the value of the first field is the first value.
- the first field in the first data reporting message can be used to instruct the client device to respond to the first data reporting message.
- the first data reporting message can be understood as the last data reporting message corresponding to the read request.
- the server device can set the value of the first field to the first value.
- Figure 11 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application. In the method shown in Figure 11, the read request only corresponds to one data reporting message.
- step S1110 the client device sends a read request to the server device.
- step S1120 after receiving the read request, the server device sets the value of the first field to the first value.
- step S1130 the server device sends a first data reporting message to the client device, where the value of the first field in the first data reporting message is the first value.
- step S1140 the client device sends a status response to the server device.
- the server device sends data reporting messages in segmented reporting
- the server device before sending the first data reporting message, the server device The value of the first field can be set to the first value.
- the server device sets the value of the first field to the first value. value.
- Figure 12 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
- the read request corresponds to multiple data reporting messages.
- step S1210 the client device sends a read request to the server device.
- step S1220 after receiving the read request, the server device sets the value of the first field of the first data reporting message among the plurality of data reporting messages as the first value.
- step S1230 the server device sends the first data reporting message among the plurality of data reporting messages to the client device, where the value of the first field in the first data reporting message is the first value.
- step S1240 after receiving the reporting data sent by the server device, the client device sends a status response to the server device.
- step S1250 the server device sets the value of the first field of the second data reporting message among the plurality of data reporting messages to the first value, and sends the second data reporting message to the client device.
- the server device sends multiple data reporting messages corresponding to the read request to the client device, where the value of the first field in any of the multiple data reporting messages is set to The first value.
- Figure 13 is a schematic structural diagram of a data reporting device provided by an embodiment of the present application.
- the data reporting device 1300 shown in Figure 13 can be configured on a server device, and the server device can be any of the server devices mentioned above.
- the data reporting device 1300 may include a receiving module 1310 and a sending module 1320.
- the receiving module 1310 may be used for read requests sent by the client device.
- the sending module 1320 may be configured to send a first data reporting message to the client device.
- the first data reporting message includes or omits a first field, and the first field has a first value or a second value, so The first value is used to instruct the client device to respond to the first data reporting message, and the second value is used to instruct the client device not to respond to the first data reporting message; wherein , the value of the first field is determined based on first information, and the first information is used to indicate whether the first data reporting message is the last data reporting message corresponding to the read request; or, the first The value of the field is the second value; or the value of the first field is the first value.
- the value of the first field is the first value; if If the first information indicates that the first data reporting message is the last data reporting message corresponding to the read request, then the value of the first field is the second value.
- the device 1300 further includes: a first setting module, configured to set the value of the first field to the second value if the read request only corresponds to the first data reporting message.
- a first setting module configured to set the value of the first field to the second value if the read request only corresponds to the first data reporting message.
- the device 1300 also includes: a second setting module, configured to: if the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data in the multiple data reporting messages report message, then set the value of the first field to the second value; and/or a third setting module for reporting messages if the read request corresponds to multiple data, and the first data If the reported message is not the last data reporting message among the plurality of data reporting messages, the value of the first field is set to the first value.
- a second setting module configured to: if the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data in the multiple data reporting messages report message, then set the value of the first field to the second value
- a third setting module for reporting messages if the read request corresponds to multiple data, and the first data If the reported message is not the last data reporting message among the plurality of data reporting messages, the value of the first field is set to the first value.
- the value of the first field is the second value; if the If the first information indicates that the first data reporting message is the last data reporting message corresponding to the read request, then the value of the first field is the first value.
- the device 1300 further includes: a fourth setting module, configured to set the value of the first field to the first value if the read request only corresponds to the first data reporting message.
- a fourth setting module configured to set the value of the first field to the first value if the read request only corresponds to the first data reporting message.
- the device 1300 further includes: a fifth setting module, configured to: if the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data reporting message among the multiple data reporting messages message, then set the value of the first field to the first value; and/or a sixth setting module, used if the read request corresponds to multiple data reporting messages, and the first data reporting If the message is not the last data reporting message among the plurality of data reporting messages, the value of the first field is set to the second value.
- a fifth setting module configured to: if the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data reporting message among the multiple data reporting messages message, then set the value of the first field to the first value
- a sixth setting module used if the read request corresponds to multiple data reporting messages, and the first data reporting If the message is not the last data reporting message among the plurality of data reporting messages, the value of the first field is set to the second value.
- the first data reporting message includes or omits a second field, where the second field is used to carry the first information.
- the first data reporting message omits the third data reporting message. Two fields.
- the first data reporting message omits the first field.
- the first data reporting message is a data reporting message including an attribute data report and/or an event report, and at least one of the attribute data report and the event report is a non-empty array.
- Figure 14 is a schematic structural diagram of a data reporting device provided by another embodiment of the present application.
- the data reporting device 1400 shown in Figure 14 can be configured on a client device, and the client device can be any of the client devices mentioned above.
- the data reporting device 1400 may include a first sending module 1410, a receiving module 1420, and a determining module 1430.
- the first sending module 1410 may be used to send a read request to the server device.
- the receiving module 1420 may be configured to receive a first data reporting message sent by the server device.
- the first data reporting message includes or omits a first field, and the first field has a first value or a second value,
- the first value is used to instruct the client device to respond to the first data reporting message
- the second value is used to instruct the client device not to respond to the first data reporting message.
- the determining module 1430 may be configured to determine whether to send a status response to the server device according to the value of the first field; wherein the value of the first field is determined based on first information, and the first information is used to Indicate whether the first data reporting message is the last data reporting message corresponding to the read request; or, the value of the first field is the second value; or, the value of the first field is the first value.
- the value of the first field is the first value; if If the first information indicates that the first data reporting message is the last data reporting message corresponding to the read request, then the value of the first field is the second value.
- the value of the first field is the second value.
- the value of the first field is The second value; and/or if the read request corresponds to multiple data reporting messages, and the first data reporting message is not the last data reporting message among the multiple data reporting messages, then the third data reporting message The value of a field is the first value.
- the value of the first field is the second value; if the If the first information indicates that the first data reporting message is the last data reporting message corresponding to the read request, then the value of the first field is the first value.
- the value of the first field is the first value.
- the value of the first field is The first value; and/or if the read request corresponds to multiple data reporting messages, and the first data reporting message is not the last data reporting message among the multiple data reporting messages, then the third data reporting message The value of a field is the second value.
- the first data reporting message includes or omits a second field, where the second field is used to carry the first information.
- the first data reporting message omits the third data reporting message. Two fields.
- the first data reporting message omits the first field.
- the first data reporting message is a data reporting message including an attribute data report and/or an event report, and at least one of the attribute data report and the event report is a non-empty array.
- the device 1400 further includes: a second sending module, configured to send a message to the first field if the value of the first field is the first value or the first data reporting message omits the first field.
- the server device sends the status response.
- Figure 15 is a schematic structural diagram of a communication device according to an embodiment of the present application.
- the dashed line in Figure 15 indicates that the unit or module is optional.
- the device 1500 can be used to implement the method described in the above method embodiment.
- Device 1500 may be a chip, terminal device or network device.
- Apparatus 1500 may include one or more processors 1510.
- the processor 1510 can support the device 1500 to implement the method described in the foregoing method embodiments.
- the processor 1510 may be a general-purpose processor or a special-purpose processor.
- the processor may be a central processing unit (CPU).
- the processor can also be another general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), or an off-the-shelf programmable gate array (FPGA) Or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- DSP digital signal processor
- ASIC application specific integrated circuit
- FPGA off-the-shelf programmable gate array
- a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
- Apparatus 1500 may also include one or more memories 1520.
- the memory 1520 stores a program, which can be executed by the processor 1510, so that the processor 1510 executes the method described in the foregoing method embodiment.
- the memory 1520 may be independent of the processor 1510 or integrated in the processor 1510.
- Apparatus 1500 may also include a transceiver 1530.
- Processor 1510 may communicate with other devices or chips through transceiver 1530.
- the processor 1510 can transmit and receive data with other devices or chips through the transceiver 1530.
- An embodiment of the present application also provides a computer-readable storage medium for storing a program.
- the computer-readable storage medium can be applied in the terminal or network device provided by the embodiments of the present application, and the program causes the computer to execute the methods performed by the terminal or network device in various embodiments of the present application.
- An embodiment of the present application also provides a computer program product.
- the computer program product includes a program.
- the computer program product can be applied in the terminal or network device provided by the embodiments of the present application, and the program causes the computer to execute the methods performed by the terminal or network device in various embodiments of the present application.
- An embodiment of the present application also provides a computer program.
- the computer program can be applied to the terminal or network device provided by the embodiments of the present application, and the computer program causes the computer to execute the methods performed by the terminal or network device in various embodiments of the present application.
- the "instruction" mentioned may be a direct instruction, an indirect instruction, or an association relationship.
- a indicates B which 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. relation.
- B corresponding to A means that B is associated with A, and B can be determined based on A.
- determining B based on A does not mean determining B only based on A.
- B can also be determined based on A and/or other information.
- the term "correspondence” can mean that there is a direct correspondence or indirect correspondence between the two, or it can also mean that there is an association between the two, or it can also mean indicating and being instructed, configuring and being configured, etc. relation.
- predefinition or “preconfiguration” can be achieved by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in devices (for example, including terminal devices and network devices).
- devices for example, including terminal devices and network devices.
- predefined can refer to what is defined in the protocol.
- the "protocol” may refer to a standard protocol in the communication field, which may include, for example, LTE protocol, NR protocol, and related protocols applied in future communication systems. This application does not limit this.
- the size of the sequence numbers of the above-mentioned processes does not mean the order of execution.
- the execution order of each process should be determined by its functions and internal logic, and should not be determined by the implementation process of the embodiments of the present application. constitute any limitation.
- the disclosed systems, devices and methods can be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of the units is only a logical function division. In actual implementation, there may be other division methods.
- multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented.
- the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
- the computer program product includes one or more computer instructions.
- the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
- the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
- the computer-readable storage medium may be any available medium that can be read by a computer or a data storage device such as a server or data center integrated with one or more available media.
- the available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs (DVD)) or semiconductor media (e.g., solid state disks (SSD) )wait.
- magnetic media e.g., floppy disks, hard disks, magnetic tapes
- optical media e.g., digital video discs (DVD)
- semiconductor media e.g., solid state disks (SSD)
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
Provided are a data reporting method and apparatus, a chip, a storage medium, and a computer program. The data reporting method comprises: a server device receives a read request sent by a client device; and the server device sends a first data reporting message to the client device, wherein the first data reporting message comprises or omits a first field, the first field has a first value or a second value, the first value is used for instructing the client device to respond to the first data reporting message, the second value is used for instructing the client device not to respond to the first data reporting message, the value of the first field is determined on the basis of first information, the first information is used for indicating whether the first data reporting message is the last data reporting message corresponding to the read request, or the value of the first field is the second value, or the value of the first field is the first value. The method provided in embodiments of the present application can ensure that the setting of the first field is more reasonable, thereby facilitating the improvement of the interoperability of read interaction.
Description
本申请涉及物联网技术领域,并且更为具体地,涉及一种数据上报方法、装置、芯片、存储介质和计算机程序。The present application relates to the technical field of the Internet of Things, and more specifically, to a data reporting method, device, chip, storage medium and computer program.
客户端设备和服务端设备进行读交互时,服务端设备可以向客户端设备发送数据上报消息(ReportDataMessage),以实现客户端设备对服务端设备数据的读取。数据上报消息包括用于指示客户端设备是否需要对数据上报消息进行响应的字段。相关技术中,该字段设置不合理,为实现读交互的互通性带来困扰。When the client device and the server device perform read interactions, the server device can send a data reporting message (ReportDataMessage) to the client device to enable the client device to read data from the server device. The data reporting message includes a field used to indicate whether the client device needs to respond to the data reporting message. In the related technology, the setting of this field is unreasonable, which brings trouble to the interoperability of read interaction.
发明内容Contents of the invention
本申请提供一种数据上报方法、装置、芯片、存储介质和计算机程序。下面对本申请涉及的各个方面进行介绍。This application provides a data reporting method, device, chip, storage medium and computer program. Each aspect involved in this application is introduced below.
第一方面,提供了一种数据上报方法,包括:服务端设备接收客户端设备发送的读请求;所述服务端设备向所述客户端设备发送第一数据上报消息,所述第一数据上报消息包括或者省略第一字段,所述第一字段具有第一取值或第二取值,所述第一取值用于指示所述客户端设备对所述第一数据上报消息进行响应,所述第二取值用于指示所述客户端设备不对所述第一数据上报消息进行响应;其中,所述第一字段的取值基于第一信息确定,所述第一信息用于指示所述第一数据上报消息是否为所述读请求对应的最后一个数据上报消息;或者,所述第一字段的取值为所述第二取值;或者,所述第一字段的取值为所述第一取值。In a first aspect, a data reporting method is provided, including: a server device receives a read request sent by a client device; the server device sends a first data reporting message to the client device, and the first data reporting The message includes or omits a first field, the first field has a first value or a second value, and the first value is used to instruct the client device to respond to the first data reporting message, so The second value is used to indicate that the client device does not respond to the first data reporting message; wherein the value of the first field is determined based on first information, and the first information is used to indicate that the Whether the first data reporting message is the last data reporting message corresponding to the read request; or, the value of the first field is the second value; or the value of the first field is the The first value.
第二方面,提供了一种数据上报方法,包括:客户端设备向服务端设备发送读请求;所述客户端设备接收所述服务端设备发送的第一数据上报消息,所述第一数据上报消息包括或者省略第一字段,所述第一字段具有第一取值或第二取值,所述第一取值用于指示所述客户端设备对所述第一数据上报消息进行响应,所述第二取值用于指示所述客户端设备不对所述第一数据上报消息进行响应;所述客户端设备根据所述第一字段的取值确定是否向所述服务端设备发送状态响应;其中,所述第一字段的取值基于第一信息确定,所述第一信息用于指示所述第一数据上报消息是否为所述读请求对应的最后一个数据上报消息;或者,所述第一字段的取值为所述第二取值;或者,所述第一字段的取值为所述第一取值。In a second aspect, a data reporting method is provided, including: a client device sends a read request to a server device; the client device receives a first data reporting message sent by the server device, and the first data reporting The message includes or omits a first field, the first field has a first value or a second value, and the first value is used to instruct the client device to respond to the first data reporting message, so The second value is used to indicate that the client device does not respond to the first data reporting message; the client device determines whether to send a status response to the server device according to the value of the first field; Wherein, the value of the first field is determined based on first information, and the first information is used to indicate whether the first data reporting message is the last data reporting message corresponding to the read request; or, the third The value of a field is the second value; or the value of the first field is the first value.
第三方面,提供了一种数据上报装置,所述装置配置于服务端设备,所述装置包括:接收模块,用于接收客户端设备发送的读请求;发送模块,用于向所述客户端设备发送第一数据上报消息,所述第一数据上报消息包括或者省略第一字段,所述第一字段具有第一取值或第二取值,所述第一取值用于指示所述客户端设备对所述第一数据上报消息进行响应,所述第二取值用于指示所述客户端设备不对所述第一数据上报消息进行响应;其中,所述第一字段的取值基于第一信息确定,所述第一信息用于指示所述第一数据上报消息是否为所述读请求对应的最后一个数据上报消息;或者,所述第一字段的取值为所述第二取值;或者,所述第一字段的取值为所述第一取值。In a third aspect, a data reporting device is provided. The device is configured on a server device. The device includes: a receiving module for receiving a read request sent by a client device; and a sending module for reporting to the client device. The device sends a first data reporting message, the first data reporting message includes or omits a first field, the first field has a first value or a second value, and the first value is used to indicate to the customer The terminal device responds to the first data reporting message, and the second value is used to indicate that the client device does not respond to the first data reporting message; wherein the value of the first field is based on the first data reporting message. An information determination, the first information is used to indicate whether the first data reporting message is the last data reporting message corresponding to the read request; or, the value of the first field is the second value ; Or, the value of the first field is the first value.
第四方面,提供了一种数据上报装置,所述装置配置于客户端设备,所述装置包括:第一发送模块,用于向服务端设备发送读请求;接收模块,用于接收所述服务端设备发送的第一数据上报消息,所述第一数据上报消息包括或者省略第一字段,所述第一字段具有第一取值或第二取值,所述第一取值用于指示所述客户端设备对所述第一数据上报消息进行响应,所述第二取值用于指示所述客户端设备不对所述第一数据上报消息进行响应;确定模块,用于根据所述第一字段的取值确定是否向所述服务端设备发送状态响应;其中,所述第一字段的取值基于第一信息确定,所述第一信息用于指示所述第一数据上报消息是否为所述读请求对应的最后一个数据上报消息;或者,所述第一字段的取值为所述第二取值;或者,所述第一字段的取值为所述第一取值。In a fourth aspect, a data reporting device is provided. The device is configured on a client device. The device includes: a first sending module for sending a read request to the server device; a receiving module for receiving the service The first data reporting message sent by the end device, the first data reporting message includes or omits a first field, the first field has a first value or a second value, and the first value is used to indicate that the The client device responds to the first data reporting message, and the second value is used to indicate that the client device does not respond to the first data reporting message; a determining module is configured to determine according to the first data reporting message. The value of the field determines whether to send a status response to the server device; wherein the value of the first field is determined based on first information, and the first information is used to indicate whether the first data reporting message is the The last data reporting message corresponding to the read request; or the value of the first field is the second value; or the value of the first field is the first value.
第五方面,提供了一种服务端设备,包括处理器、存储器以及通信接口,所述存储器用于存储一个或多个计算机程序,所述处理器用于调用所述存储器中的计算机程序使得所述服务端设备执行第一方面的方法中的部分或全部步骤。In a fifth aspect, a server device is provided, including a processor, a memory, and a communication interface. The memory is used to store one or more computer programs. The processor is used to call the computer program in the memory so that the The server device performs some or all of the steps in the method of the first aspect.
第六方面,提供了一种客户端设备,包括处理器、存储器以及通信接口,所述存储器用于存储一个或多个计算机程序,所述处理器用于调用所述存储器中的计算机程序使得所述客户端设备执行第二方面的方法中的部分或全部步骤。In a sixth aspect, a client device is provided, including a processor, a memory, and a communication interface. The memory is used to store one or more computer programs. The processor is used to call the computer program in the memory so that the The client device performs some or all of the steps in the method of the second aspect.
第七方面,本申请实施例提供了一种通信系统,该系统包括上述的服务端设备和/或客户端设备。 在另一种可能的设计中,该系统还可以包括本申请实施例提供的方案中与该服务端设备或客户端设备进行交互的其他设备。In a seventh aspect, embodiments of the present application provide a communication system, which includes the above-mentioned server device and/or client device. In another possible design, the system may also include other devices that interact with the server device or the client device in the solution provided by the embodiments of the present application.
第八方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序使得数据上报装置执行上述各个方面的方法中的部分或全部步骤。In an eighth aspect, embodiments of the present application provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The computer program causes the data reporting device to perform some or all of the steps in the methods of the above aspects. .
第九方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使数据上报装置执行上述各个方面的方法中的部分或全部步骤。在一些实现方式中,该计算机程序产品可以为一个软件安装包。In a ninth aspect, embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause the data reporting device to execute Some or all of the steps in the methods of the above aspects. In some implementations, the computer program product can be a software installation package.
第十方面,本申请实施例提供了一种芯片,该芯片包括存储器和处理器,处理器可以从存储器中调用并运行计算机程序,以实现上述各个方面的方法中所描述的部分或全部步骤。In a tenth aspect, embodiments of the present application provide a chip, which includes a memory and a processor. The processor can call and run a computer program from the memory to implement some or all of the steps described in the methods of the above aspects.
客户端设备和服务端设备进行读交互时,第一数据上报消息中的第一字段的取值可以设置为第一取值(即客户端设备对第一数据上报消息进行响应);或者,第一字段的取值可以设置为第二取值(即客户端设备不对第一数据上报消息进行响应),以与上层数据上报操作中的用于指示是否需要对数据上报操作进行响应的字段的取值一致;或者,第一字段的取值可以基于第一数据上报消息是否为读请求对应的最后一个数据上报消息确定,以根据不同情况确定第一字段的取值。上述方法可以使得第一字段的设置更为合理,有助于提升读交互的互通性。When the client device and the server device perform read interaction, the value of the first field in the first data reporting message may be set to the first value (that is, the client device responds to the first data reporting message); or, The value of a field can be set to the second value (that is, the client device does not respond to the first data reporting message) to be consistent with the value of the field used to indicate whether to respond to the data reporting operation in the upper layer data reporting operation. The values are consistent; or, the value of the first field can be determined based on whether the first data reporting message is the last data reporting message corresponding to the read request, so as to determine the value of the first field according to different situations. The above method can make the setting of the first field more reasonable and help improve the interoperability of read interaction.
图1为可适用本申请实施例的无线通信系统的架构示例图。FIG. 1 is an architectural example diagram of a wireless communication system applicable to embodiments of the present application.
图2为Matter设备的分层架构的示例图。Figure 2 is an example diagram of the layered architecture of Matter equipment.
图3为本申请一实施例提供的读交互的流程示意图。Figure 3 is a schematic flow chart of read interaction provided by an embodiment of the present application.
图4为本申请另一实施例提供的读交互的流程示意图。Figure 4 is a schematic flow chart of read interaction provided by another embodiment of the present application.
图5为本申请一实施例提供的数据上报方法的流程示意图。Figure 5 is a schematic flowchart of a data reporting method provided by an embodiment of the present application.
图6为本申请另一实施例提供的数据上报方法的流程示意图。Figure 6 is a schematic flowchart of a data reporting method provided by another embodiment of the present application.
图7为本申请又一实施例提供的数据上报方法的流程示意图。Figure 7 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
图8为本申请又一实施例提供的数据上报方法的流程示意图。Figure 8 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
图9为本申请又一实施例提供的数据上报方法的流程示意图。Figure 9 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
图10为本申请又一实施例提供的数据上报方法的流程示意图。Figure 10 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
图11为本申请又一实施例提供的数据上报方法的流程示意图。Figure 11 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
图12为本申请又一实施例提供的数据上报方法的流程示意图。Figure 12 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application.
图13为本申请一实施例提供的数据上报装置的结构示意图。Figure 13 is a schematic structural diagram of a data reporting device provided by an embodiment of the present application.
图14为本申请另一实施例提供的数据上报装置的结构示意图。Figure 14 is a schematic structural diagram of a data reporting device provided by another embodiment of the present application.
图15为本申请实施例提供的通信装置的示意性结构图。Figure 15 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
下面将结合附图,对本申请中的技术方案进行描述。为了便于理解,下文结合图1和图2介绍本申请实施例涉及的术语。需要说明的是,下文以Matter协议的场景为例,介绍本申请实施例涉及的术语,以及本申请实施例的方案。当然,本申请实施例的方案还可以应用于其他物联网协议。The technical solutions in this application will be described below with reference to the accompanying drawings. For ease of understanding, terminology involved in the embodiments of the present application is introduced below in conjunction with Figure 1 and Figure 2 . It should be noted that the following uses the Matter protocol scenario as an example to introduce the terminology involved in the embodiments of the present application and the solutions of the embodiments of the present application. Of course, the solutions in the embodiments of this application can also be applied to other Internet of Things protocols.
物联网(internet of things,IoT)即“万物相连的互联网”,其是在互联网基础上延伸和扩展的网络,可以通过各种信息传感设备(如射频识别、全球定位系统等)将任何物品与互联网连接起来形成一个巨大的网络,进行信息交换和通信,以实现万物之间的互联互通。在一些实施例中,物联网设备可以是智能家居设备,例如,物联网设备可以包括智能空调、智能冰箱、洗衣机、电饭煲、扫地机器人等设备。在一些实施例中,物联网设备可以是智能监控设备,例如,物联网设备可以包括监控摄像头、温度传感器、声音传感器等。The Internet of things (IoT) is the "Internet where everything is connected". It is a network that is extended and expanded based on the Internet. It can connect any item through various information sensing devices (such as radio frequency identification, global positioning system, etc.) Connected to the Internet to form a huge network for information exchange and communication to achieve interconnection among all things. In some embodiments, IoT devices may be smart home devices. For example, IoT devices may include smart air conditioners, smart refrigerators, washing machines, rice cookers, sweeping robots, and other devices. In some embodiments, the IoT device may be an intelligent monitoring device. For example, the IoT device may include a surveillance camera, a temperature sensor, a sound sensor, etc.
目前,不同厂家可能使用不同的通信协议(也可以称为生态协议),实现支持该通信协议的物联网设备之间的互联互通,这样可能导致不同厂家生产的物联网设备之间不能通信,不能达到真正的万物互联。At present, different manufacturers may use different communication protocols (also called ecological protocols) to achieve interconnection and interoperability between IoT devices that support this communication protocol. This may cause IoT devices produced by different manufacturers to be unable to communicate with each other. Achieve true interconnection of everything.
基于此,连接标准联盟(connectivity standards alliance,CSA)推出一种物联网应用层技术标准—Matter标准协议,其可以提供基于互联网协议(internet protocol,IP)的智能家居设备的可互操作的应用层解决方案。在一些实施例中,Matter标准也可以称为基于IP的互联家居(connected home over IP,CHIP)标准。在一些实施例中,Matter标准可以支持以太网、Wi-Fi和Thread三种底层通信协议,并且可以让不同协议的物联网设备互相通信。Based on this, the Connectivity Standards Alliance (CSA) launched an Internet of Things application layer technology standard—Matter Standard Protocol, which can provide an interoperable application layer for smart home devices based on Internet Protocol (Internet Protocol, IP) solution. In some embodiments, the Matter standard may also be called a connected home over IP (CHIP) standard. In some embodiments, the Matter standard can support three underlying communication protocols: Ethernet, Wi-Fi, and Thread, and can allow IoT devices with different protocols to communicate with each other.
基于Matter协议的通信系统Communication system based on Matter protocol
下文结合图1介绍本申请实施例适用的通信系统。图1所示的通信系统100可以包括Matter客户端设备110和Matter服务端设备120。The communication system applicable to the embodiment of the present application is introduced below with reference to FIG. 1 . The communication system 100 shown in FIG. 1 may include a Matter client device 110 and a Matter server device 120.
Matter客户端设备110为用户侧的客户端设备,Matter客户端设备110可以与Matter服务端设备120进行通信。在一些实现方式中,Matter客户端设备110可以向Matter服务端设备120发送控制信息,以对Matter服务端设备120进行控制。例如当Matter服务端设备120为智能空调时,Matter客户端设备110可以通过向Matter服务端设备120发送控制信息,以控制Matter服务端设备120的调节温度。在一些实现方式中,Matter客户端设备110可以向Matter服务端设备120发送请求信息,以请求和Matter服务端设备120进行交互,比如数据传输。例如当Matter服务端设备120为智能空调时,Matter客户端设备110可以通过向Matter服务端设备120发送订阅请求信息,以订阅Matter服务端设备120的空调传感器测得的室内温度。此时,用户可以通过定期接收报告来监测室内温度。The Matter client device 110 is a client device on the user side, and the Matter client device 110 can communicate with the Matter server device 120 . In some implementations, the Matter client device 110 can send control information to the Matter server device 120 to control the Matter server device 120 . For example, when the Matter server device 120 is a smart air conditioner, the Matter client device 110 can control the temperature adjustment of the Matter server device 120 by sending control information to the Matter server device 120 . In some implementations, the Matter client device 110 may send request information to the Matter server device 120 to request interaction with the Matter server device 120, such as data transmission. For example, when the Matter server device 120 is a smart air conditioner, the Matter client device 110 can subscribe to the indoor temperature measured by the air conditioning sensor of the Matter server device 120 by sending subscription request information to the Matter server device 120 . At this time, users can monitor the indoor temperature by receiving periodic reports.
在一些实施例中,上述Matter客户端设备110可以是指安装有Matter客户端的终端设备,其中,终端设备可以是手机、电脑、平板电脑、智能手环、智能手表等,本申请实施例对此并不进行限定。应该理解,Matter客户端可以为应用程序(application,APP)或者小程序等,本申请实施例对此并不限定。In some embodiments, the above-mentioned Matter client device 110 may refer to a terminal device with a Matter client installed, where the terminal device may be a mobile phone, a computer, a tablet, a smart bracelet, a smart watch, etc. This embodiment of the present application will Not limited. It should be understood that the Matter client can be an application (application, APP) or a small program, etc., and the embodiments of the present application are not limited to this.
Matter服务端设备120可以指支持Matter标准协议的物联网设备。Matter服务端设备120可以直接和Matter客户端设备110进行通信,以便Matter客户端设备110对Matter服务端设备120进行控制。The Matter server device 120 may refer to an Internet of Things device that supports the Matter standard protocol. The Matter server device 120 can directly communicate with the Matter client device 110, so that the Matter client device 110 controls the Matter server device 120.
示例性地,当Matter服务端设备120为支持Matter标准协议的智能空调时,Matter客户端设备110可以控制智能空调的开关以及设置空调温度、风速等。当Matter服务端设备120为支持Matter标准协议的扫地机器人时,Matter客户端设备110可以控制扫地机器人开始工作或停止工作、控制扫地机器人的工作模式等。For example, when the Matter server device 120 is a smart air conditioner that supports the Matter standard protocol, the Matter client device 110 can control the switch of the smart air conditioner and set the air conditioner temperature, wind speed, etc. When the Matter server device 120 is a sweeping robot that supports the Matter standard protocol, the Matter client device 110 can control the sweeping robot to start or stop working, control the working mode of the sweeping robot, etc.
可选地,图1所示的通信系统100还可以包括配置设备(commissioner)等其他设备,本申请实施例对此不作限定。示例性地,配置设备可以用于对Matter服务端设备120进行配置。或者说,配置设备可以理解为安装有配置端的终端设备,用户可以通过该配置端对Matter服务端设备120进行配置。其中,终端设备可以是手机、电脑、平板电脑、智能手环、智能手表等,本申请实施例对此并不进行限定。在一些实施例中,配置端可以为应用程序或者小程序等,本申请实施例对此并不限定。Optionally, the communication system 100 shown in FIG. 1 may also include other devices such as a configuration device (commissioner), which is not limited in this embodiment of the present application. For example, the configuration device can be used to configure the Matter server device 120. In other words, the configuration device can be understood as a terminal device installed with a configuration terminal through which the user can configure the Matter server device 120 . The terminal device may be a mobile phone, a computer, a tablet, a smart bracelet, a smart watch, etc., which are not limited in the embodiments of the present application. In some embodiments, the configuration terminal may be an application program or an applet, which is not limited in the embodiments of the present application.
需要说明的是,上述配置端可以与Matter客户端是相同的APP或小程序,当然,配置端可以与Matter客户端是不同的APP或小程序。本申请实施例对此不作限定。It should be noted that the above configuration terminal can be the same APP or applet as the Matter client. Of course, the configuration terminal can be a different APP or applet from the Matter client. The embodiments of the present application do not limit this.
Matter设备的分层架构Layered architecture of Matter devices
Matter设备的架构可以被划分为多层,不同层可以实现不同的职责。图2示出了一种Matter设备的分层架构的示例图。如图2所示,Matter设备的架构可以分为7层,从高到低分别为应用层(application layer)、数据模型层(data model layer)、交互模型层(interaction model layer)、操作帧层(action framing layer)、安全层(security layer)、消息层(message layer)、以及IP传输层(IP transport layer)。The architecture of Matter devices can be divided into multiple layers, and different layers can implement different responsibilities. Figure 2 shows an example diagram of the layered architecture of a Matter device. As shown in Figure 2, the architecture of the Matter device can be divided into 7 layers, from high to low: application layer, data model layer, interaction model layer, and operation frame layer. (action framing layer), security layer (security layer), message layer (message layer), and IP transport layer (IP transport layer).
应用层对应于Matter设备的高阶业务逻辑。例如,一个专注于照明的应用程序可能包含处理打开/关闭灯泡的逻辑,以及它的颜色特征。The application layer corresponds to the high-order business logic of Matter devices. For example, an application focused on lighting might contain logic that handles turning a light bulb on/off, as well as its color characteristics.
数据模型层对应帮助描述设备功能的数据原语(primitives)。当Matter设备有与其他设备(比如,另一个Matter设备)交互的意图时,应用程序可以执行这些数据结构。The data model layer corresponds to data primitives that help describe device functionality. Applications can execute these data structures when the Matter device has the intention to interact with other devices (for example, another Matter device).
交互模型层表示一组可以在Matter设备上执行的操作,以便与其他设备(比如,另一个Matter设备)交互。这些操作可以执行在数据模型层定义的结构。The interaction model layer represents a set of operations that can be performed on a Matter device in order to interact with other devices (for example, another Matter device). These operations can execute structures defined at the data model layer.
一旦使用交互模型构造了一个操作,该操作就会被序列化为规定的二进制格式以便网络传输进行编码。这个过程是在操作帧层处理的。Once an operation is constructed using the interaction model, the operation is serialized into a prescribed binary format for encoding over the network. This process is handled at the operation frame level.
安全层可以对编码的操作帧进行处理,例如对消息进行加密,添加消息验证码等。这些操作可以确保数据在消息发送者和接收者之间保持机密和真实。The security layer can process encoded operation frames, such as encrypting messages, adding message verification codes, etc. These operations ensure that data remains confidential and authentic between the sender and receiver of the message.
对于已经序列化、加密和签名后的交互,消息层可以使用必需的和可选的头字段构造载荷格式(payload format),该载荷格式可以指定消息的属性和逻辑路由信息。For interactions that have been serialized, encrypted, and signed, the message layer can use required and optional header fields to construct a payload format that can specify the attributes and logical routing information of the message.
消息层构造完载荷后,该消息会被发送到IP传输层,以通过底层传输协议(例如,TCP协议)进行数据的IP管理。After the message layer constructs the payload, the message will be sent to the IP transport layer for IP management of data through the underlying transport protocol (for example, TCP protocol).
Matter设备的交互模型Interaction model for Matter devices
Matter设备的交互模型是在Matter设备的交互模型层实现的。Matter设备的交互模型可以用于定义Matter客户端设备和Matter服务端设备之间的交互(interaction)、事务(transaction)和操作(action)。其中,Matter客户端设备和Matter服务端设备可以理解为不同的节点。The interaction model of the Matter device is implemented at the interaction model layer of the Matter device. The interaction model of Matter devices can be used to define interactions, transactions, and actions between Matter client devices and Matter server devices. Among them, Matter client device and Matter server device can be understood as different nodes.
需要说明的是,一个物理实体(例如,Matter设备)可以支持多个节点。另外,一个节点可以有多 个节点标识(identifier,ID),每个节点ID的作用域是一个特定的设备集合(fabric)。例如,当节点ID被用作交互的目标地址时,指定节点ID作用域的网络就是交互的访问网络。It should be noted that a physical entity (for example, Matter device) can support multiple nodes. In addition, a node can have multiple node identifiers (identifiers, IDs), and the scope of each node ID is a specific device collection (fabric). For example, when a node ID is used as the target address for an interaction, the network within the scope of the specified node ID is the access network for the interaction.
操作可以理解为从源节点到一个或多个目标节点的单个逻辑通信,例如,从Matter客户端设备到Matter服务端设备的单个逻辑通信,或者,从Matter服务端设备到Matter客户端设备的单个逻辑通信。An operation can be understood as a single logical communication from a source node to one or more target nodes, for example, a single logical communication from a Matter client device to a Matter server device, or a single logical communication from a Matter server device to a Matter client device. logical communication.
操作的类型可以包括多种,例如,读请求操作(read request action)、数据上报操作(report data action)、状态响应操作(status response action)、订阅请求操作、订阅响应操作等。读请求操作可以用于请求功能集(cluster)属性(attribute)数据和/或事件(event)。数据上报操作可以用于响应读请求操作或者订阅请求操作。状态响应操作可以用于返回成功或错误的响应。订阅请求操作可以用于请求订阅功能集属性数据和/或事件。订阅响应操作可以用于响应订阅请求操作。There are many types of operations, such as read request action, report data action, status response action, subscription request action, subscription response action, etc. Read request operations can be used to request cluster attribute data and/or events. Data reporting operations can be used to respond to read request operations or subscription request operations. The status response action can be used to return a success or error response. The subscribe request operation can be used to request a subscription to feature set property data and/or events. Subscription response operations can be used in response to subscription request operations.
事务的类型可以包括多种,例如,读取事务(read transaction)、订阅事务(subscribe transaction)、报告事务、写事务、调用事务等。读取事务可以用于请求功能集属性和/或事件数据。订阅事务可以用于订阅功能集属性和/或事件数据。报告事务可以作为订阅交互的一部分,用于维护订阅交互。写事务可以用于修改功能集属性。调用事务可以用于调用功能集命令。There are many types of transactions, such as read transactions, subscribe transactions, report transactions, write transactions, call transactions, etc. Read transactions can be used to request feature set properties and/or event data. Subscription transactions can be used to subscribe to feature set properties and/or event data. Reporting transactions can be used as part of a subscription interaction to maintain the subscription interaction. Write transactions can be used to modify feature set properties. Invoking transactions can be used to invoke feature set commands.
事务是由一系列操作组成的,或者说,一个事务可以包括一个或多个操作。以读取事务为例,读取事务可以包括读请求操作、数据上报操作、状态响应操作等多个操作。以订阅事务为例,订阅事务可以包括订阅请求操作、数据上报操作、订阅响应操作等多个操作。以报告事务为例,报告事务可以仅包括数据上报操作,或者包括数据上报操作、状态响应操作等多个操作。A transaction is composed of a series of operations, or a transaction can include one or more operations. Taking a read transaction as an example, a read transaction can include multiple operations such as read request operations, data reporting operations, and status response operations. Taking subscription transactions as an example, subscription transactions can include multiple operations such as subscription request operations, data reporting operations, and subscription response operations. Taking reporting transactions as an example, reporting transactions can include only data reporting operations, or multiple operations such as data reporting operations and status response operations.
交互的类型包括多种,例如,读交互、订阅交互、写交互、调用交互等。读交互可以用于请求功能集属性和/或事件数据。订阅交互可以用于订阅功能集属性和/或事件数据。写交互可以用于修改功能集属性。调用交互可以用于调用功能集命令(command)。There are many types of interactions, such as read interaction, subscription interaction, write interaction, call interaction, etc. Read interactions can be used to request feature set properties and/or event data. Subscription interactions can be used to subscribe to feature set properties and/or event data. Write interactions can be used to modify feature set properties. Invoke interactions can be used to invoke feature set commands.
交互是由一系列事务组成的,或者说,一个交互可以包括一个或多个事务。以读交互为例,读交互可以仅包括读取事务这一个事务。以订阅交互为例,订阅交互可以包括订阅事务、报告事务等多个事务。An interaction is composed of a series of transactions, or an interaction can include one or more transactions. Taking read interaction as an example, the read interaction may only include a read transaction. Take subscription interaction as an example. Subscription interaction can include multiple transactions such as subscription transactions and reporting transactions.
数据上报操作(report data action)Data reporting operation (report data action)
如前文所述,不同的事务中都可能包含数据上报操作,例如,读取事务、订阅事务、报告事务等。在一些实施例中,数据上报操作是报告事务中的第一个操作(作为订阅交互的一部分),例如,作为每个同步的报告事务的第一个操作。在一些实施例中,数据上报操作是读请求操作或订阅请求操作的后续操作,例如,作为直接响应读请求操作的读取事务的一部分,或者,作为直接响应订阅请求操作的订阅事务的一部分。As mentioned above, different transactions may contain data reporting operations, such as read transactions, subscription transactions, reporting transactions, etc. In some embodiments, the data reporting operation is the first operation in a reporting transaction (as part of a subscription interaction), for example, as the first operation in each synchronized reporting transaction. In some embodiments, the data reporting operation is a subsequent operation of the read request operation or the subscription request operation, for example, as part of a read transaction that directly responds to the read request operation, or as part of a subscription transaction that directly responds to the subscription request operation.
数据上报操作的具体操作信息可以参见表2。如表2所示,数据上报操作可以由一个或多个必选字段和可选字段组成。以必选字段SuppressResponse为例,该字段可以用于指示客户端设备是否需要对数据上报操作进行响应。当SuppressResponse取值为TRUE时,可以表示客户端设备不对数据上报操作进行响应;当SuppressResponse取值为FALSE时,可以表示客户端设备对数据上报操作进行响应。The specific operation information of the data reporting operation can be found in Table 2. As shown in Table 2, the data reporting operation can consist of one or more required fields and optional fields. Take the mandatory field SuppressResponse as an example. This field can be used to indicate whether the client device needs to respond to the data reporting operation. When the value of SuppressResponse is TRUE, it can mean that the client device does not respond to the data reporting operation; when the value of SuppressResponse is FALSE, it can mean that the client device responds to the data reporting operation.
表2Table 2
在一些实施例中,数据上报操作可以为单播。In some embodiments, the data reporting operation may be unicast.
在一些实施例中,数据上报操作中的属性上报和/或事件上报列表可能为空。In some embodiments, the attribute reporting and/or event reporting lists in the data reporting operation may be empty.
在一些实施例中,如果数据上报操作的操作字段的关联fabric与交互的访问fabric不匹配,则该数据上报操作不应包括定义为fabric敏感的任何嵌套属性数据字段或嵌套事件数据字段。In some embodiments, if the associated fabric of the operation field of the data reporting operation does not match the interactive access fabric, the data reporting operation shall not include any nested attribute data fields or nested event data fields defined as fabric sensitive.
在一些实施例中,对于启动传递属性上报和事件上报空列表的报告事务的数据上报操作,可以将SuppressResponse设置为TRUE。在一些实施例中,对于作为读取事务一部分的数据上报操作,SuppressResponse应设置为TRUE。在一些实施例中,对于作为订阅事务一部分的报告数据操作,SuppressResponse应设置为FALSE。In some embodiments, SuppressResponse may be set to TRUE for a data reporting operation that initiates a reporting transaction that delivers an empty list of attribute reporting and event reporting. In some embodiments, SuppressResponse should be set to TRUE for data reporting operations as part of a read transaction. In some embodiments, SuppressResponse should be set to FALSE for reporting data operations as part of a subscription transaction.
需要说明的是,客户端设备接收数据上报操作后,如果数据上报操作的SuppressResponse为TRUE,则客户端设备不对该数据上报操作生成响应;否则,客户端设备可以生成状态响应操作。It should be noted that after the client device receives the data reporting operation, if the SuppressResponse of the data reporting operation is TRUE, the client device does not generate a response to the data reporting operation; otherwise, the client device can generate a status response operation.
在一些实施例中,客户端设备生成状态响应操作时,状态响应操作对应的状态代码可以包括以下几种:成功(SUCCESS),以与服务端设备继续交互;无效的订阅(INVALID_SUBSCRIPTION),该状态代码可以用于数据上报操作是订阅交互的一部分,并且订阅ID无效的情况;失败(FAILURE),以与服务端设备终止交互。In some embodiments, when the client device generates a status response operation, the status code corresponding to the status response operation may include the following: success (SUCCESS) to continue interacting with the server device; invalid subscription (INVALID_SUBSCRIPTION). The code can be used when the data reporting operation is part of the subscription interaction and the subscription ID is invalid; fail (FAILURE) to terminate the interaction with the server device.
数据上报消息(ReportDataMessage)Data reporting message (ReportDataMessage)
操作可以由一个或多个消息传递。消息的实际构造和编码是在消息层完成的,其中,消息层位于交互模型层的下层。换句话说,消息层可以将交互模型层的操作编码为一条或多条消息,并将消息传递到目的地,例如,服务端设备的消息层可以将数据上报操作编码为一条或多条数据上报消息,并将该一条或多条数据上报消息传递到客户端设备。Operations can be delivered by one or more messages. The actual construction and encoding of messages is done in the message layer, which is located below the interaction model layer. In other words, the message layer can encode the operation of the interaction model layer into one or more messages and deliver the message to the destination. For example, the message layer of the server device can encode the data reporting operation into one or more data reports. message, and deliver the one or more data reporting messages to the client device.
数据上报消息包含的内容可以参见表3。如表3所示,数据上报消息可以包括一个或多个字段,例如SuppressResponse、MoreChunkedMessages等。The contents of the data reporting message can be seen in Table 3. As shown in Table 3, the data reporting message can include one or more fields, such as SuppressResponse, MoreChunkedMessages, etc.
表3table 3
在一些实施例中,如果单个数据上报消息无法满足数据上报操作,则发送方(例如,服务端设备)可能会发送多个数据上报消息。In some embodiments, if a single data reporting message cannot satisfy the data reporting operation, the sender (eg, server device) may send multiple data reporting messages.
在一些实施例中,对于接收方(例如,客户端设备)收到的每个数据上报消息,除非SuppressResponse为TRUE,否则接收方应将成功的状态响应消息(StatusResponseMessage)返回给发送方。In some embodiments, for each data reporting message received by the recipient (eg, client device), the recipient should return a successful status response message (StatusResponseMessage) to the sender unless SuppressResponse is TRUE.
在一些实施例中,当AttributeReports或EventReports为非空数组时,SuppressResponse不应设置为TRUE。In some embodiments, SuppressResponse should not be set to TRUE when AttributeReports or EventReports is a non-empty array.
由上文的描述可以看出,客户端设备和服务端设备进行读交互时,对于交互模型层而言,数据上报操作的SuppressResponse应该设置为TRUE;而对于消息层而言,数据上报消息的SuppressResponse在AttributeReports或EventReports为非空数组时应该设置为FALSE。如此一来,服务端设备向客户端设备发送数据上报消息时,客户端设备可能因为SuppressResponse字段的理解不同而报错。也就是说,数据上报消息中的用于指示客户端设备是否需要对数据上报消息进行响应的字段设置不合理,可能导致客户端设备接收数据上报消息后容易报错,为实现读交互的互通性带来困扰。It can be seen from the above description that when the client device and the server device perform read interaction, for the interaction model layer, the SuppressResponse of the data reporting operation should be set to TRUE; for the message layer, the SuppressResponse of the data reporting message should be set to TRUE. Should be set to FALSE when AttributeReports or EventReports is a non-empty array. As a result, when the server device sends a data reporting message to the client device, the client device may report an error due to different understanding of the SuppressResponse field. That is to say, the field setting in the data reporting message that indicates whether the client device needs to respond to the data reporting message is unreasonably set, which may cause the client device to easily report an error after receiving the data reporting message. This will bring interoperability to the realization of read interaction. to trouble.
为了避免上述问题,本申请实施例提出三个实施例,该三个实施例可以使得用于指示客户端设备是否需要对数据上报消息进行响应的字段(即,下文的第一字段)的设置更为合理,有助于提升读交互的互通性。其中,实施例一旨在基于第一数据上报消息是否为读请求对应的最后一个数据上报消息确定第一字段的取值。实施例二旨在将数据上报消息中的第一字段的取值设置为第二取值(即客户端设备不对第一数据上报消息进行响应),以与上层数据上报操作中的用于指示是否需要对数据上报操作进行响应的字段的取值一致。实施例三旨在将数据上报消息中的第一字段的取值设置为第一取值(客户端设备对第一数据上报消息进行响应)。下文分别对实施例一至实施例三进行描述。In order to avoid the above problems, the embodiments of the present application propose three embodiments, which can make the setting of the field used to indicate whether the client device needs to respond to the data reporting message (ie, the first field below) more convenient. It is reasonable and helps to improve the interoperability of read interaction. Among them, the first embodiment aims to determine the value of the first field based on whether the first data reporting message is the last data reporting message corresponding to the read request. Embodiment 2 aims to set the value of the first field in the data reporting message to the second value (that is, the client device does not respond to the first data reporting message), so as to be consistent with the upper layer data reporting operation used to indicate whether The values of the fields that need to respond to the data reporting operation must be consistent. Embodiment 3 aims to set the value of the first field in the data reporting message to the first value (the client device responds to the first data reporting message). Embodiment 1 to Embodiment 3 are described below respectively.
为了便于理解,先对客户端设备和服务端设备执行读交互的流程进行说明。In order to facilitate understanding, the process of read interaction between the client device and the server device is first explained.
图3和图4为本申请实施例提供的读交互的流程示意图。在一些实施例中,该流程示意图也可以理解为是读取事务的流程示意图。如前文所述,读交互可以包括读请求操作、数据上报操作、状态响应操作等多个操作。对于读交互中的每一个操作,都可以由一个或多个消息来传递,例如,读请求操作可以由一个读请求消息传递,数据上报操作可以由一个或多个数据上报消息传递,等等。其中,数据上报操作是在交互模型层构造的,而数据上报消息是在消息层构造和编码的。Figures 3 and 4 are schematic flow charts of read interactions provided by embodiments of the present application. In some embodiments, this flow diagram can also be understood as a flow diagram of a read transaction. As mentioned above, read interaction can include multiple operations such as read request operations, data reporting operations, and status response operations. Each operation in a read interaction can be delivered by one or more messages. For example, a read request operation can be delivered by a read request message, a data reporting operation can be delivered by one or more data reporting messages, and so on. Among them, the data reporting operation is constructed at the interaction model layer, while the data reporting message is constructed and encoded at the message layer.
图3示出了数据上报操作由一条数据上报消息传递的流程示意图。如图3所示,在步骤S310,客户端设备向服务端设备发送读请求。Figure 3 shows a schematic flow chart of a data reporting operation transmitted by a data reporting message. As shown in Figure 3, in step S310, the client device sends a read request to the server device.
该读请求可以用于请求功能集属性数据和/或事件。在一些实施例中,该读请求可以理解为读请求消息,用于传递客户端设备的读请求操作。This read request can be used to request feature set attribute data and/or events. In some embodiments, the read request can be understood as a read request message, which is used to transmit the read request operation of the client device.
在步骤S320,服务端设备向客户端设备发送第一数据上报消息。In step S320, the server device sends a first data reporting message to the client device.
服务端设备接收到客户端设备发送的读请求后,可以基于读请求确定该读请求对应的功能集属性数据和/或事件,并向客户端设备发送数据上报消息,其中,该数据上报消息中承载有读请求对应的功能集属性数据报告和/或事件报告。After receiving the read request sent by the client device, the server device can determine the function set attribute data and/or events corresponding to the read request based on the read request, and send a data reporting message to the client device, wherein the data reporting message Carrying the function set attribute data report and/or event report corresponding to the read request.
在一些实施例中,功能集属性数据报告和事件报告可以以数组的形式承载于数据上报消息中,例如,属性数据报告可以包括一个或多个属性上报信息块数组(比如,AttributeReportIB数组),事件报告可以包括一个或多个事件上报信息块数组(比如,EventReportIB数组)。In some embodiments, the function set attribute data report and the event report can be carried in the data reporting message in the form of an array. For example, the attribute data report can include one or more attribute reporting information block arrays (for example, the AttributeReportIB array), event The report can include one or more arrays of event reporting information blocks (for example, the EventReportIB array).
如前文所述,读请求可以对应一个或多个数据上报消息。在图3的示例中,读请求仅对应一条数据上报消息(即,仅对应第一数据上报消息)。这种情况下,第一数据上报消息中可以承载读请求对应的所有功能集属性数据和/或事件。在一些实施例中,读请求仅对应一条数据上报消息时,可以认为,服务端设备采用单一上报的方式向客户端设备发送数据上报消息。As mentioned above, a read request can correspond to one or more data reporting messages. In the example of FIG. 3 , the read request only corresponds to one data reporting message (ie, only corresponds to the first data reporting message). In this case, the first data reporting message may carry all function set attribute data and/or events corresponding to the read request. In some embodiments, when the read request corresponds to only one data reporting message, it can be considered that the server device sends the data reporting message to the client device in a single reporting manner.
在一些实施例中,第一数据上报消息可以包括第一字段,该第一字段可以用于指示客户端设备是否需要对第一数据上报消息进行响应。In some embodiments, the first data reporting message may include a first field, and the first field may be used to indicate whether the client device needs to respond to the first data reporting message.
在一些实施例中,第一数据上报消息可以省略第一字段。例如,在第一字段的取值用于指示客户端设备对第一数据上报消息进行响应(即,后文的第一字段的取值为第一取值)的情况下,第一数据上报消息可以省略第一字段。后文将会对第一字段进行详细描述,此处暂不赘述。In some embodiments, the first data reporting message may omit the first field. For example, in the case where the value of the first field is used to indicate that the client device responds to the first data reporting message (that is, the value of the first field later is the first value), the first data reporting message The first field can be omitted. The first field will be described in detail later and will not be described here.
在步骤S330,客户端设备确定是否向服务端设备发送状态响应。在一些实施例中,如果第一字段的取值用于指示客户端设备向服务端设备发送状态响应,或者第一数据上报消息省略第一字段,那么图3所示的流程还可以包括步骤S340。在步骤S340,客户端设备向服务端设备发送状态响应。该状态响应可以用于向服务端设备返回成功或错误的响应。在一些实施例中,该状态响应可以理解为状态响应消息,用于传递客户端设备的状态响应操作。In step S330, the client device determines whether to send a status response to the server device. In some embodiments, if the value of the first field is used to instruct the client device to send a status response to the server device, or the first data reporting message omits the first field, then the process shown in Figure 3 may also include step S340 . In step S340, the client device sends a status response to the server device. This status response can be used to return a success or error response to the server device. In some embodiments, the status response can be understood as a status response message, which is used to convey the status response operation of the client device.
本申请实施例对状态响应消息包含的状态代码不作限定。示例性地,状态代码可以为成功、失败或无效的订阅中的任意一种。The embodiment of this application does not limit the status code contained in the status response message. For example, the status code can be any of successful, failed, or invalid subscription.
图4示出了数据上报操作由多条数据上报消息传递的流程示意图。如图4所示,在步骤S410,客户端设备向服务端设备发送读请求。Figure 4 shows a schematic flow chart in which the data reporting operation is transmitted by multiple data reporting messages. As shown in Figure 4, in step S410, the client device sends a read request to the server device.
关于步骤S410的相关描述,可以参见步骤S310,此处不再赘述。For relevant description of step S410, please refer to step S310, which will not be described again here.
在步骤S420,服务端设备向客户端设备发送数据上报消息。In step S420, the server device sends a data reporting message to the client device.
在该示例中,读请求对应多条数据上报消息,第一数据上报消息可以是该多条数据上报消息中的任意一条数据上报消息。换句话说,读请求对应的功能集属性数据和/或事件需要多条数据上报消息来承载,而第一数据上报消息中承载有读请求对应的部分功能集属性数据和/或事件。在一些实施例中,读请求对应多条数据上报消息时,可以认为,服务端设备采用分段上报的方式向客户端设备发送数据上报消息,其中,每条数据上报消息中承载有部分分段数据。In this example, the read request corresponds to multiple data reporting messages, and the first data reporting message may be any one of the multiple data reporting messages. In other words, the function set attribute data and/or events corresponding to the read request require multiple data reporting messages to be carried, and the first data reporting message carries part of the function set attribute data and/or events corresponding to the read request. In some embodiments, when the read request corresponds to multiple data reporting messages, it can be considered that the server device sends the data reporting message to the client device in a segmented reporting manner, where each data reporting message carries part of the segmentation data.
在一些实施例中,服务端设备可以将读请求对应的功能集属性数据和/或事件拆分为多个分段数据,每条数据上报消息中承载有该多个分段数据中的部分分段数据。In some embodiments, the server device can split the function set attribute data and/or events corresponding to the read request into multiple segmented data, and each data reporting message carries part of the multiple segmented data. segment data.
对于多条数据上报消息中的任意一条数据上报消息而言,其均可以包括第一字段或者省略第一字段。For any one of the multiple data reporting messages, it may include the first field or omit the first field.
对于多条数据上报消息中的任意一条数据上报消息而言,客户端设备接收到服务端设备发送的数据上报消息之后,可以根据收到的数据上报消息确定是否向服务端设备发送状态响应,例如,在第一字段的取值为第一取值或者第一数据上报消息省略第一字段的情况下,向服务端设备发送状态响应;在第一字段的取值为第二取值的情况下,不向服务端设备发送状态响应。For any one of the multiple data reporting messages, after receiving the data reporting message sent by the server device, the client device can determine whether to send a status response to the server device based on the received data reporting message, for example , when the value of the first field is the first value or the first data reporting message omits the first field, send a status response to the server device; when the value of the first field is the second value , does not send a status response to the server device.
如果多条数据上报消息中的某条数据上报消息包含的第一字段的取值用于指示客户端设备向服务端设备发送状态响应,或者该数据上报消息省略第一字段,那么图4所示的流程中,服务端设备向客户端设备发送该条数据上报消息后,客户端设备还可以向服务端设备发送状态响应。关于状态响应的详细内容,可以参见前文步骤S340的描述,此处不再赘述。If the value of the first field contained in a certain data reporting message among multiple data reporting messages is used to instruct the client device to send a status response to the server device, or the data reporting message omits the first field, then as shown in Figure 4 In the process, after the server device sends the data reporting message to the client device, the client device can also send a status response to the server device. For details of the status response, please refer to the previous description of step S340, which will not be described again here.
由上文的描述可以看出,客户端设备接收到服务端设备发送的数据上报消息后,是否需要对该数据上报消息进行响应是与第一字段有关的。下文结合实施例一至实施例三分别介绍第一字段的取值应该如何确定。It can be seen from the above description that after the client device receives the data reporting message sent by the server device, whether it needs to respond to the data reporting message is related to the first field. How the value of the first field should be determined is introduced below with reference to Embodiment 1 to Embodiment 3 respectively.
需要说明的是,下文的实施例是以第一数据上报消息为例进行描述的,该第一数据上报消息可以理解为是服务端设备向客户端设备发送的一个或多个数据上报消息中的任意一个。It should be noted that the following embodiments are described using the first data reporting message as an example. The first data reporting message can be understood as one or more data reporting messages sent by the server device to the client device. anyone.
本申请实施例中,第一字段用于指示客户端设备是否需要对数据上报消息进行响应。在一些实施例 中,第一字段例如可以为上文提及的SuppressResponse。In this embodiment of the present application, the first field is used to indicate whether the client device needs to respond to the data reporting message. In some embodiments, the first field may be, for example, the SuppressResponse mentioned above.
第一字段可以具有不同的取值,例如可以具有两个取值(第一取值和/或第二取值)。其中,第一取值可以用于指示客户端设备对第一数据上报消息进行响应,第二取值可以用于指示客户端设备不对第一数据上报消息进行响应。The first field may have different values, for example, it may have two values (a first value and/or a second value). The first value may be used to instruct the client device to respond to the first data reporting message, and the second value may be used to instruct the client device not to respond to the first data reporting message.
在一些实施例中,第一字段的类型可以为布尔型。例如,第一取值可以为FALSE,以指示客户端设备对第一数据上报消息进行响应;第二取值可以为TRUE,以指示客户端设备不对数据上报消息进行响应。不过本申请实施例并不限定于此,例如,第一字段的类型可以为数值型。作为一个示例,第一取值可以为0,以指示客户端设备对第一数据上报消息进行响应;第二取值可以为除0之外的任意数值(例如,第二取值可以为大于0的任意数值,比如第二取值为1),以指示客户端设备不对第一数据上报消息进行响应。In some embodiments, the type of the first field may be Boolean. For example, the first value may be FALSE to instruct the client device to respond to the first data reporting message; the second value may be TRUE to instruct the client device not to respond to the data reporting message. However, the embodiment of the present application is not limited to this. For example, the type of the first field may be a numeric type. As an example, the first value may be 0 to indicate that the client device responds to the first data reporting message; the second value may be any value except 0 (for example, the second value may be greater than 0 Any value, such as the second value is 1), to indicate that the client device does not respond to the first data reporting message.
在一些实施例中,如果第一字段的取值为第一取值,则服务端设备在向客户端设备发送第一数据上报消息时,第一数据上报消息中的第一字段可以省略,即,在第一字段的取值为第一取值的情况下,第一数据上报消息可以省略第一字段。客户端设备接收第一数据上报消息后,如果第一数据上报消息省略了第一字段,则客户端设备需要对第一数据上报消息进行响应,即客户端设备需要向服务端设备发送状态响应。当然,本申请实施例并不限定于此,在一些实施例中,如果第一字段的取值为第二取值,则服务端设备在向客户端设备发送第一数据上报消息时,第一数据上报消息中的第一字段可以省略。In some embodiments, if the value of the first field is the first value, when the server device sends the first data reporting message to the client device, the first field in the first data reporting message can be omitted, that is, , when the value of the first field is the first value, the first data reporting message may omit the first field. After the client device receives the first data reporting message, if the first data reporting message omits the first field, the client device needs to respond to the first data reporting message, that is, the client device needs to send a status response to the server device. Of course, the embodiments of the present application are not limited to this. In some embodiments, if the value of the first field is the second value, when the server device sends the first data reporting message to the client device, the first The first field in the data reporting message can be omitted.
实施例一:Example 1:
实施例一中,第一字段的取值可以基于第一信息确定。第一信息用于指示第一数据上报消息是否为读请求对应的最后一个数据上报消息。In the first embodiment, the value of the first field may be determined based on the first information. The first information is used to indicate whether the first data reporting message is the last data reporting message corresponding to the read request.
在一些实施例中,如果第一信息指示第一数据上报消息不是读请求对应的最后一个数据上报消息,则第一字段的取值可以为第一取值;如果第一信息指示第一数据上报消息是读请求对应的最后一个数据上报消息,则第一字段的取值可以为第二取值。In some embodiments, if the first information indicates that the first data reporting message is not the last data reporting message corresponding to the read request, the value of the first field may be the first value; if the first information indicates that the first data reporting message The message is the last data reporting message corresponding to the read request, then the value of the first field can be the second value.
在一些实施例中,服务端设备在向客户端设备发送第一数据上报消息之前,可以根据第一信息设置第一字段的取值。In some embodiments, before sending the first data reporting message to the client device, the server device may set the value of the first field according to the first information.
作为一种实现方式,如果读请求仅对应第一数据上报消息(即服务端设备采用单一上报的方式发送数据上报消息),第一数据上报消息可以理解为读请求对应的最后一个数据上报消息。这种情况下,服务端设备可以将第一字段的取值设置为第二取值。As an implementation manner, if the read request only corresponds to the first data reporting message (that is, the server device uses a single reporting method to send the data reporting message), the first data reporting message can be understood as the last data reporting message corresponding to the read request. In this case, the server device can set the value of the first field to the second value.
图5为本申请一实施例提供的数据上报方法的流程示意图,其中,数据上报方法的流程示意图也可以理解为客户端设备和服务端设备之间进行读交互的流程示意图。图5所示的方法中,读请求仅对应一个数据上报消息。Figure 5 is a schematic flowchart of a data reporting method provided by an embodiment of the present application. The schematic flowchart of the data reporting method can also be understood as a schematic flowchart of read interaction between a client device and a server device. In the method shown in Figure 5, the read request only corresponds to one data reporting message.
在步骤S510,客户端设备向服务端设备发送读请求。In step S510, the client device sends a read request to the server device.
在步骤S520,服务端设备接收读请求后,根据第一信息设置第一字段的取值。In step S520, after receiving the read request, the server device sets the value of the first field according to the first information.
该示例中,服务端设备判断读请求仅对应第一数据上报消息,则服务端设备确定第一数据上报消息为读请求对应的最后一个数据上报消息。基于此,服务端设备可以将第一字段的取值设置为第二取值。In this example, the server device determines that the read request only corresponds to the first data reporting message, and the server device determines that the first data reporting message is the last data reporting message corresponding to the read request. Based on this, the server device can set the value of the first field to the second value.
在步骤S530,服务端设备向客户端设备发送第一数据上报消息,其中,第一数据上报消息中的第一字段的取值为第二取值。In step S530, the server device sends a first data reporting message to the client device, where the value of the first field in the first data reporting message is the second value.
如此一来,客户端设备接收到服务端设备发送的上报数据后,根据第一字段的取值,确定不对数据上报消息进行响应。In this way, after receiving the reporting data sent by the server device, the client device determines not to respond to the data reporting message according to the value of the first field.
作为另一种实现方式,如果读请求对应多个数据上报消息,(即服务端设备采用分段上报的方式发送数据上报消息),服务端设备在向客户端设备发送第一数据上报消息之前,服务端设备需要判断第一数据上报消息是否为多个数据上报消息中的最后一个数据上报消息。这种情况下,服务端设备可以根据判断结果设置第一字段的取值。As another implementation manner, if the read request corresponds to multiple data reporting messages (that is, the server device uses segmented reporting to send data reporting messages), before the server device sends the first data reporting message to the client device, The server device needs to determine whether the first data reporting message is the last data reporting message among multiple data reporting messages. In this case, the server device can set the value of the first field according to the judgment result.
具体地,如果读请求对应多个数据上报消息,且第一数据上报消息是多个数据上报消息中的最后一个数据上报消息,则服务端设备将第一字段的取值设置为第二取值。如果读请求对应多个数据上报消息,且第一数据上报消息不是多个数据上报消息中的最后一个数据上报消息,则服务端设备将第一字段的取值设置为第一取值。Specifically, if the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data reporting message among the multiple data reporting messages, the server device sets the value of the first field to the second value. . If the read request corresponds to multiple data reporting messages, and the first data reporting message is not the last data reporting message among the multiple data reporting messages, the server device sets the value of the first field to the first value.
图6为本申请另一实施例提供的数据上报方法的流程示意图。图6所示的方法中,读请求对应多个数据上报消息。Figure 6 is a schematic flowchart of a data reporting method provided by another embodiment of the present application. In the method shown in Figure 6, the read request corresponds to multiple data reporting messages.
在步骤S610,客户端设备向服务端设备发送读请求。In step S610, the client device sends a read request to the server device.
在步骤S620,服务端设备接收读请求后,设置多个数据上报消息中的首个数据上报消息的第一字段的取值。In step S620, after receiving the read request, the server device sets the value of the first field of the first data reporting message among the multiple data reporting messages.
该示例中,服务端设备判断读请求对应多个数据上报消息,服务端设备可以将多个数据上报消息中 的首个数据上报消息的第一字段的取值设置为第一取值(这种情况下,首个数据上报消息的第一字段也可以省略)。In this example, the server device determines that the read request corresponds to multiple data reporting messages, and the server device can set the value of the first field of the first data reporting message among the multiple data reporting messages to the first value (such In this case, the first field of the first data reporting message can also be omitted).
在步骤S630,服务端设备向客户端设备发送多个数据上报消息中的首个数据上报消息,其中,该首个数据上报消息中的第一字段的取值为第一取值。In step S630, the server device sends the first data reporting message among the plurality of data reporting messages to the client device, where the value of the first field in the first data reporting message is the first value.
在步骤S640,客户端设备向服务端设备发送状态响应,以返回成功或错误的响应。In step S640, the client device sends a status response to the server device to return a success or error response.
在步骤S650,服务端设备设置多个数据上报消息中的第二个数据上报消息的第一字段的取值。In step S650, the server device sets the value of the first field of the second data reporting message among the plurality of data reporting messages.
如果第二个数据上报消息是多个数据上报消息中的最后一个数据上报消息,则服务端设备将第二个数据上报消息的第一字段的取值设置为第二取值。如此一来,客户端设备接收到服务端设备发送的数据上报消息后,根据第一字段的取值,确定不对数据上报消息进行响应。If the second data reporting message is the last data reporting message among multiple data reporting messages, the server device sets the value of the first field of the second data reporting message to the second value. In this way, after receiving the data reporting message sent by the server device, the client device determines not to respond to the data reporting message according to the value of the first field.
如果第二个数据上报消息不是多个数据上报消息中的最后一个数据上报消息,则服务端设备将第二个数据上报消息的第一字段的取值设置为第一取值。如此一来,客户端设备接收到服务端设备发送的数据上报消息后,根据第一字段的取值,确定向服务端设备发送状态响应。If the second data reporting message is not the last data reporting message among the multiple data reporting messages, the server device sets the value of the first field of the second data reporting message to the first value. In this way, after receiving the data reporting message sent by the server device, the client device determines to send a status response to the server device according to the value of the first field.
在第二个数据上报消息不是多个数据上报消息中的最后一个数据上报消息的情况下,服务端设备继续判断后续的数据上报消息是否为多个数据上报消息中的最后一个数据上报消息,直至确定某一个数据上报消息是多个数据上报消息中的最后一个数据上报消息。这种情况下,服务端设备将该最后一个数据上报消息的第一字段的取值设置为第二取值。In the case where the second data reporting message is not the last data reporting message among the multiple data reporting messages, the server device continues to determine whether the subsequent data reporting message is the last data reporting message among the multiple data reporting messages until Determine that a certain data reporting message is the last data reporting message among multiple data reporting messages. In this case, the server device sets the value of the first field of the last data reporting message to the second value.
在一些实施例中,如果第一信息指示第一数据上报消息不是读请求对应的最后一个数据上报消息,则第一字段的取值可以为第二取值;如果第一信息指示第一数据上报消息是读请求对应的最后一个数据上报消息,则第一字段的取值可以为第一取值。In some embodiments, if the first information indicates that the first data reporting message is not the last data reporting message corresponding to the read request, the value of the first field may be the second value; if the first information indicates that the first data reporting message The message is the last data reporting message corresponding to the read request, then the value of the first field can be the first value.
在一些实施例中,服务端设备在向客户端设备发送第一数据上报消息之前,可以根据第一信息设置第一字段的取值。In some embodiments, before sending the first data reporting message to the client device, the server device may set the value of the first field according to the first information.
作为一种实现方式,如果读请求仅对应第一数据上报消息(即服务端设备采用单一上报的方式发送数据上报消息),第一数据上报消息可以理解为读请求对应的最后一个数据上报消息。这种情况下,服务端设备可以将第一字段的取值设置为第一取值。As an implementation manner, if the read request only corresponds to the first data reporting message (that is, the server device uses a single reporting method to send the data reporting message), the first data reporting message can be understood as the last data reporting message corresponding to the read request. In this case, the server device can set the value of the first field to the first value.
图7为本申请又一实施例提供的数据上报方法的流程示意图。图7所示的方法中,读请求仅对应一个数据上报消息。Figure 7 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application. In the method shown in Figure 7, the read request only corresponds to one data reporting message.
在步骤S710,客户端设备向服务端设备发送读请求。In step S710, the client device sends a read request to the server device.
在步骤S720,服务端设备接收读请求后,根据第一信息设置第一字段的取值。In step S720, after receiving the read request, the server device sets the value of the first field according to the first information.
该示例中,服务端设备判断读请求仅对应第一数据上报消息,则服务端设备确定第一数据上报消息为读请求对应的最后一个数据上报消息。基于此,服务端设备可以将第一字段的取值设置为第一取值。In this example, the server device determines that the read request only corresponds to the first data reporting message, and the server device determines that the first data reporting message is the last data reporting message corresponding to the read request. Based on this, the server device can set the value of the first field to the first value.
在步骤S730,服务端设备向客户端设备发送第一数据上报消息,其中,第一数据上报消息中的第一字段的取值为第一取值。In step S730, the server device sends a first data reporting message to the client device, where the value of the first field in the first data reporting message is the first value.
在步骤S740,客户端设备向服务端设备发送状态响应,以返回成功或错误的响应。In step S740, the client device sends a status response to the server device to return a success or error response.
作为另一种实现方式,如果读请求对应多个数据上报消息,(即服务端设备采用分段上报的方式发送数据上报消息),服务端设备在向客户端设备发送第一数据上报消息之前,服务端设备需要判断第一数据上报消息是否为多个数据上报消息中的最后一个数据上报消息。这种情况下,服务端设备可以根据判断结果设置第一字段的取值。As another implementation manner, if the read request corresponds to multiple data reporting messages (that is, the server device uses segmented reporting to send data reporting messages), before the server device sends the first data reporting message to the client device, The server device needs to determine whether the first data reporting message is the last data reporting message among multiple data reporting messages. In this case, the server device can set the value of the first field according to the judgment result.
具体地,如果读请求对应多个数据上报消息,且第一数据上报消息是多个数据上报消息中的最后一个数据上报消息,则服务端设备将第一字段的取值设置为第一取值。如果读请求对应多个数据上报消息,且第一数据上报消息不是多个数据上报消息中的最后一个数据上报消息,则服务端设备将第一字段的取值设置为第二取值。Specifically, if the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data reporting message among the multiple data reporting messages, the server device sets the value of the first field to the first value. . If the read request corresponds to multiple data reporting messages, and the first data reporting message is not the last data reporting message among the multiple data reporting messages, the server device sets the value of the first field to the second value.
图8为本申请又一实施例提供的数据上报方法的流程示意图。图8所示的方法中,读请求对应多个数据上报消息。Figure 8 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application. In the method shown in Figure 8, the read request corresponds to multiple data reporting messages.
在步骤S810,客户端设备向服务端设备发送读请求。In step S810, the client device sends a read request to the server device.
在步骤S820,服务端设备接收读请求后,设置多个数据上报消息中的首个数据上报消息的第一字段的取值。In step S820, after receiving the read request, the server device sets the value of the first field of the first data reporting message among the plurality of data reporting messages.
该示例中,服务端设备判断读请求对应多个数据上报消息,服务端设备可以将多个数据上报消息中的首个数据上报消息的第一字段的取值设置为第二取值。In this example, the server device determines that the read request corresponds to multiple data reporting messages, and the server device can set the value of the first field of the first data reporting message among the multiple data reporting messages to the second value.
在步骤S830,服务端设备向客户端设备发送多个数据上报消息中的首个数据上报消息,其中,该首个数据上报消息中的第一字段的取值为第二取值。如此一来,客户端设备接收到服务端设备发送的首个数据上报消息后,根据第一字段的取值,确定不对该首个数据上报消息进行响应。In step S830, the server device sends the first data reporting message among the plurality of data reporting messages to the client device, where the value of the first field in the first data reporting message is the second value. In this way, after the client device receives the first data reporting message sent by the server device, it determines not to respond to the first data reporting message according to the value of the first field.
在步骤S840,服务端设备设置多个数据上报消息中的第二个数据上报消息的第一字段的取值。In step S840, the server device sets the value of the first field of the second data reporting message among the plurality of data reporting messages.
如果第二个数据上报消息是多个数据上报消息中的最后一个数据上报消息,则服务端设备将第二个数据上报消息的第一字段的取值设置为第一取值。如此一来,客户端设备接收到服务端设备发送的数据上报消息后,根据第一字段的取值,确定对数据上报消息进行响应。这种情况下,在步骤S840之后,客户端设备还可以向服务端设备发送状态响应,以返回成功或错误的响应。If the second data reporting message is the last data reporting message among multiple data reporting messages, the server device sets the value of the first field of the second data reporting message to the first value. In this way, after receiving the data reporting message sent by the server device, the client device determines to respond to the data reporting message according to the value of the first field. In this case, after step S840, the client device may also send a status response to the server device to return a success or error response.
如果第二个数据上报消息不是多个数据上报消息中的最后一个数据上报消息,则服务端设备将第二个数据上报消息的第一字段的取值设置为第二取值。如此一来,客户端设备接收到服务端设备发送的数据上报消息后,根据第一字段的取值,不向服务端设备发送状态响应。If the second data reporting message is not the last data reporting message among the multiple data reporting messages, the server device sets the value of the first field of the second data reporting message to the second value. In this way, after receiving the data reporting message sent by the server device, the client device does not send a status response to the server device according to the value of the first field.
在第二个数据上报消息不是多个数据上报消息中的最后一个数据上报消息的情况下,服务端设备继续判断后续的数据上报消息是否为多个数据上报消息中的最后一个数据上报消息,直至确定某一个数据上报消息是多个数据上报消息中的最后一个数据上报消息。这种情况下,服务端设备将该最后一个数据上报消息的第一字段的取值设置为第一取值。In the case where the second data reporting message is not the last data reporting message among the multiple data reporting messages, the server device continues to determine whether the subsequent data reporting message is the last data reporting message among the multiple data reporting messages until Determine that a certain data reporting message is the last data reporting message among multiple data reporting messages. In this case, the server device sets the value of the first field of the last data reporting message as the first value.
在一些实施例中,第一数据上报消息可以包括第二字段,第二字段用于承载第一信息。也就是说,第二字段可以用于指示第一数据上报消息是否为读请求对应的最后一个数据上报消息。In some embodiments, the first data reporting message may include a second field, and the second field is used to carry the first information. That is to say, the second field may be used to indicate whether the first data reporting message is the last data reporting message corresponding to the read request.
在一些实施例中,在第二字段的取值用于指示第一数据上报消息是读请求对应的最后一个数据上报消息的情况下,第一数据上报消息可以省略第二字段。In some embodiments, when the value of the second field is used to indicate that the first data reporting message is the last data reporting message corresponding to the read request, the first data reporting message may omit the second field.
在一些实施例中,第二字段可以用于直接指示第一数据上报消息是否为读请求对应的最后一个数据上报消息。In some embodiments, the second field may be used to directly indicate whether the first data reporting message is the last data reporting message corresponding to the read request.
在一些实施例中,第二字段可以用于间接指示第一数据上报消息是否为读请求对应的最后一个数据上报消息。例如,第二字段可以用于指示读请求在第一数据上报消息之后是否还对应更多分块消息(即,服务端设备发送第一数据上报消息之后,是否还有该读请求对应的后续待发数据需要发送)。如果第二字段的取值用于指示读请求在第一数据上报消息之后无分块消息需要发送,则可以认为,第一数据上报消息是读请求对应的最后一个数据上报消息;如果第二字段的取值用于指示读请求在第一数据上报消息之后还对应更多分块消息(读请求在第一数据上报消息之后还有分块消息需要发送),则可以认为,第一数据上报消息不是读请求对应的最后一个数据上报消息。In some embodiments, the second field may be used to indirectly indicate whether the first data reporting message is the last data reporting message corresponding to the read request. For example, the second field may be used to indicate whether the read request corresponds to more block messages after the first data reporting message (that is, after the server device sends the first data reporting message, whether there are subsequent pending messages corresponding to the read request. Sending data needs to be sent). If the value of the second field is used to indicate that no block messages need to be sent after the first data reporting message in the read request, it can be considered that the first data reporting message is the last data reporting message corresponding to the read request; if the second field The value of is used to indicate that the read request also corresponds to more chunked messages after the first data reporting message (the read request still has chunked messages to be sent after the first data reporting message), then it can be considered that the first data reporting message It is not the last data reporting message corresponding to the read request.
也就是说,如果服务端设备发送第一数据上报消息之后无后续数据待发,则第一数据上报消息是读请求对应的最后一个数据上报消息;如果服务端设备发送第一数据上报消息之后仍有后续数据待发,则第一数据上报消息不是读请求对应的最后一个数据上报消息。That is to say, if there is no subsequent data to be sent after the server device sends the first data reporting message, the first data reporting message is the last data reporting message corresponding to the read request; if there is still no subsequent data to be sent after the server device sends the first data reporting message, If there is subsequent data to be sent, the first data reporting message is not the last data reporting message corresponding to the read request.
在一些实施例中,第二字段可以具有第三取值和/或第四取值。其中,第三取值可以用于指示第一数据上报消息是读请求对应的最后一个数据上报消息,第四取值可以用于指示第一数据上报消息不是读请求对应的最后一个数据上报消息。In some embodiments, the second field may have a third value and/or a fourth value. The third value may be used to indicate that the first data reporting message is the last data reporting message corresponding to the read request, and the fourth value may be used to indicate that the first data reporting message is not the last data reporting message corresponding to the read request.
在一些实施例中,第二字段例如可以是前文提及的MoreChunkedMessages。In some embodiments, the second field may be, for example, the aforementioned MoreChunkedMessages.
在一些实施例中,第二字段的类型可以为布尔型。例如,第三取值可以为FALSE,以指示第一数据上报消息是读请求对应的最后一个数据上报消息;第四取值可以为TRUE,以指示第一数据上报消息不是读请求对应的最后一个数据上报消息。不过本申请实施例并不限定于此,例如,第二字段的类型可以为数值型。作为一个示例,第三取值可以为0,以指示第一数据上报消息是读请求对应的最后一个数据上报消息;第二取值可以为除0之外的任意数值(例如,第二取值可以为大于0的任意数值,比如第二取值为1),以指示第一数据上报消息不是读请求对应的最后一个数据上报消息。In some embodiments, the type of the second field may be Boolean. For example, the third value may be FALSE to indicate that the first data reporting message is the last data reporting message corresponding to the read request; the fourth value may be TRUE to indicate that the first data reporting message is not the last data reporting message corresponding to the read request. Data reporting message. However, the embodiment of the present application is not limited to this. For example, the type of the second field may be a numeric type. As an example, the third value may be 0 to indicate that the first data reporting message is the last data reporting message corresponding to the read request; the second value may be any value except 0 (for example, the second value It can be any value greater than 0, for example, the second value is 1) to indicate that the first data reporting message is not the last data reporting message corresponding to the read request.
在一些实施例中,如果第二字段的取值为第三取值,则服务端设备在向客户端设备发送第一数据上报消息时,第一数据上报消息中的第二字段可以省略。In some embodiments, if the value of the second field is the third value, when the server device sends the first data reporting message to the client device, the second field in the first data reporting message may be omitted.
在一些实施例中,第一数据上报消息为包含属性数据报告和/或事件报告的数据上报消息。In some embodiments, the first data reporting message is a data reporting message including an attribute data report and/or an event report.
在一些实施例中,第一数据上报消息中的属性数据报告和事件报告中的至少一个为非空数组,例如,第一数据上报消息中的属性数据报告为非空数组,或者,第一数据上报消息中的属性数据报告和事件报告均为非空数组。In some embodiments, at least one of the attribute data report and the event report in the first data reporting message is a non-empty array. For example, the attribute data report in the first data reporting message is a non-empty array, or the first data The attribute data report and event report in the reporting message are both non-empty arrays.
在一些实施例中,第一数据上报消息中的属性数据报告和/或事件报告为非空数组可以是指,第一数据上报消息中的AttributeReports和/或EventReports为非空数组。不过本申请实施例并不限定于此,在一些实施例中,第一数据上报消息也可以为不包含属性数据报告和/或事件报告的数据上报消息。或者说,第一数据上报消息中的AttributeReports和/或EventReports为空数组。In some embodiments, the attribute data report and/or event report in the first data reporting message being a non-empty array may mean that the AttributeReports and/or EventReports in the first data reporting message are a non-empty array. However, the embodiments of the present application are not limited thereto. In some embodiments, the first data reporting message may also be a data reporting message that does not include an attribute data report and/or an event report. In other words, the AttributeReports and/or EventReports in the first data reporting message are empty arrays.
实施例二:Example 2:
实施例二中,第一字段的取值为第二取值。换句话说,不管在什么情况下,第一数据上报消息中的第一字段均可以用于指示客户端设备不对第一数据上报消息进行响应。这是考虑到,对于读取事务中的数据上报操作,客户端设备不对数据上报操作进行响应,下层数据上报消息中的第一字段的设置机制与上层数据上报操作的对应的字段的设置机制一致,有利于提升读交互的互通性。In the second embodiment, the value of the first field is the second value. In other words, no matter what the circumstances, the first field in the first data reporting message may be used to indicate that the client device does not respond to the first data reporting message. This is taken into account that for the data reporting operation in the read transaction, the client device does not respond to the data reporting operation, and the setting mechanism of the first field in the lower-layer data reporting message is consistent with the setting mechanism of the corresponding field in the upper-layer data reporting operation. , which is conducive to improving the interoperability of read interaction.
作为一种实现方式,如果读请求仅对应第一数据上报消息(即服务端设备采用单一上报的方式发送数据上报消息),第一数据上报消息可以理解为读请求对应的最后一个数据上报消息。这种情况下,服务端设备可以将第一字段的取值设置为第二取值。As an implementation manner, if the read request only corresponds to the first data reporting message (that is, the server device uses a single reporting method to send the data reporting message), the first data reporting message can be understood as the last data reporting message corresponding to the read request. In this case, the server device can set the value of the first field to the second value.
图9为本申请又一实施例提供的数据上报方法的流程示意图。图9所示的方法中,读请求仅对应一个数据上报消息。Figure 9 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application. In the method shown in Figure 9, the read request only corresponds to one data reporting message.
在步骤S910,客户端设备向服务端设备发送读请求。In step S910, the client device sends a read request to the server device.
在步骤S920,服务端设备接收读请求后,设置第一字段的取值为第二取值。In step S920, after receiving the read request, the server device sets the value of the first field to the second value.
在步骤S930,服务端设备向客户端设备发送第一数据上报消息,其中,第一数据上报消息中的第一字段的取值为第二取值。In step S930, the server device sends a first data reporting message to the client device, where the value of the first field in the first data reporting message is the second value.
如此一来,客户端设备接收到服务端设备发送的上报数据后,根据第一字段的取值,确定不对数据上报消息进行响应。In this way, after receiving the reporting data sent by the server device, the client device determines not to respond to the data reporting message according to the value of the first field.
作为另一种实现方式,如果读请求对应多个数据上报消息(即服务端设备采用分段上报的方式发送数据上报消息),这种情况下,服务端设备在发送第一数据上报消息之前,可以设置第一字段的取值为第二取值。As another implementation, if the read request corresponds to multiple data reporting messages (that is, the server device sends data reporting messages in segmented reporting), in this case, before sending the first data reporting message, the server device You can set the value of the first field to the second value.
具体地,如果读请求对应多个数据上报消息,不管第一数据上报消息是否为多个数据上报消息中的最后一个数据上报消息,服务端设备都将第一字段的取值设置为第二取值。Specifically, if the read request corresponds to multiple data reporting messages, regardless of whether the first data reporting message is the last data reporting message among the multiple data reporting messages, the server device sets the value of the first field to the second value. value.
图10为本申请又一实施例提供的数据上报方法的流程示意图。图10所示的方法中,读请求对应多个数据上报消息。Figure 10 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application. In the method shown in Figure 10, the read request corresponds to multiple data reporting messages.
在步骤S1010,客户端设备向服务端设备发送读请求。In step S1010, the client device sends a read request to the server device.
在步骤S1020,服务端设备接收读请求后,将多个数据上报消息中的首个数据上报消息的第一字段的取值设置为第二取值。In step S1020, after receiving the read request, the server device sets the value of the first field of the first data reporting message among the plurality of data reporting messages to the second value.
在步骤S1030,服务端设备向客户端设备发送多个数据上报消息中的首个数据上报消息,其中,该首个数据上报消息中的第一字段的取值为第二取值。In step S1030, the server device sends the first data reporting message among the plurality of data reporting messages to the client device, where the value of the first field in the first data reporting message is the second value.
在步骤S1040,服务端设备将多个数据上报消息中的第二个数据上报消息的第一字段的取值设置为第二取值。In step S1040, the server device sets the value of the first field of the second data reporting message among the plurality of data reporting messages to the second value.
在步骤S1050,服务端设备向客户端设备发送第二个数据上报消息,该第二个数据上报消息中的第一字段的取值为第二取值。In step S1050, the server device sends a second data reporting message to the client device, and the value of the first field in the second data reporting message is the second value.
以此类推,直至服务端设备将读请求对应的多个数据上报消息均发送给客户端设备,其中,多个数据上报消息中的任意一条数据上报消息中的第一字段的取值均设置为第二取值。And so on, until the server device sends multiple data reporting messages corresponding to the read request to the client device, where the value of the first field in any of the multiple data reporting messages is set to Second value.
实施例三:Embodiment three:
实施例三中,第一字段的取值为第一取值。换句话说,不管在什么情况下,第一数据上报消息中的第一字段均可以用于指示客户端设备对第一数据上报消息进行响应。In the third embodiment, the value of the first field is the first value. In other words, no matter what the circumstances, the first field in the first data reporting message can be used to instruct the client device to respond to the first data reporting message.
作为一种实现方式,如果读请求仅对应第一数据上报消息(即服务端设备采用单一上报的方式发送数据上报消息),第一数据上报消息可以理解为读请求对应的最后一个数据上报消息。这种情况下,服务端设备可以将第一字段的取值设置为第一取值。As an implementation manner, if the read request only corresponds to the first data reporting message (that is, the server device uses a single reporting method to send the data reporting message), the first data reporting message can be understood as the last data reporting message corresponding to the read request. In this case, the server device can set the value of the first field to the first value.
图11为本申请又一实施例提供的数据上报方法的流程示意图。图11所示的方法中,读请求仅对应一个数据上报消息。Figure 11 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application. In the method shown in Figure 11, the read request only corresponds to one data reporting message.
在步骤S1110,客户端设备向服务端设备发送读请求。In step S1110, the client device sends a read request to the server device.
在步骤S1120,服务端设备接收读请求后,设置第一字段的取值为第一取值。In step S1120, after receiving the read request, the server device sets the value of the first field to the first value.
在步骤S1130,服务端设备向客户端设备发送第一数据上报消息,其中,第一数据上报消息中的第一字段的取值为第一取值。In step S1130, the server device sends a first data reporting message to the client device, where the value of the first field in the first data reporting message is the first value.
在步骤S1140,客户端设备向服务端设备发送状态响应。In step S1140, the client device sends a status response to the server device.
作为另一种实现方式,如果读请求对应多个数据上报消息(即服务端设备采用分段上报的方式发送数据上报消息),这种情况下,服务端设备在发送第一数据上报消息之前,可以设置第一字段的取值为第一取值。As another implementation, if the read request corresponds to multiple data reporting messages (that is, the server device sends data reporting messages in segmented reporting), in this case, before sending the first data reporting message, the server device The value of the first field can be set to the first value.
具体地,如果读请求对应多个数据上报消息,不管第一数据上报消息是否为多个数据上报消息中的最后一个数据上报消息,服务端设备都将第一字段的取值设置为第一取值。Specifically, if the read request corresponds to multiple data reporting messages, regardless of whether the first data reporting message is the last data reporting message among the multiple data reporting messages, the server device sets the value of the first field to the first value. value.
图12为本申请又一实施例提供的数据上报方法的流程示意图。图12所示的方法中,读请求对应多个数据上报消息。Figure 12 is a schematic flowchart of a data reporting method provided by yet another embodiment of the present application. In the method shown in Figure 12, the read request corresponds to multiple data reporting messages.
在步骤S1210,客户端设备向服务端设备发送读请求。In step S1210, the client device sends a read request to the server device.
在步骤S1220,服务端设备接收读请求后,将多个数据上报消息中的首个数据上报消息的第一字段的取值设置为第一取值。In step S1220, after receiving the read request, the server device sets the value of the first field of the first data reporting message among the plurality of data reporting messages as the first value.
在步骤S1230,服务端设备向客户端设备发送多个数据上报消息中的首个数据上报消息,其中,该首个数据上报消息中的第一字段的取值为第一取值。In step S1230, the server device sends the first data reporting message among the plurality of data reporting messages to the client device, where the value of the first field in the first data reporting message is the first value.
在步骤S1240,客户端设备接收到服务端设备发送的上报数据后,向服务端设备发送状态响应。In step S1240, after receiving the reporting data sent by the server device, the client device sends a status response to the server device.
在步骤S1250,服务端设备将多个数据上报消息中的第二个数据上报消息的第一字段的取值设置为第一取值,并向客户端设备发送第二个数据上报消息。In step S1250, the server device sets the value of the first field of the second data reporting message among the plurality of data reporting messages to the first value, and sends the second data reporting message to the client device.
以此类推,直至服务端设备将读请求对应的多个数据上报消息均发送给客户端设备,其中,多个数据上报消息中的任意一条数据上报消息中的第一字段的取值均设置为第一取值。And so on, until the server device sends multiple data reporting messages corresponding to the read request to the client device, where the value of the first field in any of the multiple data reporting messages is set to The first value.
上文结合图1至图12,详细描述了本申请的方法实施例,下面结合图13至图15,详细描述本申请的装置实施例。应理解,方法实施例的描述与装置实施例的描述相互对应,因此,未详细描述的部分可以参见前面方法实施例。The method embodiments of the present application are described in detail above with reference to FIGS. 1 to 12 , and the device embodiments of the present application are described in detail below with reference to FIGS. 13 to 15 . It should be understood that the description of the method embodiments corresponds to the description of the device embodiments. Therefore, the parts not described in detail can be referred to the previous method embodiments.
图13为本申请一实施例提供的数据上报装置的结构示意图。图13所示的数据上报装置1300可以配置于服务端设备,该服务端设备可以为前文所述的任一服务端设备。数据上报装置1300可以包括接收模块1310和发送模块1320。Figure 13 is a schematic structural diagram of a data reporting device provided by an embodiment of the present application. The data reporting device 1300 shown in Figure 13 can be configured on a server device, and the server device can be any of the server devices mentioned above. The data reporting device 1300 may include a receiving module 1310 and a sending module 1320.
接收模块1310可以用于客户端设备发送的读请求。The receiving module 1310 may be used for read requests sent by the client device.
发送模块1320可以用于向所述客户端设备发送第一数据上报消息,所述第一数据上报消息包括或者省略第一字段,所述第一字段具有第一取值或第二取值,所述第一取值用于指示所述客户端设备对所述第一数据上报消息进行响应,所述第二取值用于指示所述客户端设备不对所述第一数据上报消息进行响应;其中,所述第一字段的取值基于第一信息确定,所述第一信息用于指示所述第一数据上报消息是否为所述读请求对应的最后一个数据上报消息;或者,所述第一字段的取值为所述第二取值;或者,所述第一字段的取值为所述第一取值。The sending module 1320 may be configured to send a first data reporting message to the client device. The first data reporting message includes or omits a first field, and the first field has a first value or a second value, so The first value is used to instruct the client device to respond to the first data reporting message, and the second value is used to instruct the client device not to respond to the first data reporting message; wherein , the value of the first field is determined based on first information, and the first information is used to indicate whether the first data reporting message is the last data reporting message corresponding to the read request; or, the first The value of the field is the second value; or the value of the first field is the first value.
可选地,如果所述第一信息指示所述第一数据上报消息不是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第一取值;如果所述第一信息指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第二取值。Optionally, if the first information indicates that the first data reporting message is not the last data reporting message corresponding to the read request, the value of the first field is the first value; if If the first information indicates that the first data reporting message is the last data reporting message corresponding to the read request, then the value of the first field is the second value.
可选地,装置1300还包括:第一设置模块,用于如果所述读请求仅对应所述第一数据上报消息,则将所述第一字段的取值设置为所述第二取值。Optionally, the device 1300 further includes: a first setting module, configured to set the value of the first field to the second value if the read request only corresponds to the first data reporting message.
可选地,装置1300装置还包括:第二设置模块,用于如果所述读请求对应多个数据上报消息,且所述第一数据上报消息是所述多个数据上报消息中的最后一个数据上报消息,则将所述第一字段的取值设置为所述第二取值;和/或第三设置模块,用于如果所述读请求对应多个数据上报消息,且所述第一数据上报消息不是所述多个数据上报消息中的最后一个数据上报消息,则将所述第一字段的取值设置为所述第一取值。Optionally, the device 1300 also includes: a second setting module, configured to: if the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data in the multiple data reporting messages report message, then set the value of the first field to the second value; and/or a third setting module for reporting messages if the read request corresponds to multiple data, and the first data If the reported message is not the last data reporting message among the plurality of data reporting messages, the value of the first field is set to the first value.
可选地,如果所述第一信息指示所述第一数据上报消息不是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第二取值;如果所述第一信息指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第一取值。Optionally, if the first information indicates that the first data reporting message is not the last data reporting message corresponding to the read request, the value of the first field is the second value; if the If the first information indicates that the first data reporting message is the last data reporting message corresponding to the read request, then the value of the first field is the first value.
可选地,装置1300还包括:第四设置模块,用于如果所述读请求仅对应所述第一数据上报消息,则将所述第一字段的取值设置为所述第一取值。Optionally, the device 1300 further includes: a fourth setting module, configured to set the value of the first field to the first value if the read request only corresponds to the first data reporting message.
可选地,装置1300还包括:第五设置模块,用于如果所述读请求对应多个数据上报消息,且所述第一数据上报消息是所述多个数据上报消息中的最后一个数据上报消息,则将所述第一字段的取值设置为所述第一取值;和/或第六设置模块,用于如果所述读请求对应多个数据上报消息,且所述第一数据上报消息不是所述多个数据上报消息中的最后一个数据上报消息,则将所述第一字段的取值设置为所述第二取值。Optionally, the device 1300 further includes: a fifth setting module, configured to: if the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data reporting message among the multiple data reporting messages message, then set the value of the first field to the first value; and/or a sixth setting module, used if the read request corresponds to multiple data reporting messages, and the first data reporting If the message is not the last data reporting message among the plurality of data reporting messages, the value of the first field is set to the second value.
可选地,第一数据上报消息包括或者省略第二字段,所述第二字段用于承载所述第一信息。Optionally, the first data reporting message includes or omits a second field, where the second field is used to carry the first information.
可选地,在所述第二字段的取值用于指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息的情况下,所述第一数据上报消息省略所述第二字段。Optionally, when the value of the second field is used to indicate that the first data reporting message is the last data reporting message corresponding to the read request, the first data reporting message omits the third data reporting message. Two fields.
可选地,在所述第一字段的取值为所述第一取值的情况下,所述第一数据上报消息省略所述第一字段。Optionally, when the value of the first field is the first value, the first data reporting message omits the first field.
可选地,第一数据上报消息为包含属性数据报告和/或事件报告的数据上报消息,且所述属性数据报告和所述事件报告中的至少一个为非空数组。Optionally, the first data reporting message is a data reporting message including an attribute data report and/or an event report, and at least one of the attribute data report and the event report is a non-empty array.
图14为本申请另一实施例提供的数据上报装置的结构示意图。图14所示的数据上报装置1400可以配置于客户端设备,该客户端设备可以为前文所述的任一客户端设备。数据上报装置1400可以包括第一发送模块1410、接收模块1420以及确定模块1430。Figure 14 is a schematic structural diagram of a data reporting device provided by another embodiment of the present application. The data reporting device 1400 shown in Figure 14 can be configured on a client device, and the client device can be any of the client devices mentioned above. The data reporting device 1400 may include a first sending module 1410, a receiving module 1420, and a determining module 1430.
第一发送模块1410可以用于向服务端设备发送读请求。The first sending module 1410 may be used to send a read request to the server device.
接收模块1420可以用于接收所述服务端设备发送的第一数据上报消息,所述第一数据上报消息包 括或者省略第一字段,所述第一字段具有第一取值或第二取值,所述第一取值用于指示所述客户端设备对所述第一数据上报消息进行响应,所述第二取值用于指示所述客户端设备不对所述第一数据上报消息进行响应。The receiving module 1420 may be configured to receive a first data reporting message sent by the server device. The first data reporting message includes or omits a first field, and the first field has a first value or a second value, The first value is used to instruct the client device to respond to the first data reporting message, and the second value is used to instruct the client device not to respond to the first data reporting message.
确定模块1430可以用于根据所述第一字段的取值确定是否向所述服务端设备发送状态响应;其中,所述第一字段的取值基于第一信息确定,所述第一信息用于指示所述第一数据上报消息是否为所述读请求对应的最后一个数据上报消息;或者,所述第一字段的取值为所述第二取值;或者,所述第一字段的取值为所述第一取值。The determining module 1430 may be configured to determine whether to send a status response to the server device according to the value of the first field; wherein the value of the first field is determined based on first information, and the first information is used to Indicate whether the first data reporting message is the last data reporting message corresponding to the read request; or, the value of the first field is the second value; or, the value of the first field is the first value.
可选地,如果所述第一信息指示所述第一数据上报消息不是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第一取值;如果所述第一信息指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第二取值。Optionally, if the first information indicates that the first data reporting message is not the last data reporting message corresponding to the read request, the value of the first field is the first value; if If the first information indicates that the first data reporting message is the last data reporting message corresponding to the read request, then the value of the first field is the second value.
可选地,如果所述读请求仅对应所述第一数据上报消息,则所述第一字段的取值为所述第二取值。Optionally, if the read request only corresponds to the first data reporting message, the value of the first field is the second value.
可选地,如果所述读请求对应多个数据上报消息,且所述第一数据上报消息是所述多个数据上报消息中的最后一个数据上报消息,则所述第一字段的取值为所述第二取值;和/或如果所述读请求对应多个数据上报消息,且所述第一数据上报消息不是所述多个数据上报消息中的最后一个数据上报消息,则所述第一字段的取值为所述第一取值。Optionally, if the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data reporting message among the multiple data reporting messages, the value of the first field is The second value; and/or if the read request corresponds to multiple data reporting messages, and the first data reporting message is not the last data reporting message among the multiple data reporting messages, then the third data reporting message The value of a field is the first value.
可选地,如果所述第一信息指示所述第一数据上报消息不是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第二取值;如果所述第一信息指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第一取值。Optionally, if the first information indicates that the first data reporting message is not the last data reporting message corresponding to the read request, the value of the first field is the second value; if the If the first information indicates that the first data reporting message is the last data reporting message corresponding to the read request, then the value of the first field is the first value.
可选地,如果所述读请求仅对应所述第一数据上报消息,则所述第一字段的取值为所述第一取值。Optionally, if the read request only corresponds to the first data reporting message, the value of the first field is the first value.
可选地,如果所述读请求对应多个数据上报消息,且所述第一数据上报消息是所述多个数据上报消息中的最后一个数据上报消息,则所述第一字段的取值为所述第一取值;和/或如果所述读请求对应多个数据上报消息,且所述第一数据上报消息不是所述多个数据上报消息中的最后一个数据上报消息,则所述第一字段的取值为所述第二取值。Optionally, if the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data reporting message among the multiple data reporting messages, the value of the first field is The first value; and/or if the read request corresponds to multiple data reporting messages, and the first data reporting message is not the last data reporting message among the multiple data reporting messages, then the third data reporting message The value of a field is the second value.
可选地,第一数据上报消息包括或者省略第二字段,所述第二字段用于承载所述第一信息。Optionally, the first data reporting message includes or omits a second field, where the second field is used to carry the first information.
可选地,在所述第二字段的取值用于指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息的情况下,所述第一数据上报消息省略所述第二字段。Optionally, when the value of the second field is used to indicate that the first data reporting message is the last data reporting message corresponding to the read request, the first data reporting message omits the third data reporting message. Two fields.
可选地,在所述第一字段的取值为所述第一取值的情况下,所述第一数据上报消息省略所述第一字段。Optionally, when the value of the first field is the first value, the first data reporting message omits the first field.
可选地,第一数据上报消息为包含属性数据报告和/或事件报告的数据上报消息,且所述属性数据报告和所述事件报告中的至少一个为非空数组。Optionally, the first data reporting message is a data reporting message including an attribute data report and/or an event report, and at least one of the attribute data report and the event report is a non-empty array.
可选地,装置1400还包括:第二发送模块,用于如果所述第一字段的取值为所述第一取值或者所述第一数据上报消息省略所述第一字段,向所述服务端设备发送所述状态响应。Optionally, the device 1400 further includes: a second sending module, configured to send a message to the first field if the value of the first field is the first value or the first data reporting message omits the first field. The server device sends the status response.
图15是本申请实施例的通信装置的示意性结构图。图15中的虚线表示该单元或模块为可选的。该装置1500可用于实现上述方法实施例中描述的方法。装置1500可以是芯片、终端设备或网络设备。Figure 15 is a schematic structural diagram of a communication device according to an embodiment of the present application. The dashed line in Figure 15 indicates that the unit or module is optional. The device 1500 can be used to implement the method described in the above method embodiment. Device 1500 may be a chip, terminal device or network device.
装置1500可以包括一个或多个处理器1510。该处理器1510可支持装置1500实现前文方法实施例所描述的方法。该处理器1510可以是通用处理器或者专用处理器。例如,该处理器可以为中央处理单元(central processing unit,CPU)。或者,该处理器还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。Apparatus 1500 may include one or more processors 1510. The processor 1510 can support the device 1500 to implement the method described in the foregoing method embodiments. The processor 1510 may be a general-purpose processor or a special-purpose processor. For example, the processor may be a central processing unit (CPU). Alternatively, the processor can also be another general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), or an off-the-shelf programmable gate array (FPGA) Or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
装置1500还可以包括一个或多个存储器1520。存储器1520上存储有程序,该程序可以被处理器1510执行,使得处理器1510执行前文方法实施例所描述的方法。存储器1520可以独立于处理器1510也可以集成在处理器1510中。Apparatus 1500 may also include one or more memories 1520. The memory 1520 stores a program, which can be executed by the processor 1510, so that the processor 1510 executes the method described in the foregoing method embodiment. The memory 1520 may be independent of the processor 1510 or integrated in the processor 1510.
装置1500还可以包括收发器1530。处理器1510可以通过收发器1530与其他设备或芯片进行通信。例如,处理器1510可以通过收发器1530与其他设备或芯片进行数据收发。Apparatus 1500 may also include a transceiver 1530. Processor 1510 may communicate with other devices or chips through transceiver 1530. For example, the processor 1510 can transmit and receive data with other devices or chips through the transceiver 1530.
本申请实施例还提供一种计算机可读存储介质,用于存储程序。该计算机可读存储介质可应用于本申请实施例提供的终端或网络设备中,并且该程序使得计算机执行本申请各个实施例中的由终端或网络设备执行的方法。An embodiment of the present application also provides a computer-readable storage medium for storing a program. The computer-readable storage medium can be applied in the terminal or network device provided by the embodiments of the present application, and the program causes the computer to execute the methods performed by the terminal or network device in various embodiments of the present application.
本申请实施例还提供一种计算机程序产品。该计算机程序产品包括程序。该计算机程序产品可应用于本申请实施例提供的终端或网络设备中,并且该程序使得计算机执行本申请各个实施例中的由终端或网络设备执行的方法。An embodiment of the present application also provides a computer program product. The computer program product includes a program. The computer program product can be applied in the terminal or network device provided by the embodiments of the present application, and the program causes the computer to execute the methods performed by the terminal or network device in various embodiments of the present application.
本申请实施例还提供一种计算机程序。该计算机程序可应用于本申请实施例提供的终端或网络设 备中,并且该计算机程序使得计算机执行本申请各个实施例中的由终端或网络设备执行的方法。An embodiment of the present application also provides a computer program. The computer program can be applied to the terminal or network device provided by the embodiments of the present application, and the computer program causes the computer to execute the methods performed by the terminal or network device in various embodiments of the present application.
应理解,本申请中术语“系统”和“网络”可以被可互换使用。另外,本申请使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。It should be understood that the terms "system" and "network" may be used interchangeably in this application. In addition, the terms used in this application are only used to explain specific embodiments of the application and are not intended to limit the application. The terms “first”, “second”, “third” and “fourth” in the description, claims and drawings of this application are used to distinguish different objects, rather than to describe a specific sequence. . Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion.
在本申请的实施例中,提到的“指示”可以是直接指示,也可以是间接指示,还可以是表示具有关联关系。举例说明,A指示B,可以表示A直接指示B,例如B可以通过A获取;也可以表示A间接指示B,例如A指示C,B可以通过C获取;还可以表示A和B之间具有关联关系。In the embodiments of this application, the "instruction" mentioned may be a direct instruction, an indirect instruction, or an association relationship. For example, A indicates B, which 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. relation.
在本申请实施例中,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。In the embodiment of this application, "B corresponding to A" means that B is associated with A, and B can be determined based on A. However, it should also be understood that determining B based on A does not mean determining B only based on A. B can also be determined based on A and/or other information.
在本申请实施例中,术语“对应”可表示两者之间具有直接对应或间接对应的关系,也可以表示两者之间具有关联关系,也可以是指示与被指示、配置与被配置等关系。In the embodiments of this application, the term "correspondence" can mean that there is a direct correspondence or indirect correspondence between the two, or it can also mean that there is an association between the two, or it can also mean indicating and being instructed, configuring and being configured, etc. relation.
本申请实施例中,“预定义”或“预配置”可以通过在设备(例如,包括终端设备和网络设备)中预先保存相应的代码、表格或其他可用于指示相关信息的方式来实现,本申请对于其具体的实现方式不做限定。比如预定义可以是指协议中定义的。In the embodiment of this application, "predefinition" or "preconfiguration" can be achieved by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in devices (for example, including terminal devices and network devices). The application does not limit its specific implementation method. For example, predefined can refer to what is defined in the protocol.
本申请实施例中,所述“协议”可以指通信领域的标准协议,例如可以包括LTE协议、NR协议以及应用于未来的通信系统中的相关协议,本申请对此不做限定。In the embodiment of this application, the "protocol" may refer to a standard protocol in the communication field, which may include, for example, LTE protocol, NR protocol, and related protocols applied in future communication systems. This application does not limit this.
本申请实施例中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in the embodiment of this application is only an association relationship describing associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, and A and B exist simultaneously. , there are three situations of B alone. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship.
在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。In the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not be determined by the implementation process of the embodiments of the present application. constitute any limitation.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够读取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,数字通用光盘(digital video disc,DVD))或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be read by a computer or a data storage device such as a server or data center integrated with one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs (DVD)) or semiconductor media (e.g., solid state disks (SSD) )wait.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application. should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
Claims (53)
- 一种数据上报方法,其特征在于,包括:A data reporting method, characterized by including:服务端设备接收客户端设备发送的读请求;The server device receives the read request sent by the client device;所述服务端设备向所述客户端设备发送第一数据上报消息,所述第一数据上报消息包括或者省略第一字段,所述第一字段具有第一取值或第二取值,所述第一取值用于指示所述客户端设备对所述第一数据上报消息进行响应,所述第二取值用于指示所述客户端设备不对所述第一数据上报消息进行响应;The server device sends a first data reporting message to the client device, the first data reporting message includes or omits a first field, the first field has a first value or a second value, and the The first value is used to instruct the client device to respond to the first data reporting message, and the second value is used to instruct the client device not to respond to the first data reporting message;其中,所述第一字段的取值基于第一信息确定,所述第一信息用于指示所述第一数据上报消息是否为所述读请求对应的最后一个数据上报消息;或者,所述第一字段的取值为所述第二取值;或者,所述第一字段的取值为所述第一取值。Wherein, the value of the first field is determined based on first information, and the first information is used to indicate whether the first data reporting message is the last data reporting message corresponding to the read request; or, the third The value of a field is the second value; or the value of the first field is the first value.
- 根据权利要求1所述的方法,其特征在于,The method according to claim 1, characterized in that:如果所述第一信息指示所述第一数据上报消息不是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第一取值;If the first information indicates that the first data reporting message is not the last data reporting message corresponding to the read request, then the value of the first field is the first value;如果所述第一信息指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第二取值。If the first information indicates that the first data reporting message is the last data reporting message corresponding to the read request, the value of the first field is the second value.
- 根据权利要求2所述的方法,其特征在于,在所述服务端设备向所述客户端设备发送第一数据上报消息之前,所述方法还包括:The method according to claim 2, characterized in that, before the server device sends the first data reporting message to the client device, the method further includes:如果所述读请求仅对应所述第一数据上报消息,则所述服务端设备将所述第一字段的取值设置为所述第二取值。If the read request only corresponds to the first data reporting message, the server device sets the value of the first field to the second value.
- 根据权利要求2或3所述的方法,其特征在于,在所述服务端设备向所述客户端设备发送第一数据上报消息之前,所述方法还包括:The method according to claim 2 or 3, characterized in that, before the server device sends the first data reporting message to the client device, the method further includes:如果所述读请求对应多个数据上报消息,且所述第一数据上报消息是所述多个数据上报消息中的最后一个数据上报消息,则所述服务端设备将所述第一字段的取值设置为所述第二取值;和/或If the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data reporting message among the multiple data reporting messages, the server device will retrieve the first field. The value is set to the second value; and/or如果所述读请求对应多个数据上报消息,且所述第一数据上报消息不是所述多个数据上报消息中的最后一个数据上报消息,则所述服务端设备将所述第一字段的取值设置为所述第一取值。If the read request corresponds to multiple data reporting messages, and the first data reporting message is not the last data reporting message among the multiple data reporting messages, the server device will retrieve the first field. The value is set to the first value.
- 根据权利要求1所述的方法,其特征在于,The method according to claim 1, characterized in that:如果所述第一信息指示所述第一数据上报消息不是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第二取值;If the first information indicates that the first data reporting message is not the last data reporting message corresponding to the read request, then the value of the first field is the second value;如果所述第一信息指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第一取值。If the first information indicates that the first data reporting message is the last data reporting message corresponding to the read request, the value of the first field is the first value.
- 根据权利要求5所述的方法,其特征在于,在所述服务端设备向所述客户端设备发送第一数据上报消息之前,所述方法还包括:The method according to claim 5, characterized in that, before the server device sends the first data reporting message to the client device, the method further includes:如果所述读请求仅对应所述第一数据上报消息,则所述服务端设备将所述第一字段的取值设置为所述第一取值。If the read request only corresponds to the first data reporting message, the server device sets the value of the first field to the first value.
- 根据权利要求5或6所述的方法,其特征在于,在所述服务端设备向所述客户端设备发送第一数据上报消息之前,所述方法还包括:The method according to claim 5 or 6, characterized in that, before the server device sends the first data reporting message to the client device, the method further includes:如果所述读请求对应多个数据上报消息,且所述第一数据上报消息是所述多个数据上报消息中的最后一个数据上报消息,则所述服务端设备将所述第一字段的取值设置为所述第一取值;和/或If the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data reporting message among the multiple data reporting messages, the server device will retrieve the first field. The value is set to the first value; and/or如果所述读请求对应多个数据上报消息,且所述第一数据上报消息不是所述多个数据上报消息中的最后一个数据上报消息,则所述服务端设备将所述第一字段的取值设置为所述第二取值。If the read request corresponds to multiple data reporting messages, and the first data reporting message is not the last data reporting message among the multiple data reporting messages, the server device will retrieve the first field. The value is set to the second value.
- 根据权利要求1-7中任一项所述的方法,其特征在于,所述第一数据上报消息包括或者省略第二字段,所述第二字段用于承载所述第一信息。The method according to any one of claims 1 to 7, characterized in that the first data reporting message includes or omits a second field, and the second field is used to carry the first information.
- 根据权利要求8所述的方法,其特征在于,在所述第二字段的取值用于指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息的情况下,所述第一数据上报消息省略所述第二字段。The method according to claim 8, characterized in that when the value of the second field is used to indicate that the first data reporting message is the last data reporting message corresponding to the read request, the The first data reporting message omits the second field.
- 根据权利要求1-9中任一项所述的方法,其特征在于,在所述第一字段的取值为所述第一取值的情况下,所述第一数据上报消息省略所述第一字段。The method according to any one of claims 1 to 9, characterized in that, when the value of the first field is the first value, the first data reporting message omits the third value. One field.
- 根据权利要求1-10中任一项所述的方法,其特征在于,所述第一数据上报消息为包含属性数据报告和/或事件报告的数据上报消息,且所述属性数据报告和所述事件报告中的至少一个为非空数组。The method according to any one of claims 1 to 10, characterized in that the first data reporting message is a data reporting message including an attribute data report and/or an event report, and the attribute data report and the At least one of the event reports is a non-empty array.
- 一种数据上报方法,其特征在于,包括:A data reporting method, characterized by including:客户端设备向服务端设备发送读请求;The client device sends a read request to the server device;所述客户端设备接收所述服务端设备发送的第一数据上报消息,所述第一数据上报消息包括或者省略第一字段,所述第一字段具有第一取值或第二取值,所述第一取值用于指示所述客户端设备对所述 第一数据上报消息进行响应,所述第二取值用于指示所述客户端设备不对所述第一数据上报消息进行响应;The client device receives the first data reporting message sent by the server device, the first data reporting message includes or omits a first field, the first field has a first value or a second value, so The first value is used to instruct the client device to respond to the first data reporting message, and the second value is used to instruct the client device not to respond to the first data reporting message;所述客户端设备根据所述第一字段的取值确定是否向所述服务端设备发送状态响应;The client device determines whether to send a status response to the server device according to the value of the first field;其中,所述第一字段的取值基于第一信息确定,所述第一信息用于指示所述第一数据上报消息是否为所述读请求对应的最后一个数据上报消息;或者,所述第一字段的取值为所述第二取值;或者,所述第一字段的取值为所述第一取值。Wherein, the value of the first field is determined based on first information, and the first information is used to indicate whether the first data reporting message is the last data reporting message corresponding to the read request; or, the third The value of a field is the second value; or the value of the first field is the first value.
- 根据权利要求12所述的方法,其特征在于,The method according to claim 12, characterized in that:如果所述第一信息指示所述第一数据上报消息不是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第一取值;If the first information indicates that the first data reporting message is not the last data reporting message corresponding to the read request, then the value of the first field is the first value;如果所述第一信息指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第二取值。If the first information indicates that the first data reporting message is the last data reporting message corresponding to the read request, the value of the first field is the second value.
- 根据权利要求13所述的方法,其特征在于,如果所述读请求仅对应所述第一数据上报消息,则所述第一字段的取值为所述第二取值。The method according to claim 13, characterized in that if the read request only corresponds to the first data reporting message, the value of the first field is the second value.
- 根据权利要求13或14所述的方法,其特征在于,The method according to claim 13 or 14, characterized in that,如果所述读请求对应多个数据上报消息,且所述第一数据上报消息是所述多个数据上报消息中的最后一个数据上报消息,则所述第一字段的取值为所述第二取值;和/或If the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data reporting message among the multiple data reporting messages, the value of the first field is the second data reporting message. value; and/or如果所述读请求对应多个数据上报消息,且所述第一数据上报消息不是所述多个数据上报消息中的最后一个数据上报消息,则所述第一字段的取值为所述第一取值。If the read request corresponds to multiple data reporting messages, and the first data reporting message is not the last data reporting message among the multiple data reporting messages, the value of the first field is the first data reporting message. Take value.
- 根据权利要求12所述的方法,其特征在于,The method according to claim 12, characterized in that:如果所述第一信息指示所述第一数据上报消息不是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第二取值;If the first information indicates that the first data reporting message is not the last data reporting message corresponding to the read request, then the value of the first field is the second value;如果所述第一信息指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第一取值。If the first information indicates that the first data reporting message is the last data reporting message corresponding to the read request, the value of the first field is the first value.
- 根据权利要求16所述的方法,其特征在于,如果所述读请求仅对应所述第一数据上报消息,则所述第一字段的取值为所述第一取值。The method according to claim 16, characterized in that if the read request only corresponds to the first data reporting message, the value of the first field is the first value.
- 根据权利要求16或17所述的方法,其特征在于,The method according to claim 16 or 17, characterized in that,如果所述读请求对应多个数据上报消息,且所述第一数据上报消息是所述多个数据上报消息中的最后一个数据上报消息,则所述第一字段的取值为所述第一取值;和/或If the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data reporting message among the multiple data reporting messages, the value of the first field is the first data reporting message. value; and/or如果所述读请求对应多个数据上报消息,且所述第一数据上报消息不是所述多个数据上报消息中的最后一个数据上报消息,则所述第一字段的取值为所述第二取值。If the read request corresponds to multiple data reporting messages, and the first data reporting message is not the last data reporting message among the multiple data reporting messages, the value of the first field is the second data reporting message. Take value.
- 根据权利要求12-18中任一项所述的方法,其特征在于,所述第一数据上报消息包括或者省略第二字段,所述第二字段用于承载所述第一信息。The method according to any one of claims 12 to 18, characterized in that the first data reporting message includes or omits a second field, and the second field is used to carry the first information.
- 根据权利要求19所述的方法,其特征在于,在所述第二字段的取值用于指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息的情况下,所述第一数据上报消息省略所述第二字段。The method according to claim 19, characterized in that when the value of the second field is used to indicate that the first data reporting message is the last data reporting message corresponding to the read request, the The first data reporting message omits the second field.
- 根据权利要求12-20中任一项所述的方法,其特征在于,在所述第一字段的取值为所述第一取值的情况下,所述第一数据上报消息省略所述第一字段。The method according to any one of claims 12 to 20, characterized in that, when the value of the first field is the first value, the first data reporting message omits the third value. One field.
- 根据权利要求12-21中任一项所述的方法,其特征在于,所述第一数据上报消息为包含属性数据报告和/或事件报告的数据上报消息,且所述属性数据报告和所述事件报告中的至少一个为非空数组。The method according to any one of claims 12-21, characterized in that the first data reporting message is a data reporting message including an attribute data report and/or an event report, and the attribute data report and the At least one of the event reports is a non-empty array.
- 根据权利要求12-22中任一项所述的方法,在所述客户端设备根据所述第一字段的取值确定是否向所述服务端设备发送状态响应之后,所述方法还包括:The method according to any one of claims 12-22, after the client device determines whether to send a status response to the server device according to the value of the first field, the method further includes:如果所述第一字段的取值为所述第一取值或者所述第一数据上报消息省略所述第一字段,所述客户端设备向所述服务端设备发送所述状态响应。If the value of the first field is the first value or the first data reporting message omits the first field, the client device sends the status response to the server device.
- 一种数据上报装置,其特征在于,所述装置配置于服务端设备,所述装置包括:A data reporting device, characterized in that the device is configured on a server device, and the device includes:接收模块,用于接收客户端设备发送的读请求;The receiving module is used to receive read requests sent by the client device;发送模块,用于向所述客户端设备发送第一数据上报消息,所述第一数据上报消息包括或者省略第一字段,所述第一字段具有第一取值或第二取值,所述第一取值用于指示所述客户端设备对所述第一数据上报消息进行响应,所述第二取值用于指示所述客户端设备不对所述第一数据上报消息进行响应;A sending module configured to send a first data reporting message to the client device, where the first data reporting message includes or omits a first field, the first field has a first value or a second value, and the The first value is used to instruct the client device to respond to the first data reporting message, and the second value is used to instruct the client device not to respond to the first data reporting message;其中,所述第一字段的取值基于第一信息确定,所述第一信息用于指示所述第一数据上报消息是否为所述读请求对应的最后一个数据上报消息;或者,所述第一字段的取值为所述第二取值;或者,所述第一字段的取值为所述第一取值。Wherein, the value of the first field is determined based on first information, and the first information is used to indicate whether the first data reporting message is the last data reporting message corresponding to the read request; or, the third The value of a field is the second value; or the value of the first field is the first value.
- 根据权利要求24所述的装置,其特征在于,The device according to claim 24, characterized in that:如果所述第一信息指示所述第一数据上报消息不是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第一取值;If the first information indicates that the first data reporting message is not the last data reporting message corresponding to the read request, then the value of the first field is the first value;如果所述第一信息指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第二取值。If the first information indicates that the first data reporting message is the last data reporting message corresponding to the read request, the value of the first field is the second value.
- 根据权利要求25所述的装置,其特征在于,所述装置还包括:The device of claim 25, further comprising:第一设置模块,用于如果所述读请求仅对应所述第一数据上报消息,则将所述第一字段的取值设置为所述第二取值。A first setting module configured to set the value of the first field to the second value if the read request only corresponds to the first data reporting message.
- 根据权利要求25或26所述的装置,其特征在于,所述装置还包括:The device according to claim 25 or 26, characterized in that the device further includes:第二设置模块,用于如果所述读请求对应多个数据上报消息,且所述第一数据上报消息是所述多个数据上报消息中的最后一个数据上报消息,则将所述第一字段的取值设置为所述第二取值;和/或The second setting module is configured to, if the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data reporting message among the multiple data reporting messages, then set the first field to The value of is set to the second value; and/or第三设置模块,用于如果所述读请求对应多个数据上报消息,且所述第一数据上报消息不是所述多个数据上报消息中的最后一个数据上报消息,则将所述第一字段的取值设置为所述第一取值。A third setting module configured to, if the read request corresponds to multiple data reporting messages, and the first data reporting message is not the last data reporting message among the multiple data reporting messages, set the first field to The value of is set to the first value.
- 根据权利要求24所述的装置,其特征在于,The device according to claim 24, characterized in that:如果所述第一信息指示所述第一数据上报消息不是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第二取值;If the first information indicates that the first data reporting message is not the last data reporting message corresponding to the read request, then the value of the first field is the second value;如果所述第一信息指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第一取值。If the first information indicates that the first data reporting message is the last data reporting message corresponding to the read request, the value of the first field is the first value.
- 根据权利要求28所述的装置,其特征在于,所述装置还包括:The device of claim 28, further comprising:第四设置模块,用于如果所述读请求仅对应所述第一数据上报消息,则将所述第一字段的取值设置为所述第一取值。A fourth setting module is configured to set the value of the first field to the first value if the read request only corresponds to the first data reporting message.
- 根据权利要求28或29所述的装置,其特征在于,所述装置还包括:The device according to claim 28 or 29, characterized in that the device further includes:第五设置模块,用于如果所述读请求对应多个数据上报消息,且所述第一数据上报消息是所述多个数据上报消息中的最后一个数据上报消息,则将所述第一字段的取值设置为所述第一取值;和/或A fifth setting module, configured to set the first field to the last data reporting message if the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data reporting message among the multiple data reporting messages. The value of is set to the first value; and/or第六设置模块,用于如果所述读请求对应多个数据上报消息,且所述第一数据上报消息不是所述多个数据上报消息中的最后一个数据上报消息,则将所述第一字段的取值设置为所述第二取值。A sixth setting module, configured to change the first field if the read request corresponds to multiple data reporting messages and the first data reporting message is not the last data reporting message among the multiple data reporting messages. The value of is set to the second value.
- 根据权利要求24-30中任一项所述的装置,其特征在于,所述第一数据上报消息包括或者省略第二字段,所述第二字段用于承载所述第一信息。The device according to any one of claims 24 to 30, wherein the first data reporting message includes or omits a second field, and the second field is used to carry the first information.
- 根据权利要求31所述的装置,其特征在于,在所述第二字段的取值用于指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息的情况下,所述第一数据上报消息省略所述第二字段。The device according to claim 31, wherein when the value of the second field is used to indicate that the first data reporting message is the last data reporting message corresponding to the read request, the The first data reporting message omits the second field.
- 根据权利要求24-32中任一项所述的装置,其特征在于,在所述第一字段的取值为所述第一取值的情况下,所述第一数据上报消息省略所述第一字段。The device according to any one of claims 24-32, characterized in that, when the value of the first field is the first value, the first data reporting message omits the third value. One field.
- 根据权利要求24-33中任一项所述的装置,其特征在于,所述第一数据上报消息为包含属性数据报告和/或事件报告的数据上报消息,且所述属性数据报告和所述事件报告中的至少一个为非空数组。The device according to any one of claims 24-33, wherein the first data reporting message is a data reporting message including an attribute data report and/or an event report, and the attribute data report and the At least one of the event reports is a non-empty array.
- 一种数据上报装置,其特征在于,所述装置配置于客户端设备,所述装置包括:A data reporting device, characterized in that the device is configured on a client device, and the device includes:第一发送模块,用于向服务端设备发送读请求;The first sending module is used to send a read request to the server device;接收模块,用于接收所述服务端设备发送的第一数据上报消息,所述第一数据上报消息包括或者省略第一字段,所述第一字段具有第一取值或第二取值,所述第一取值用于指示所述客户端设备对所述第一数据上报消息进行响应,所述第二取值用于指示所述客户端设备不对所述第一数据上报消息进行响应;A receiving module configured to receive a first data reporting message sent by the server device. The first data reporting message includes or omits a first field, and the first field has a first value or a second value, so The first value is used to instruct the client device to respond to the first data reporting message, and the second value is used to instruct the client device not to respond to the first data reporting message;确定模块,用于根据所述第一字段的取值确定是否向所述服务端设备发送状态响应;A determination module configured to determine whether to send a status response to the server device according to the value of the first field;其中,所述第一字段的取值基于第一信息确定,所述第一信息用于指示所述第一数据上报消息是否为所述读请求对应的最后一个数据上报消息;或者,所述第一字段的取值为所述第二取值;或者,所述第一字段的取值为所述第一取值。Wherein, the value of the first field is determined based on first information, and the first information is used to indicate whether the first data reporting message is the last data reporting message corresponding to the read request; or, the third The value of a field is the second value; or the value of the first field is the first value.
- 根据权利要求35所述的装置,其特征在于,The device according to claim 35, characterized in that:如果所述第一信息指示所述第一数据上报消息不是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第一取值;If the first information indicates that the first data reporting message is not the last data reporting message corresponding to the read request, then the value of the first field is the first value;如果所述第一信息指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第二取值。If the first information indicates that the first data reporting message is the last data reporting message corresponding to the read request, the value of the first field is the second value.
- 根据权利要求36所述的装置,其特征在于,如果所述读请求仅对应所述第一数据上报消息,则所述第一字段的取值为所述第二取值。The device according to claim 36, characterized in that if the read request only corresponds to the first data reporting message, the value of the first field is the second value.
- 根据权利要求36或37所述的装置,其特征在于,The device according to claim 36 or 37, characterized in that,如果所述读请求对应多个数据上报消息,且所述第一数据上报消息是所述多个数据上报消息中的最后一个数据上报消息,则所述第一字段的取值为所述第二取值;和/或If the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data reporting message among the multiple data reporting messages, the value of the first field is the second data reporting message. value; and/or如果所述读请求对应多个数据上报消息,且所述第一数据上报消息不是所述多个数据上报消息中的最后一个数据上报消息,则所述第一字段的取值为所述第一取值。If the read request corresponds to multiple data reporting messages, and the first data reporting message is not the last data reporting message among the multiple data reporting messages, the value of the first field is the first data reporting message. Take value.
- 根据权利要求35所述的装置,其特征在于,The device according to claim 35, characterized in that:如果所述第一信息指示所述第一数据上报消息不是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第二取值;If the first information indicates that the first data reporting message is not the last data reporting message corresponding to the read request, then the value of the first field is the second value;如果所述第一信息指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息,则所述第一字段的取值为所述第一取值。If the first information indicates that the first data reporting message is the last data reporting message corresponding to the read request, the value of the first field is the first value.
- 根据权利要求39所述的装置,其特征在于,如果所述读请求仅对应所述第一数据上报消息,则所述第一字段的取值为所述第一取值。The device according to claim 39, characterized in that if the read request only corresponds to the first data reporting message, the value of the first field is the first value.
- 根据权利要求39或40所述的装置,其特征在于,The device according to claim 39 or 40, characterized in that,如果所述读请求对应多个数据上报消息,且所述第一数据上报消息是所述多个数据上报消息中的最后一个数据上报消息,则所述第一字段的取值为所述第一取值;和/或If the read request corresponds to multiple data reporting messages, and the first data reporting message is the last data reporting message among the multiple data reporting messages, the value of the first field is the first data reporting message. value; and/or如果所述读请求对应多个数据上报消息,且所述第一数据上报消息不是所述多个数据上报消息中的最后一个数据上报消息,则所述第一字段的取值为所述第二取值。If the read request corresponds to multiple data reporting messages, and the first data reporting message is not the last data reporting message among the multiple data reporting messages, the value of the first field is the second data reporting message. Take value.
- 根据权利要求35-41中任一项所述的装置,其特征在于,所述第一数据上报消息包括或者省略第二字段,所述第二字段用于承载所述第一信息。The device according to any one of claims 35-41, wherein the first data reporting message includes or omits a second field, and the second field is used to carry the first information.
- 根据权利要求42所述的装置,其特征在于,在所述第二字段的取值用于指示所述第一数据上报消息是所述读请求对应的最后一个数据上报消息的情况下,所述第一数据上报消息省略所述第二字段。The device according to claim 42, wherein when the value of the second field is used to indicate that the first data reporting message is the last data reporting message corresponding to the read request, the The first data reporting message omits the second field.
- 根据权利要求35-43中任一项所述的装置,其特征在于,在所述第一字段的取值为所述第一取值的情况下,所述第一数据上报消息省略所述第一字段。The device according to any one of claims 35 to 43, characterized in that, when the value of the first field is the first value, the first data reporting message omits the third value. One field.
- 根据权利要求35-44中任一项所述的装置,其特征在于,所述第一数据上报消息为包含属性数据报告和/或事件报告的数据上报消息,且所述属性数据报告和所述事件报告中的至少一个为非空数组。The device according to any one of claims 35-44, wherein the first data reporting message is a data reporting message including an attribute data report and/or an event report, and the attribute data report and the At least one of the event reports is a non-empty array.
- 根据权利要求35-45中任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 35-45, characterized in that the device further includes:第二发送模块,用于如果所述第一字段的取值为所述第一取值或者所述第一数据上报消息省略所述第一字段,向所述服务端设备发送所述状态响应。The second sending module is configured to send the status response to the server device if the value of the first field is the first value or the first data reporting message omits the first field.
- 一种服务端设备,其特征在于,包括存储器和处理器,所述存储器用于存储程序,所述处理器用于调用所述存储器中的程序,以使所述服务端设备执行如权利要求1-11中任一项所述的方法。A server device, characterized in that it includes a memory and a processor, the memory is used to store programs, and the processor is used to call the program in the memory, so that the server device executes the instructions of claim 1- The method described in any one of 11.
- 一种客户端设备,其特征在于,包括存储器和处理器,所述存储器用于存储程序,所述处理器用于调用所述存储器中的程序,以使所述客户端设备执行如权利要求12-23中任一项所述的方法。A client device, characterized in that it includes a memory and a processor, the memory is used to store a program, and the processor is used to call the program in the memory, so that the client device executes the method of claim 12- The method described in any one of 23.
- 一种装置,其特征在于,包括处理器,用于从存储器中调用程序,以使所述装置执行如权利要求1-23中任一项所述的方法。A device, characterized by comprising a processor for calling a program from a memory, so that the device executes the method according to any one of claims 1-23.
- 一种芯片,其特征在于,包括处理器,用于从存储器调用程序,使得安装有所述芯片的设备执行如权利要求1-23中任一项所述的方法。A chip, characterized in that it includes a processor for calling a program from a memory, so that a device installed with the chip executes the method according to any one of claims 1-23.
- 一种计算机可读存储介质,其特征在于,其上存储有程序,所述程序使得计算机执行如权利要求1-23中任一项所述的方法。A computer-readable storage medium, characterized in that a program is stored thereon, and the program causes the computer to execute the method according to any one of claims 1-23.
- 一种计算机程序产品,其特征在于,包括程序,所述程序使得计算机执行如权利要求1-23中任一项所述的方法。A computer program product, characterized by comprising a program that causes a computer to execute the method according to any one of claims 1-23.
- 一种计算机程序,其特征在于,所述计算机程序使得计算机执行如权利要求1-23中任一项所述的方法。A computer program, characterized in that the computer program causes the computer to perform the method according to any one of claims 1-23.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2022/110390 WO2024026802A1 (en) | 2022-08-04 | 2022-08-04 | Data reporting method and apparatus, chip, storage medium, and computer program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2022/110390 WO2024026802A1 (en) | 2022-08-04 | 2022-08-04 | Data reporting method and apparatus, chip, storage medium, and computer program |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024026802A1 true WO2024026802A1 (en) | 2024-02-08 |
Family
ID=89848351
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/110390 WO2024026802A1 (en) | 2022-08-04 | 2022-08-04 | Data reporting method and apparatus, chip, storage medium, and computer program |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2024026802A1 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090070336A1 (en) * | 2007-09-07 | 2009-03-12 | Sap Ag | Method and system for managing transmitted requests |
CN101997851A (en) * | 2009-08-17 | 2011-03-30 | 中兴通讯股份有限公司 | Method for accessing directory of server side, client side, server side and system |
CN111523066A (en) * | 2019-02-02 | 2020-08-11 | 阿里巴巴集团控股有限公司 | Data acquisition method and device |
WO2021068171A1 (en) * | 2019-10-10 | 2021-04-15 | Oppo广东移动通信有限公司 | Method for sharing server, client, and cloud platform |
-
2022
- 2022-08-04 WO PCT/CN2022/110390 patent/WO2024026802A1/en unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090070336A1 (en) * | 2007-09-07 | 2009-03-12 | Sap Ag | Method and system for managing transmitted requests |
CN101997851A (en) * | 2009-08-17 | 2011-03-30 | 中兴通讯股份有限公司 | Method for accessing directory of server side, client side, server side and system |
CN111523066A (en) * | 2019-02-02 | 2020-08-11 | 阿里巴巴集团控股有限公司 | Data acquisition method and device |
WO2021068171A1 (en) * | 2019-10-10 | 2021-04-15 | Oppo广东移动通信有限公司 | Method for sharing server, client, and cloud platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11711682B2 (en) | Cross-resource subscription for M2M service layer | |
US11750702B2 (en) | Subscription and notification service | |
US11997160B2 (en) | Lightweight IoT information model | |
WO2023284732A1 (en) | Linux kernel-based protocol stack data transmission method and apparatus | |
JP3661936B2 (en) | Information processing apparatus and method, recording medium, and program | |
WO2021104103A1 (en) | Network controller framework and data processing method | |
WO2020038443A1 (en) | Bridging communication method and device | |
US20230262141A1 (en) | Service layer message templates in a communications network | |
US10536560B2 (en) | System and method for implementing augmented object members for remote procedure call | |
WO2024026802A1 (en) | Data reporting method and apparatus, chip, storage medium, and computer program | |
CN111201804A (en) | Method for enabling data continuity services | |
CN113992740B (en) | Middleware based on autonomous control and data transmission method | |
US20220052902A1 (en) | Method for managing remote device through management device | |
GB2617297A (en) | Bluetooth connection method and system, intelligent terminal and computer storage medium | |
WO2024130729A1 (en) | Information transmission method, client device, and cloud platform | |
WO2024050832A1 (en) | Command transmission method and apparatus, chip, storage medium and computer program | |
WO2024152326A1 (en) | Method for determining connection state between devices, and client device, and serving-end device | |
KR101928368B1 (en) | Resource sharing method between devices | |
WO2024187299A1 (en) | Method and apparatus for information push, communication device, chip, and storage medium | |
WO2024183048A1 (en) | Connection establishment method and apparatus | |
WO2024046143A1 (en) | Configuration method, medium, and electronic device | |
WO2023115554A1 (en) | Bluetooth ble-based remote secure networking apparatus and method, computer device, and storage medium | |
WO2005094194A2 (en) | Data processing method for application layer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22953611 Country of ref document: EP Kind code of ref document: A1 |