Nothing Special   »   [go: up one dir, main page]

WO2022165765A1 - Message exchange method and apparatus in internet of things, and computer device and storage medium - Google Patents

Message exchange method and apparatus in internet of things, and computer device and storage medium Download PDF

Info

Publication number
WO2022165765A1
WO2022165765A1 PCT/CN2021/075614 CN2021075614W WO2022165765A1 WO 2022165765 A1 WO2022165765 A1 WO 2022165765A1 CN 2021075614 W CN2021075614 W CN 2021075614W WO 2022165765 A1 WO2022165765 A1 WO 2022165765A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
attribute
model
type
indicate
Prior art date
Application number
PCT/CN2021/075614
Other languages
French (fr)
Chinese (zh)
Inventor
张军
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to CN202180084322.7A priority Critical patent/CN116615924A/en
Priority to PCT/CN2021/075614 priority patent/WO2022165765A1/en
Publication of WO2022165765A1 publication Critical patent/WO2022165765A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • the present application relates to the technical field of the Internet of Things, and in particular, to a message interaction method, apparatus, computer equipment and storage medium in the Internet of Things.
  • IOT Internet of Things
  • the Bluetooth SIG defines a BLE Mesh model for IoT devices, in which each application function and feature corresponds to a BLE Mesh model.
  • Different IoT devices can implement different BLE Mesh models, and interact with other IoT devices based on the BLE Mesh model to provide different application functions and features.
  • BLE Mesh models need to be implemented in BLE Mesh, which leads to high complexity of message interaction between IoT devices and affects the efficiency of message interaction in BLE Mesh. .
  • Embodiments of the present application provide a message interaction method, apparatus, computer device, and storage medium in the Internet of Things.
  • the technical solution is as follows:
  • an embodiment of the present application provides a message interaction method in the Internet of Things, the method is executed by a first device in the Internet of Things, and the method includes:
  • the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
  • an embodiment of the present application provides a message interaction method in the Internet of Things, the method is executed by a second device in the Internet of Things, and the method includes:
  • the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
  • an embodiment of the present application provides a message interaction device in the Internet of Things, the device is used in a first device in the Internet of Things, and the device includes:
  • a first message receiving module configured to receive the first model message sent by the second device
  • the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
  • an embodiment of the present application provides a message interaction device in the Internet of Things, the device is used in a second device in the Internet of Things, and the device includes:
  • a first message sending module configured to send a first model message to the first device
  • the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
  • an embodiment of the present application provides a computer device, the computer device includes a processor, a memory, and a transceiver, the memory stores a computer program, and the computer program is configured to be executed by the processor to Implement the above message interaction method in the Internet of Things.
  • an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is loaded and executed by a processor to implement the above-mentioned message interaction method in the Internet of Things.
  • a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned message interaction method in the Internet of Things.
  • the Internet of Things devices exchange information through model messages that support one or more application functions.
  • the model message carries the attribute type to indicate the application function corresponding to the current message. That is, for a variety of different application functions, send The end and the receiving end only need to be accurately distinguished by the attribute type in the model message, so that the same model message can support a variety of different application functions.
  • An application function sets a BLE Mesh model separately, thereby reducing the complexity of model message interaction of devices in BLE Mesh, thereby improving the efficiency and resource utilization of message interaction in BLE Mesh.
  • FIG. 1 is a schematic diagram of a network architecture of the Internet of Things provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a message interaction involved in the embodiment shown in FIG. 1;
  • FIG. 3 is a flowchart of a message interaction method in the Internet of Things provided by an embodiment of the present application.
  • FIG. 5 is a flowchart of a message interaction method in the Internet of Things provided by an embodiment of the present application.
  • FIG. 6 is a message interaction architecture diagram in the Internet of Things provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of an attribute reading process involved in the embodiment shown in FIG. 6;
  • FIG. 8 is a schematic diagram of an interaction flow for updating attribute information involved in the embodiment shown in FIG. 6;
  • FIG. 9 is a schematic diagram of an interaction flow of an attribute status notification message involved in the embodiment shown in FIG. 6;
  • FIG. 10 is a block diagram of a file generation device in the Internet of Things provided by an embodiment of the present application.
  • FIG. 11 is a block diagram of a file generation device in the Internet of Things provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • the network architecture and service scenarios described in the embodiments of the present application are for the purpose of illustrating the technical solutions of the embodiments of the present application more clearly, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application.
  • the evolution of new business scenarios and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
  • FIG. 1 shows a schematic diagram of a network architecture of the Internet of Things provided by an embodiment of the present application.
  • the network architecture of the Internet of Things may include: a server device 110 and a client device 120;
  • the server device 110 may be a device for providing Internet of Things functional services.
  • the server device 110 may be a smart home device, for example, a smart lamp, a smart TV, a smart air conditioner, a smart refrigerator, a smart microwave oven, a smart rice cooker, a cleaning robot, and the like.
  • the server device 110 may be an industrial production device such as a lathe, an industrial robot, a solar panel, a wind turbine, and the like.
  • the server device 110 may be a commercial service device, such as a vending machine or the like.
  • the server device 110 may be an intelligent monitoring device, such as a monitoring camera, an infrared sensor, a sound sensor, a temperature sensor, and the like.
  • the client device 120 is a device controlled or managed by the server device 110.
  • the management device 120 may be a mobile management terminal such as a smart phone and a tablet computer, or the management device 120 may also be a personal computer, such as a desktop computer, a portable Computers, personal workstations, etc.
  • the server device 110 and the client device 120 can be connected through BLE Mesh networking.
  • the network architecture of the Internet of Things further includes a cloud platform 130 .
  • the cloud platform 130 is a cloud service platform deployed on the network side.
  • the cloud platform 130 may be a cloud service platform implemented based on a single or multiple servers.
  • the cloud platform 130 may be connected to the server device 110 and the client device 120 through a wired or wireless network, respectively.
  • the BLE Mesh model includes a client model (ie, Server Model, hereinafter referred to as client) and a server model (ie, Client Model, hereinafter referred to as server).
  • client ie, Server Model
  • server ie, Client Model, hereinafter referred to as server
  • the client and server interact by sending BLE Mesh messages.
  • BLE Mesh defines the switch model, the lighting as the server implements the On/Off Server Model, and the devices that control the lighting (such as mobile APPs, lighting switches, etc.) implement the On/Off Client Model as the client.
  • Client model Define the BLE Mesh model messages that can be sent or received by devices implementing this client model.
  • the client obtains the status of the server or operates the functions of the server by sending the corresponding model message.
  • the client model (On/Off Client Model) that supports the switch function sends a GET On/Off Server Model message to the server model (On/Off Server Model) that supports the switch function to get the status of the switch, the On/Off Client Model Send the SET On/Off Server Model message to the On/Off Server Model to set the switch on or off.
  • the On/Off Server Model Define the state and device functions of the device implementing this server model, as well as the BLE Mesh model messages that can be sent or received by the device implementing this server model. For example, when the switch state changes, the On/Off Server Model sends an On/Off Server Model STATUS message to the On/Off Client Model to notify the switch state change.
  • FIG. 2 shows a schematic diagram of a message interaction involved in the implementation of the present application.
  • Figure 2 is an example of the interaction of On/Off model messages between the switch that implements the On/Off Client Model and the lamp that implements the On/Off Server Model.
  • Table 1 shows the message structure of the BLE Mesh model in the above scheme.
  • the message of each BLE Mesh model consists of opcodes and application parameters.
  • the opcode size is 1, 2 or 3 bytes, and the application parameters cannot exceed 379 words. Festival.
  • the Bluetooth SIG currently defines dozens of BLE Mesh models, each of which defines different message types.
  • Table 2 shows the model message types defined by the On/Off Server Model.
  • the BLE Mesh standard defines different BLE Mesh client models and server models for different application functions and characteristics of IoT devices.
  • IoT devices need to implement corresponding models according to their functional characteristics, and each model defines and implements this model. The state of the device and device capabilities, and the model messages this model supports to send or receive.
  • IoT devices need to implement different BLE Mesh models and model messages dedicated to different models.
  • an IoT device implements multiple models and dedicated messages for different models, it undoubtedly increases the complexity of device processing. It also increases the overhead of additional computing and storage resources, especially for resource-constrained IoT devices, the above problems are particularly prominent, and the technical feasibility of implementation is low.
  • FIG. 3 shows a flowchart of a message interaction method in the Internet of Things provided by an embodiment of the present application, and the method can be executed interactively by a first device and a second device.
  • the first device and the second device may be the server device 110 and the client device 120 in the system shown in FIG. 1 above.
  • the method may include the following steps:
  • Step 301 the first device and the second device are networked through BLE Mesh.
  • Step 302 the second device sends a first model message to the first device; correspondingly, the first device receives the first model message sent by the second device.
  • the above-mentioned first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
  • the second device sends a first model message to the first device based on the BLE Mesh model, and correspondingly, the first device receives the first model message sent by the second device based on the BLE Mesh model.
  • the above target application function is any one of at least one application function supported by the BLE Mesh model.
  • IoT devices exchange information through model messages that support one or more application functions, and attribute types are carried in the model messages to indicate the application functions corresponding to the current message.
  • the sender and the receiver can accurately distinguish only by the attribute type in the model message, so that the same model message can support a variety of different application functions.
  • the solutions shown in the embodiments of this application perform information exchange through model messages that support one or more different application functions, which reduces the overhead of computing and storage resources of IoT devices, thereby improving the message flow in BLE Mesh. Interaction resource utilization.
  • FIG. 4 shows a message interaction architecture diagram in the Internet of Things provided by an embodiment of the present application.
  • the client device 41 and the server device 42 are respectively constructed with BLE Mesh models, and the BLE Mesh models support a variety of application functions (shown as 3 in FIG. 4 ), each application function has a corresponding property type.
  • the model message sent by the sending side contains the attribute type corresponding to a certain application function.
  • the model can be judged by the attribute type. Which application function the message corresponds to, and based on the type attribute, perform subsequent operations on the corresponding application function.
  • the above technical solution of this application proposes a method for message interaction between BLE Mesh devices.
  • the model provides a general model message type, so that even if the IoT device supports different application functions , and there is no need to implement different models and model message types specific to different models.
  • FIG. 5 shows a flowchart of a message interaction method in the Internet of Things provided by an embodiment of the present application.
  • the method can be executed interactively by a first device and a second device. They are connected through BLE Mesh.
  • the first device and the second device may be the server device 110 and the client device 120 in the system shown in FIG. 1 above.
  • the method may include the following steps:
  • Step 501 the first device and the second device are networked through BLE Mesh.
  • the first device and the second device are respectively a server device and a client device, and both the server device and the client device support the BLE function, and the server device and the client device are pre-connected through BLE Mesh Network.
  • Step 502 the second device sends a first model message to the first device based on the BLE Mesh model; correspondingly, the first device receives the first model message sent by the second device based on the BLE Mesh model.
  • the above-mentioned first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function; the target application function is any one of at least one application function supported by the BLE Mesh model.
  • the BLE Mesh model can be divided into a server model and a client model, and the server model and the client model can be respectively set in the first device and the second device.
  • the BLE Mesh model can support a single application function or indicate multiple application functions.
  • the server devices in the first device and the second device are lighting devices and support the lighting switch function
  • the above BLE Mesh model can support the lighting switch function
  • the BLE Mesh model is provided with lighting corresponding to the lighting switch function The property type of the switch.
  • the above BLE Mesh model can simultaneously support the lighting switch function, lighting Mode adjustment function and brightness adjustment function, and the BLE Mesh model corresponding to the above three functions are respectively set with the attribute type of the lighting switch, the attribute type of the lighting mode, and the attribute type of the brightness.
  • the first model message further includes a first operation code, where the first operation code is used to indicate a message type of the first model message.
  • the first model message further includes a first operation code, and the first device receives the first model message Afterwards, how to perform subsequent processing based on the first model message may be determined through the first operation code in the first model message.
  • the message type of the first model message includes: read property message, update property message or property state notification message;
  • the read attribute message is used to read data related to the attribute type from the first device
  • the update attribute message is used to instruct the first device to update the data related to the attribute type
  • the attribute status notification message is used to notify the first device of data related to the attribute type.
  • the message type of the first model message indicated by the first operation code may be any one of a read attribute message, an attribute update message, or an attribute status notification message.
  • the read attribute message is usually used for the client device to view the current parameter/status of a function in the server device.
  • the user checks the current ON state of the desk lamp (server device) in the mobile phone (client device).
  • the mobile phone can send a read attribute message to the desk lamp to read the current ON state/brightness value of the desk lamp.
  • the above update attribute message is usually used in the scenario where the client device controls the server device to change the current parameter/state of a certain function.
  • the mobile phone can send an update attribute message to the desk lamp to Instruct the desk lamp to adjust the brightness.
  • the above property status notification message is usually used in the scenario where the server device actively reports the current parameter/status of a certain function to the client device. For example, after the user adjusts the brightness of the desk lamp through the mobile phone, the desk lamp can return the property status notification message to the mobile phone. to notify the phone of the adjusted brightness.
  • the first model message further includes a transaction identifier, where the transaction identifier is used to indicate that the corresponding message is a retransmitted message or a new message.
  • a model message in order to improve the successful reception of the message by the receiving end, can be sent multiple times.
  • the second device when it sends the first model message, it may carry a transaction indication in the first model message to indicate whether the current model message is a retransmitted message or a newly transmitted message, and the first device performs processing based on the transaction identifier indication For example, when the transaction identifier indicates that the first model message is a retransmission message, the first device may combine the first model message with a previously received message.
  • the first model message further includes an attribute parameter, where the attribute parameter is used to indicate a parameter of the attribute type, or the attribute parameter is used to indicate an attribute value of the attribute type.
  • the first model message when the first model message needs to indicate a parameter/attribute value (eg, a state value) corresponding to the attribute type, the first model message may also carry the attribute parameter corresponding to the attribute type.
  • a parameter/attribute value eg, a state value
  • the first model message when the message type of the first model message is an attribute update message or an attribute status notification message, the first model message further includes the attribute parameter.
  • the parameter/attribute value corresponding to the attribute type needs to be indicated.
  • the mobile phone can send an update attribute message to the desk lamp.
  • the update attribute message also includes a target brightness for indicating adjustment or adjustment. Difference property parameter.
  • the user checks the current brightness of the table lamp on the mobile phone, or, after the user adjusts the brightness of the table lamp through the mobile phone, the table lamp can send a property status notification message to the mobile phone, so that the current brightness of the table lamp can be accurately displayed in the mobile phone interface.
  • the attribute parameter indicating the current brightness needs to be carried in the attribute status notification message.
  • Step 503 the first device performs a related operation corresponding to the attribute type according to the first model message.
  • the first device may determine a corresponding application function according to the attribute type, and perform operations related to the first model message according to the determined application function.
  • the first device queries the attribute parameter corresponding to the application function to be read according to the attribute type in the read attribute message, and the queried attribute parameter is carried in the attribute status notification message back to the second device.
  • the first device determines the application function to be updated according to the attribute type in the attribute update message, and updates the attribute parameter corresponding to the determined application function.
  • a second model message is sent to the second device; the second model message includes a second operation code; the first model message The second operation code is used to indicate that the message type of the second model message is an attribute status notification confirmation message.
  • the first device may feed back to the second device whether the attribute state notification message is received, and at this time, the first device may send an attribute state notification confirmation message to the second device.
  • Table 3 is a message structure of a BLE Mesh model proposed by this application, including: an operation code, a transaction identifier, an attribute type, and an attribute parameter.
  • Opcode used to indicate the type of BLE Mesh message, including read attribute message, update attribute message, attribute status notification message and attribute status notification confirmation message;
  • Transaction ID The message ID is used to indicate whether the message is a retransmitted message or a new message.
  • the transaction ID of the retransmitted message and the recently sent message is the same, and the transaction ID of the new message and the recently sent message is different. with the message incrementing;
  • Attribute type indicates the type of attribute, such as switch attribute, target temperature attribute, brightness attribute, etc.
  • Attribute parameter (AttrParameter): The parameter representing the attribute type or the value of the attribute type, for example, the value of the switch attribute is "on” or "off", the value of the target temperature attribute is 25, and the value of the brightness attribute is 100.
  • Opcode 1-3 Opcode to indicate the type of BLE Mesh message TID 1 Transaction ID, i.e. message ID, used to indicate retransmission or new message AttrType 2 property type, indicating the type of property AttrParameter n Attribute parameter, representing the parameter of the attribute type or the value of the attribute type
  • the attribute type and attribute parameter fields in the above fields are optional.
  • the read attribute message does not need to indicate the attribute parameter
  • the update attribute message can indicate the attribute type and attribute parameter that need to be updated.
  • the second model message includes a transaction identifier, where the transaction identifier is used to indicate that the corresponding message is a retransmitted message or a new message.
  • the second model message may also carry a transaction identifier.
  • the attribute type is included in the second model message.
  • the attribute status notification confirmation message may also include the above attribute type, so that the second device can judge by the attribute type that the attribute status notification confirmation message is a confirmation corresponding to the first model message feedback.
  • the attribute status notification confirmation message may not include the above attribute type.
  • the second model message further includes an attribute parameter, where the attribute parameter is used to indicate a parameter of the attribute type, or the attribute parameter is used to indicate an attribute value of the attribute type.
  • the attribute status notification confirmation message when the attribute status notification confirmation message includes an attribute type, the attribute status notification confirmation message may also include an attribute parameter, so that the second device can determine whether the first device has correctly received the first device through the attribute parameter. Model message.
  • the second device when the message type of the first model message is an attribute status notification message, and a confirmation indication for indicating feedback of an attribute status notification confirmation message is received, the second device is sent to the second device. model message;
  • the second model message is sent to the second device when the message type of the first model message is an attribute state notification message, and no confirmation indication is received for indicating whether to feed back an attribute state notification confirmation message.
  • the above-mentioned second device may send a confirmation indication to the first device.
  • the confirmation indication may be sent by the second device to the first device through an independent message, or the confirmation indication may also be carried in the attribute status notification message.
  • a second device such as a server device
  • a first device such as a client device
  • the client device may send the property status notification confirmation message, and if the indication does not require client confirmation, or, if no indication is made, the client device may not send the property status notification Confirmation message.
  • IoT devices exchange information through model messages that support one or more application functions, and attribute types are carried in the model messages to indicate the application functions corresponding to the current message.
  • the sender and the receiver can accurately distinguish only by the attribute type in the model message, so that the same model message can support a variety of different application functions.
  • the solutions shown in the embodiments of this application perform information exchange through model messages that support one or more different application functions, which reduces the overhead of computing and storage resources of IoT devices, thereby improving the message flow in BLE Mesh. Interaction resource utilization.
  • FIG. 6 shows an embodiment of the present application Provides a message interaction architecture diagram in the Internet of Things.
  • the mobile phone 61 and the air conditioner 62 have BLE Mesh models built respectively, and the BLE Mesh model supports a variety of air conditioning functions (shown in Figure 6 are the three functions of switch function, temperature adjustment function, and wind adjustment function), Each application function has a corresponding attribute type (ie switch attribute, temperature attribute and wind attribute).
  • the model message sent by the sending side includes the attribute type (such as a switch attribute) corresponding to a certain application function.
  • the attribute type can be used to determine the The model message corresponds to the switch function, and based on the type attribute, the corresponding switch function performs subsequent operations such as turning on/off the air conditioner.
  • FIG. 7 is a schematic diagram of an attribute reading process involved in an embodiment of the present application.
  • the attribute reading process is as follows:
  • the mobile phone sends a read attribute message to the air conditioner, and the read attribute message includes an operation code (indicating that the message type is a read attribute message), a transaction identifier, and an attribute type (for example, it can indicate a switch attribute, a temperature attribute, or a wind attribute) .
  • an operation code indicating that the message type is a read attribute message
  • a transaction identifier for example, it can indicate a switch attribute, a temperature attribute, or a wind attribute
  • Table 4 is an example of the read attribute message.
  • Opcode TID AttrType 0xD2A801 0x01 0x09F0 read attribute message Transaction ID
  • the read attribute type for example, 0x09F0 represents the current temperature attribute
  • the air conditioner returns an attribute status notification message to the mobile phone, and the attribute status notification message includes an operation code (indicating that the message type is an attribute status notification message), a transaction identifier, an attribute type, and an attribute parameter (which can indicate the opening state corresponding to the attribute type) , temperature value or wind level).
  • Table 5 is an example of the attribute status notification message.
  • the transaction identifier of the above message may be the transaction identifier of the read attribute message, indicating that the message is a response message of the read attribute message.
  • FIG. 8 is a schematic diagram of an interaction flow for updating attribute information involved in an embodiment of the present application.
  • the update attribute information exchange process is as follows:
  • the mobile phone sends an update attribute message to the air conditioner, and the update attribute message includes an operation code (indicating that the message type is an update attribute message), a transaction identifier, an attribute type (for example, it can indicate a switch attribute, a temperature attribute or a wind attribute), and an attribute Parameters (may indicate updated lighting status, temperature value or wind level).
  • an operation code indicating that the message type is an update attribute message
  • a transaction identifier for example, it can indicate a switch attribute, a temperature attribute or a wind attribute
  • an attribute type for example, it can indicate a switch attribute, a temperature attribute or a wind attribute
  • an attribute Parameters may indicate updated lighting status, temperature value or wind level
  • Table 6 is an example of the update attribute message.
  • the air conditioner returns an attribute status notification message to the mobile phone, and the attribute status notification message includes an operation code (indicating that the message type is an attribute status notification message), a transaction identifier, an attribute type, and an attribute parameter (which can indicate the updated activation status, temperature value or wind level).
  • Table 7 is an example of the attribute status notification message.
  • the transaction identifier of the above message may be the transaction identifier of the update attribute message, indicating that the message is a response message of the update attribute message.
  • FIG. 9 is a schematic diagram of an interaction flow of an attribute status notification message involved in an embodiment of the present application.
  • the process is as follows:
  • the air conditioner sends an attribute status notification message to the mobile phone, where the attribute status notification message includes an operation code (indicating that the message type is an attribute status notification message), a transaction identifier, an attribute type, and an attribute parameter.
  • the attribute status notification message includes an operation code (indicating that the message type is an attribute status notification message), a transaction identifier, an attribute type, and an attribute parameter.
  • Table 8 is an example of the attribute status notification message.
  • the mobile phone sends an attribute status notification confirmation message to the air conditioner, where the attribute status notification confirmation message includes an operation code (indicating that the message type is an attribute status notification confirmation message) and a transaction identifier.
  • Table 9 is an example of the attribute status notification confirmation message.
  • the transaction identifier of the above message is the transaction identifier of the attribute status notification message, indicating that the message is a response message of the attribute status notification message.
  • FIG. 10 shows a block diagram of a message interaction apparatus in the Internet of Things provided by an embodiment of the present application.
  • the device is used in the first device in the Internet of Things.
  • the apparatus may include:
  • a first message receiving module 1001 configured to receive a first model message sent by a second device
  • the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
  • the first model message further includes a first opcode, where the first opcode is used to indicate a message type of the first model message.
  • the message type of the first model message includes: read property message, update property message or property state notification message;
  • the read attribute message is used to read data related to the attribute type from the first device
  • the update attribute message is used to instruct the first device to update the data related to the attribute type
  • the attribute status notification message is used to notify the first device of data related to the attribute type.
  • the first model message further includes a transaction identifier, where the transaction identifier is used to indicate that the corresponding message is a retransmitted message or a new message.
  • the first model message further includes an attribute parameter, where the attribute parameter is used to indicate a parameter of the attribute type, or the attribute parameter is used to indicate an attribute value of the attribute type.
  • the first model message when the message type of the first model message is an attribute update message or an attribute status notification message, the first model message further includes the attribute parameter.
  • the apparatus further includes:
  • a second message sending module configured to send a second model message to the second device when the message type of the first model message is an attribute state notification message; the second model message includes a second operation code; The second operation code is used to indicate that the message type of the second model message is an attribute status notification confirmation message.
  • the second model message includes a transaction identifier, and the transaction identifier is used to indicate that the corresponding message is a retransmitted message or a new message.
  • the attribute type is included in the second model message.
  • the second model message further includes an attribute parameter, where the attribute parameter is used to indicate a parameter of the attribute type, or the attribute parameter is used to indicate an attribute value of the attribute type.
  • the second message sending module is configured to:
  • the second model message is sent to the second device .
  • the first device and the second device are connected through BLE Mesh; the first message receiving module 1001 is configured to receive a message sent by the second device based on the BLE Mesh model the first model message.
  • the target application function is any one of at least one application function supported by the BLE Mesh model.
  • IoT devices exchange information through model messages that support one or more application functions, and attribute types are carried in the model messages to indicate the application functions corresponding to the current message.
  • the sender and the receiver can accurately distinguish only by the attribute type in the model message, so that the same model message can support a variety of different application functions.
  • the solutions shown in the embodiments of this application perform information exchange through model messages that support one or more different application functions, which reduces the overhead of computing and storage resources of IoT devices, thereby improving the message flow in BLE Mesh. Interaction resource utilization.
  • FIG. 11 shows a block diagram of a message interaction apparatus in the Internet of Things provided by an embodiment of the present application.
  • the device is used in a second device in the Internet of Things.
  • the apparatus may include:
  • a first message sending module 1101, configured to send a first model message to a first device
  • the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
  • the first model message further includes a first opcode, where the first opcode is used to indicate a message type of the first model message.
  • the message type of the first model message includes: read property message, update property message or property state notification message;
  • the read attribute message is used to read data related to the attribute type from the first device
  • the update attribute message is used to instruct the first device to update the data related to the attribute type
  • the attribute status notification message is used to notify the first device of data related to the attribute type.
  • the first model message further includes a transaction identifier, where the transaction identifier is used to indicate that the corresponding message is a retransmitted message or a new message.
  • the first model message further includes an attribute parameter, where the attribute parameter is used to indicate a parameter of the attribute type, or the attribute parameter is used to indicate an attribute value of the attribute type.
  • the first model message when the message type of the first model message is an attribute update message or an attribute status notification message, the first model message further includes the attribute parameter.
  • the apparatus further includes:
  • a second message receiving module configured to receive a second model message sent by the second device when the message type of the first model message is an attribute state notification message; the second model message includes a second operation code ; The second operation code is used to indicate that the message type of the second model message is an attribute status notification confirmation message.
  • the second model message includes a transaction identifier, and the transaction identifier is used to indicate that the corresponding message is a retransmitted message or a new message.
  • the attribute type is included in the second model message.
  • the second model message further includes an attribute parameter, where the attribute parameter is used to indicate a parameter of the attribute type, or the attribute parameter is used to indicate an attribute value of the attribute type.
  • the apparatus further includes:
  • the instruction sending module is configured to send a second confirmation indication to the first device, where the second confirmation indication is used to indicate whether to feed back an attribute status notification confirmation message.
  • the second device and the first device are connected through BLE Mesh, and the first message sending module is configured to send the first device based on the BLE Mesh model.
  • First model message is configured to send the first device based on the BLE Mesh model.
  • the target application function is any one of at least one application function supported by the BLE Mesh model.
  • IoT devices exchange information through model messages that support one or more application functions, and attribute types are carried in the model messages to indicate the application functions corresponding to the current message.
  • the sender and the receiver can accurately distinguish only by the attribute type in the model message, so that the same model message can support a variety of different application functions.
  • the solutions shown in the embodiments of this application perform information exchange through model messages that support one or more different application functions, which reduces the overhead of computing and storage resources of IoT devices, thereby improving the message flow in BLE Mesh. Interaction resource utilization.
  • the device provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated to different functional modules according to actual needs. That is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • FIG. 12 shows a schematic structural diagram of a computer device 1200 provided by an embodiment of the present application.
  • the computer device 1200 may include: a processor 1201 , a receiver 1202 , a transmitter 1203 , a memory 1204 and a bus 1205 .
  • the processor 1201 includes one or more processing cores, and the processor 1201 executes various functional applications and information processing by running software programs and modules.
  • the receiver 1202 and the transmitter 1203 may be implemented as a communication component, which may be a communication chip.
  • the communication chip may also be referred to as a transceiver.
  • the memory 1204 is connected to the processor 1201 through the bus 1205 .
  • the memory 1204 can be used to store a computer program, and the processor 1201 is used to execute the computer program to implement each step performed by the server device, configuration device, cloud platform or account server in the above method embodiments.
  • memory 1204 may be implemented by any type or combination of volatile or non-volatile storage devices including, but not limited to, magnetic or optical disks, electrically erasable programmable Read Only Memory, Erasable Programmable Read Only Memory, Static Anytime Access Memory, Read Only Memory, Magnetic Memory, Flash Memory, Programmable Read Only Memory.
  • the computer device includes a processor, a memory, and a transceiver (the transceiver may include a receiver for receiving information and a transmitter for transmitting information) and a transmitter.
  • the transceiver may include a receiver for receiving information and a transmitter for transmitting information
  • the transceiver configured to receive the first model message sent by the second device
  • the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
  • the processor and transceiver in the computer device involved in the embodiments of the present application may perform the steps performed by the first device in the method shown in FIG. 3 or FIG. No longer.
  • a transceiver for sending a first model message to the first device
  • the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
  • the processor and transceiver in the computer device involved in the embodiments of the present application may perform the steps performed by the second device in the method shown in FIG. 3 or FIG. No longer.
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is loaded and executed by a processor to implement the above-mentioned Internet of Things shown in FIG. 3 or FIG. 5 .
  • the various steps in the information exchange method are described in detail below.
  • the application also provides a computer program product or computer program, the computer program product or computer program comprising computer instructions stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes each step in the information interaction method in the Internet of Things shown in the above 3 or FIG. 5 .
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present application belongs to the technical field of the Internet of Things. Disclosed are a message exchange method and apparatus in the Internet of Things, and a computer device and a storage medium. The method comprises: receiving a first model message sent by a second device, wherein the first model message includes an attribute type, and the attribute type is used to indicate a functional attribute of a target application function. According to the solution, interaction modes of multiple different application functions are supported by means of the same type of model message, and there is no need to provide an individual BLE mesh model for each application function in an Internet of Things device, thereby reducing the complexity of model message exchange of devices in a BLE mesh and improving message exchange efficiency and resource utilization in the BLE mesh.

Description

物联网中的消息交互方法、装置、计算机设备及存储介质Message interaction method, device, computer equipment and storage medium in the Internet of Things 技术领域technical field
本申请涉及物联网技术领域,特别涉及一种物联网中的消息交互方法、装置、计算机设备及存储介质。The present application relates to the technical field of the Internet of Things, and in particular, to a message interaction method, apparatus, computer equipment and storage medium in the Internet of Things.
背景技术Background technique
在物联网(Internet of Things,IOT)中,要实现通过客户端远程管理服务端设备,需要对客户端设备和服务端设备进行模型实例化。In the Internet of Things (IOT), to achieve remote management of server devices through clients, it is necessary to instantiate models of client devices and server devices.
在基于低功耗蓝牙的网状设备网络(Bluetooth Low Energy Mesh,BLE Mesh)中,蓝牙技术联盟为物联网设备定义了BLE Mesh模型,其中,每一项应用功能及特性对应一个BLE Mesh模型,不同的物联网设备可以实现不同的BLE Mesh模型,并基于BLE Mesh模型与其它物联网设备进行消息交互,以提供不同的应用功能及特性。In the Bluetooth Low Energy Mesh (BLE Mesh) based on Bluetooth Low Energy, the Bluetooth SIG defines a BLE Mesh model for IoT devices, in which each application function and feature corresponds to a BLE Mesh model. Different IoT devices can implement different BLE Mesh models, and interact with other IoT devices based on the BLE Mesh model to provide different application functions and features.
然而,对于具有多项应用功能及特性的物联网设备,在BLE Mesh中需要实现多个BLE Mesh模型,导致物联网设备之间的消息交互复杂性较高,影响BLE Mesh中的消息交互的效率。However, for IoT devices with multiple application functions and features, multiple BLE Mesh models need to be implemented in BLE Mesh, which leads to high complexity of message interaction between IoT devices and affects the efficiency of message interaction in BLE Mesh. .
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种物联网中的消息交互方法、装置、计算机设备及存储介质。所述技术方案如下:Embodiments of the present application provide a message interaction method, apparatus, computer device, and storage medium in the Internet of Things. The technical solution is as follows:
一方面,本申请实施例提供了一种物联网中的消息交互方法,所述方法由物联网中的第一设备执行,所述方法包括:On the one hand, an embodiment of the present application provides a message interaction method in the Internet of Things, the method is executed by a first device in the Internet of Things, and the method includes:
接收第二设备发送的第一模型消息;receiving the first model message sent by the second device;
其中,所述第一模型消息中包含属性类型,所述属性类型用于指示目标应用功能的功能属性。Wherein, the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
另一方面,本申请实施例提供了一种物联网中的消息交互方法,所述方法由物联网中的第二设备执行,所述方法包括:On the other hand, an embodiment of the present application provides a message interaction method in the Internet of Things, the method is executed by a second device in the Internet of Things, and the method includes:
向第一设备发送第一模型消息;sending a first model message to the first device;
其中,所述第一模型消息中包含属性类型,所述属性类型用于指示目标应用功能的功能属性。Wherein, the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
另一方面,本申请实施例提供了一种物联网中的消息交互装置,所述装置用于物联网中的第一设备中,所述装置包括:On the other hand, an embodiment of the present application provides a message interaction device in the Internet of Things, the device is used in a first device in the Internet of Things, and the device includes:
第一消息接收模块,用于接收第二设备发送的第一模型消息;a first message receiving module, configured to receive the first model message sent by the second device;
其中,所述第一模型消息中包含属性类型,所述属性类型用于指示目标应用功能的功能属性。Wherein, the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
另一方面,本申请实施例提供了一种物联网中的消息交互装置,所述装置 用于物联网中的第二设备中,所述装置包括:On the other hand, an embodiment of the present application provides a message interaction device in the Internet of Things, the device is used in a second device in the Internet of Things, and the device includes:
第一消息发送模块,用于向第一设备发送第一模型消息;a first message sending module, configured to send a first model message to the first device;
其中,所述第一模型消息中包含属性类型,所述属性类型用于指示目标应用功能的功能属性。Wherein, the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
再一方面,本申请实施例提供了一种计算机设备,所述计算机设备包括处理器、存储器和收发器,所述存储器存储有计算机程序,所述计算机程序用于被所述处理器执行,以实现上述物联网中的消息交互方法。In another aspect, an embodiment of the present application provides a computer device, the computer device includes a processor, a memory, and a transceiver, the memory stores a computer program, and the computer program is configured to be executed by the processor to Implement the above message interaction method in the Internet of Things.
又一方面,本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述物联网中的消息交互方法。In another aspect, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is loaded and executed by a processor to implement the above-mentioned message interaction method in the Internet of Things.
另一方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述物联网中的消息交互方法。In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned message interaction method in the Internet of Things.
本申请实施例提供的技术方案可以带来如下有益效果:The technical solutions provided in the embodiments of the present application can bring the following beneficial effects:
物联网设备之间通过支持一种或者多种应用功能的模型消息进行信息交互,在模型消息中携带属性类型来指示当前消息对应的应用功能,也就是说,对于多种不同的应用功能,发送端和接收端只需要通过模型消息中的属性类型即可以进行准确的区分,从而可以实现通过同一种模型消息支持多种不同的应用功能,相应的,也就不需要在物联网设备中为每一种应用功能单独设置一个BLE Mesh模型,从而降低了BLE Mesh中的设备的模型消息交互的复杂度,从而提高了BLE Mesh中的消息交互的效率和资源利用率。The Internet of Things devices exchange information through model messages that support one or more application functions. The model message carries the attribute type to indicate the application function corresponding to the current message. That is, for a variety of different application functions, send The end and the receiving end only need to be accurately distinguished by the attribute type in the model message, so that the same model message can support a variety of different application functions. An application function sets a BLE Mesh model separately, thereby reducing the complexity of model message interaction of devices in BLE Mesh, thereby improving the efficiency and resource utilization of message interaction in BLE Mesh.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1是本申请一个实施例提供的物联网的网络架构的示意图;1 is a schematic diagram of a network architecture of the Internet of Things provided by an embodiment of the present application;
图2是图1所示实施例涉及的一种消息交互示意图;FIG. 2 is a schematic diagram of a message interaction involved in the embodiment shown in FIG. 1;
图3是本申请一个实施例提供的物联网中的消息交互方法的流程图;3 is a flowchart of a message interaction method in the Internet of Things provided by an embodiment of the present application;
图4是本申请一个实施例提供的物联网中的消息交互架构图;4 is a message interaction architecture diagram in the Internet of Things provided by an embodiment of the present application;
图5是本申请一个实施例提供的物联网中的消息交互方法的流程图;5 is a flowchart of a message interaction method in the Internet of Things provided by an embodiment of the present application;
图6是本申请一个实施例提供的物联网中的消息交互架构图;6 is a message interaction architecture diagram in the Internet of Things provided by an embodiment of the present application;
图7是图6所示实施例涉及的一种属性读取流程示意图;FIG. 7 is a schematic diagram of an attribute reading process involved in the embodiment shown in FIG. 6;
图8是图6所示实施例涉及的一种更新属性信息的交互流程示意图;8 is a schematic diagram of an interaction flow for updating attribute information involved in the embodiment shown in FIG. 6;
图9是图6所示实施例涉及的一种属性状态通知消息的交互流程示意图;9 is a schematic diagram of an interaction flow of an attribute status notification message involved in the embodiment shown in FIG. 6;
图10是本申请一个实施例提供的物联网中的文件生成装置的框图;10 is a block diagram of a file generation device in the Internet of Things provided by an embodiment of the present application;
图11是本申请一个实施例提供的物联网中的文件生成装置的框图;11 is a block diagram of a file generation device in the Internet of Things provided by an embodiment of the present application;
图12是本申请一个实施例提供的计算机设备的结构示意图。FIG. 12 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
本申请实施例描述的网络架构以及业务场景是为了更加清楚地说明本申请实施例的技术方案,并不构成对本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The network architecture and service scenarios described in the embodiments of the present application are for the purpose of illustrating the technical solutions of the embodiments of the present application more clearly, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. The evolution of new business scenarios and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
请参考图1,其示出了本申请一个实施例提供的物联网的网络架构的示意图。该物联网的网络架构可以包括:服务端设备110、客户端设备120;Please refer to FIG. 1 , which shows a schematic diagram of a network architecture of the Internet of Things provided by an embodiment of the present application. The network architecture of the Internet of Things may include: a server device 110 and a client device 120;
服务端设备110可以是用于提供物联网功能服务的设备。The server device 110 may be a device for providing Internet of Things functional services.
比如,服务端设备110可以是智能家居设备,例如,智能灯具、智能电视、智能空调、智能冰箱、智能微波炉、智能电饭煲、扫地机器人等等。For example, the server device 110 may be a smart home device, for example, a smart lamp, a smart TV, a smart air conditioner, a smart refrigerator, a smart microwave oven, a smart rice cooker, a cleaning robot, and the like.
或者,服务端设备110可以是工业生产设备,例如,车床、工业机器人、太阳能面板、风力发电机等等。Alternatively, the server device 110 may be an industrial production device such as a lathe, an industrial robot, a solar panel, a wind turbine, and the like.
或者,服务端设备110可以是商业服务设备,例如,无人售货机等等。Alternatively, the server device 110 may be a commercial service device, such as a vending machine or the like.
或者,服务端设备110可以是智能监控设备,例如,监控摄像头、红外传感器、声音传感器、温度传感器等等。Alternatively, the server device 110 may be an intelligent monitoring device, such as a monitoring camera, an infrared sensor, a sound sensor, a temperature sensor, and the like.
客户端设备120是服务端设备110进行控制或管理的设备,比如,管理设备120可以是智能手机、平板电脑等移动式管理终端,或者,管理设备120也可以是个人电脑,比如台式电脑、便携式计算机、个人工作站等等。The client device 120 is a device controlled or managed by the server device 110. For example, the management device 120 may be a mobile management terminal such as a smart phone and a tablet computer, or the management device 120 may also be a personal computer, such as a desktop computer, a portable Computers, personal workstations, etc.
服务端设备110和客户端设备120之间可以通过BLE Mesh组网相连。The server device 110 and the client device 120 can be connected through BLE Mesh networking.
可选的,该物联网的网络架构还包括云平台130。Optionally, the network architecture of the Internet of Things further includes a cloud platform 130 .
云平台130是部署在网络侧的云端服务平台。比如,云平台130可以是基于单台或者多台服务器实现的云端服务平台。The cloud platform 130 is a cloud service platform deployed on the network side. For example, the cloud platform 130 may be a cloud service platform implemented based on a single or multiple servers.
云平台130可以分别与服务端设备110和客户端设备120之间通过有线或者无线网络相连。The cloud platform 130 may be connected to the server device 110 and the client device 120 through a wired or wireless network, respectively.
BLE Mesh模型包括客户端模型(即Server Model,以下简称客户端)和服务端模型(即Client Model,以下简称服务端),客户端和服务端之间通过发送BLE Mesh消息进行交互。例如,BLE Mesh定义了开关模型,照明灯作为服务端实现On/Off Server Model,控制照明灯的设备(例如手机APP、照明开关等)作为客户端实现On/Off Client Model。The BLE Mesh model includes a client model (ie, Server Model, hereinafter referred to as client) and a server model (ie, Client Model, hereinafter referred to as server). The client and server interact by sending BLE Mesh messages. For example, BLE Mesh defines the switch model, the lighting as the server implements the On/Off Server Model, and the devices that control the lighting (such as mobile APPs, lighting switches, etc.) implement the On/Off Client Model as the client.
客户端模型:定义实现这个客户端模型的设备可以发送或接收的BLE Mesh模型消息,客户端通过发送相应的模型消息来获取服务端的状态或对服务端功能进行操作。例如,支持开关功能的客户端模型(On/Off Client Model)向支持开关功能的服务端模型(On/Off Server Model)发送GET On/Off Server Model 消息以获取开关的状态,On/Off Client Model向On/Off Server Model发送SET On/Off Server Model消息设置开关是“开”或“关”。Client model: Define the BLE Mesh model messages that can be sent or received by devices implementing this client model. The client obtains the status of the server or operates the functions of the server by sending the corresponding model message. For example, the client model (On/Off Client Model) that supports the switch function sends a GET On/Off Server Model message to the server model (On/Off Server Model) that supports the switch function to get the status of the switch, the On/Off Client Model Send the SET On/Off Server Model message to the On/Off Server Model to set the switch on or off.
服务端模型:定义实现这个服务端模型的设备的状态和设备功能,以及实现这个服务端模型的设备可以发送或接收的BLE Mesh模型消息。例如,开关状态发生变化时,On/Off Server Model向On/Off Client Model发送On/Off Server Model STATUS消息通知开关状态变更。Server model: Define the state and device functions of the device implementing this server model, as well as the BLE Mesh model messages that can be sent or received by the device implementing this server model. For example, when the switch state changes, the On/Off Server Model sends an On/Off Server Model STATUS message to the On/Off Client Model to notify the switch state change.
请参考图2,其示出了本申请实施涉及的一种消息交互示意图。其中,图2为实现On/Off Client Model的开关和实现On/Off Server Model的灯之间交互On/Off模型消息的示例。Please refer to FIG. 2 , which shows a schematic diagram of a message interaction involved in the implementation of the present application. Among them, Figure 2 is an example of the interaction of On/Off model messages between the switch that implements the On/Off Client Model and the lamp that implements the On/Off Server Model.
表1为上述方案中的BLE Mesh模型的消息结构,每个BLE Mesh模型的消息由操作码和应用参数组成,操作码大小为1、2或3个字节,应用参数最大不超过379个字节。Table 1 shows the message structure of the BLE Mesh model in the above scheme. The message of each BLE Mesh model consists of opcodes and application parameters. The opcode size is 1, 2 or 3 bytes, and the application parameters cannot exceed 379 words. Festival.
表1Table 1
字段名field name 大小(8位字节)size (8-bit bytes) 注释Notes
操作码opcode 1-31-3 操作码,用于指示模型消息的类型opcode to indicate the type of model message
取值范围Ranges 0-3790-379 应用参数Application parameters
蓝牙技术联盟目前定义了几十类BLE Mesh模型,每个模型定义不同的消息类型,表2为On/Off Server Model定义的模型消息类型。The Bluetooth SIG currently defines dozens of BLE Mesh models, each of which defines different message types. Table 2 shows the model message types defined by the On/Off Server Model.
表2Table 2
Figure PCTCN2021075614-appb-000001
Figure PCTCN2021075614-appb-000001
上述方案中,BLE Mesh标准为物联网设备不同的应用功能及特性定义了不同的BLE Mesh客户端模型和服务端模型,物联网设备根据功能特性需要实现相应的模型,每个模型定义实现这个模型的设备的状态和设备功能,以及这个模型支持发送或接收的模型消息。物联网设备要支持不同的应用功能,就需要实现不同的BLE Mesh模型及不同模型专用的模型消息,而一个物联网设备实现多个模型及不同模型的专用消息时,无疑提高了设备处理的复杂性,也增加额外的计算和存储资源开销,特别是对资源受限的物联网设备来说,上述问题尤其突出,实施的技术可行性较低。In the above solutions, the BLE Mesh standard defines different BLE Mesh client models and server models for different application functions and characteristics of IoT devices. IoT devices need to implement corresponding models according to their functional characteristics, and each model defines and implements this model. The state of the device and device capabilities, and the model messages this model supports to send or receive. To support different application functions, IoT devices need to implement different BLE Mesh models and model messages dedicated to different models. When an IoT device implements multiple models and dedicated messages for different models, it undoubtedly increases the complexity of device processing. It also increases the overhead of additional computing and storage resources, especially for resource-constrained IoT devices, the above problems are particularly prominent, and the technical feasibility of implementation is low.
请参考图3,其示出了本申请一个实施例提供的物联网中的消息交互方法的流程图,该方法可以由第一设备和第二设备交互执行。例如,该第一设备和第二设备可以是上述图1所示系统中的服务端设备110和客户端设备120。该方法可以包括如下几个步骤:Please refer to FIG. 3 , which shows a flowchart of a message interaction method in the Internet of Things provided by an embodiment of the present application, and the method can be executed interactively by a first device and a second device. For example, the first device and the second device may be the server device 110 and the client device 120 in the system shown in FIG. 1 above. The method may include the following steps:
步骤301,第一设备和第二设备通过BLE Mesh进行组网。Step 301, the first device and the second device are networked through BLE Mesh.
步骤302,第二设备向第一设备发送第一模型消息;相应的,第一设备接收该第二设备发送的第一模型消息。其中,上述第一模型消息中包含属性类型, 该属性类型用于指示目标应用功能的功能属性。Step 302, the second device sends a first model message to the first device; correspondingly, the first device receives the first model message sent by the second device. Wherein, the above-mentioned first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
在一种可能的实现方式中,第二设备基于BLE Mesh模型向第一设备发送第一模型消息,相应的,第一设备接收第二设备基于该BLE Mesh模型发送的第一模型消息。In a possible implementation manner, the second device sends a first model message to the first device based on the BLE Mesh model, and correspondingly, the first device receives the first model message sent by the second device based on the BLE Mesh model.
其中,上述目标应用功能是该BLE Mesh模型支持的至少一种应用功能中的任意一种。The above target application function is any one of at least one application function supported by the BLE Mesh model.
综上所述,本申请实施例所示的方案,物联网设备之间通过支持一种或者多种应用功能的模型消息进行信息交互,在模型消息中携带属性类型来指示当前消息对应的应用功能,也就是说,对于多种不同的应用功能,发送端和接收端只需要通过模型消息中的属性类型即可以进行准确的区分,从而可以实现通过同一种模型消息支持多种不同的应用功能,相应的,也就不需要在物联网设备中为每一种应用功能单独设置一个BLE Mesh模型,从而降低了BLE Mesh中的设备的模型消息交互的复杂度,从而提高了BLE Mesh中的消息交互的效率和资源利用率。To sum up, in the solutions shown in the embodiments of the present application, IoT devices exchange information through model messages that support one or more application functions, and attribute types are carried in the model messages to indicate the application functions corresponding to the current message. , that is to say, for a variety of different application functions, the sender and the receiver can accurately distinguish only by the attribute type in the model message, so that the same model message can support a variety of different application functions. Correspondingly, it is not necessary to set a BLE Mesh model separately for each application function in the IoT device, thereby reducing the complexity of the model message interaction of the devices in the BLE Mesh, thereby improving the message interaction in the BLE Mesh. efficiency and resource utilization.
此外,本申请实施例所示的方案,通过支持一种或多种不同的应用功能的模型消息进行信息交互,降低了物联网设备的计算和存储资源的开销,从而提高了BLE Mesh中的消息交互的资源利用率。In addition, the solutions shown in the embodiments of this application perform information exchange through model messages that support one or more different application functions, which reduces the overhead of computing and storage resources of IoT devices, thereby improving the message flow in BLE Mesh. Interaction resource utilization.
通过上述图3所示的方案,对于BLE Mesh中的物联网设备所支持的多种应用功能,只需要在物联网设备中构建一个通用的BLE Mesh模型,即可以实现多种应用功能的消息交互。例如,请参考图4,其示出了本申请一个实施例提供的物联网中的消息交互架构图。如图4所示,客户端设备41和服务端设备42中分别构建有BLE Mesh模型,且BLE Mesh模型支持多种应用功能(图4中示出为3种),每种应用功能具有对应的属性类型。客户端设备41和服务端设备42之间进行消息交互时,发送侧发送的模型消息中包含对应某一项应用功能的属性类型,接收侧接收到模型消息后,通过属性类型即可以判断该模型消息对应哪一项应用功能,并基于类型属性,对相应的应用功能执行后续的操作。Through the solution shown in Figure 3 above, for various application functions supported by IoT devices in BLE Mesh, it is only necessary to build a general BLE Mesh model in IoT devices, which can realize the message interaction of various application functions. . For example, please refer to FIG. 4 , which shows a message interaction architecture diagram in the Internet of Things provided by an embodiment of the present application. As shown in FIG. 4 , the client device 41 and the server device 42 are respectively constructed with BLE Mesh models, and the BLE Mesh models support a variety of application functions (shown as 3 in FIG. 4 ), each application function has a corresponding property type. When a message is exchanged between the client device 41 and the server device 42, the model message sent by the sending side contains the attribute type corresponding to a certain application function. After the receiving side receives the model message, the model can be judged by the attribute type. Which application function the message corresponds to, and based on the type attribute, perform subsequent operations on the corresponding application function.
也就是说,本申请上述的技术方案提出一种BLE Mesh设备消息交互的方法,通过定义一个扩展的BLE Mesh模型,该模型提供通用的模型消息类型,从而使得物联网设备即使支持不同的应用功能,也不需要实现不同的模型以及不同模型专用的模型消息类型。That is to say, the above technical solution of this application proposes a method for message interaction between BLE Mesh devices. By defining an extended BLE Mesh model, the model provides a general model message type, so that even if the IoT device supports different application functions , and there is no need to implement different models and model message types specific to different models.
请参考图5,其示出了本申请一个实施例提供的物联网中的消息交互方法的流程图,该方法可以由第一设备和第二设备交互执行,该第一设备与第二设备之间通过BLE Mesh相连。例如,该第一设备和第二设备可以是上述图1所示系统中的服务端设备110和客户端设备120。该方法可以包括如下几个步骤:Please refer to FIG. 5 , which shows a flowchart of a message interaction method in the Internet of Things provided by an embodiment of the present application. The method can be executed interactively by a first device and a second device. They are connected through BLE Mesh. For example, the first device and the second device may be the server device 110 and the client device 120 in the system shown in FIG. 1 above. The method may include the following steps:
步骤501,第一设备和第二设备通过BLE Mesh进行组网。Step 501, the first device and the second device are networked through BLE Mesh.
在本申请实施例中,第一设备和第二设备分别是服务端设备和客户端设备,且服务端设备和客户端设备都支持BLE功能,服务端设备和客户端设备之间预 先通过BLE Mesh进行组网。In this embodiment of the present application, the first device and the second device are respectively a server device and a client device, and both the server device and the client device support the BLE function, and the server device and the client device are pre-connected through BLE Mesh Network.
步骤502,第二设备基于BLE Mesh模型向第一设备发送第一模型消息;相应的,第一设备接收该第二设备基于BLE Mesh模型发送的第一模型消息。Step 502, the second device sends a first model message to the first device based on the BLE Mesh model; correspondingly, the first device receives the first model message sent by the second device based on the BLE Mesh model.
其中,上述第一模型消息中包含属性类型,该属性类型用于指示目标应用功能的功能属性;该目标应用功能是该BLE Mesh模型支持的至少一种应用功能中的任意一种。Wherein, the above-mentioned first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function; the target application function is any one of at least one application function supported by the BLE Mesh model.
在本申请实施例中,BLE Mesh模型可以分为服务端模型和客户端模型,且服务端模型和客户端模型可以分别设置在第一设备和第二设备中。In the embodiment of the present application, the BLE Mesh model can be divided into a server model and a client model, and the server model and the client model can be respectively set in the first device and the second device.
其中,BLE Mesh模型可以支持单种应用功能,也可以指示多种应用功能。Among them, the BLE Mesh model can support a single application function or indicate multiple application functions.
例如,当第一设备和第二设备中的服务端设备为照明设备,且支持照明开关功能时,上述BLE Mesh模型可以支持照明开关功能,且该BLE Mesh模型中对应该照明开关功能设置有照明开关的属性类型。For example, when the server devices in the first device and the second device are lighting devices and support the lighting switch function, the above BLE Mesh model can support the lighting switch function, and the BLE Mesh model is provided with lighting corresponding to the lighting switch function The property type of the switch.
再例如,当当第一设备和第二设备中的服务端设备为照明设备,且同时支持照明开关功能、照明模式调节功能、以及亮度调节功能时,上述BLE Mesh模型可以同时支持照明开关功能、照明模式调节功能以及亮度调节功能,且该BLE Mesh模型中对应上述三种功能分别设置有照明开关的属性类型、照明模式的属性类型以及亮度的属性类型。For another example, when the server devices in the first device and the second device are lighting devices and support the lighting switch function, lighting mode adjustment function, and brightness adjustment function at the same time, the above BLE Mesh model can simultaneously support the lighting switch function, lighting Mode adjustment function and brightness adjustment function, and the BLE Mesh model corresponding to the above three functions are respectively set with the attribute type of the lighting switch, the attribute type of the lighting mode, and the attribute type of the brightness.
在一种可能的实现方式中,该第一模型消息中还包含第一操作码,该第一操作码用于指示该第一模型消息的消息类型。In a possible implementation manner, the first model message further includes a first operation code, where the first operation code is used to indicate a message type of the first model message.
在本申请实施例中,为了使得第一设备能够明确获知该第一模型消息对应的后续处理方式,上述第一模型消息中还包含有第一操作码,第一设备接收到该第一模型消息后,可以通过第一模型消息中的第一操作码来确定如何基于该第一模型消息进行后续处理。In this embodiment of the present application, in order to enable the first device to clearly know the subsequent processing method corresponding to the first model message, the first model message further includes a first operation code, and the first device receives the first model message Afterwards, how to perform subsequent processing based on the first model message may be determined through the first operation code in the first model message.
在一种可能的实现方式中,该第一模型消息的消息类型包括:读取属性消息、更新属性消息或者属性状态通知消息;In a possible implementation manner, the message type of the first model message includes: read property message, update property message or property state notification message;
该读取属性消息用于向该第一设备读取该属性类型相关的数据;The read attribute message is used to read data related to the attribute type from the first device;
该更新属性消息用于指示该第一设备更新该属性类型相关的数据;The update attribute message is used to instruct the first device to update the data related to the attribute type;
该属性状态通知消息用于将该属性类型相关的数据通知给该第一设备。The attribute status notification message is used to notify the first device of data related to the attribute type.
其中,上述第一操作码所指示的第一模型消息的消息类型,可以是读取属性消息、更新属性消息或者属性状态通知消息中的任意一种。The message type of the first model message indicated by the first operation code may be any one of a read attribute message, an attribute update message, or an attribute status notification message.
其中,读取属性消息通常用于客户端设备查看服务端设备中某项功能的当前参数/状态的场景,例如,用户在手机(客户端设备)中查看台灯(服务端设备)的当前开启状态/亮度的场景下,手机可以向台灯发送读取属性消息,以读取台灯的当前开启状态/亮度值。Among them, the read attribute message is usually used for the client device to view the current parameter/status of a function in the server device. For example, the user checks the current ON state of the desk lamp (server device) in the mobile phone (client device). In the scenario of /brightness, the mobile phone can send a read attribute message to the desk lamp to read the current ON state/brightness value of the desk lamp.
上述更新属性消息通常用于客户端设备控制服务端设备更改某项功能的当前参数/状态的场景,例如,用户需要通过手机调节台灯的亮度的场景下,手机可以向台灯发送更新属性消息,以指示台灯进行亮度调节。The above update attribute message is usually used in the scenario where the client device controls the server device to change the current parameter/state of a certain function. For example, in the scenario where the user needs to adjust the brightness of the desk lamp through the mobile phone, the mobile phone can send an update attribute message to the desk lamp to Instruct the desk lamp to adjust the brightness.
上述属性状态通知消息通常用于服务端设备向客户端设备主动报告其当前某项功能的参数/状态的场景,例如,用户通过手机调节台灯的亮度后,台灯可 以向手机返回属性状态通知消息,以将调节后的亮度通知给手机。The above property status notification message is usually used in the scenario where the server device actively reports the current parameter/status of a certain function to the client device. For example, after the user adjusts the brightness of the desk lamp through the mobile phone, the desk lamp can return the property status notification message to the mobile phone. to notify the phone of the adjusted brightness.
在一种可能的实现方式中,该第一模型消息中还包含事务标识,该事务标识用于指示对应的消息为重传消息或者新消息。In a possible implementation manner, the first model message further includes a transaction identifier, where the transaction identifier is used to indicate that the corresponding message is a retransmitted message or a new message.
在本申请实施例中,为了提高消息被接收端成功接收,一条模型消息可以被多次发送,相应的,为了使接收端能够准确区分哪些消息是重传的消息,哪些消息是新传的消息,第二设备在发送第一模型消息时,可以在第一模型消息中携带事务指示,以指示当前的模型消息是重传的消息还是新传的消息,第一设备基于该事务标识指示进行处理,例如,当事务标识指示该第一模型消息是重传消息时,第一设备可以将第一模型消息和之前接收到的消息进行合并。In this embodiment of the present application, in order to improve the successful reception of the message by the receiving end, a model message can be sent multiple times. Correspondingly, in order to enable the receiving end to accurately distinguish which messages are retransmitted messages and which messages are newly transmitted messages , when the second device sends the first model message, it may carry a transaction indication in the first model message to indicate whether the current model message is a retransmitted message or a newly transmitted message, and the first device performs processing based on the transaction identifier indication For example, when the transaction identifier indicates that the first model message is a retransmission message, the first device may combine the first model message with a previously received message.
在一种可能的实现方式中,该第一模型消息中还包含属性参数,该属性参数用于指示该属性类型的参数,或者,属性参数用于指示该属性类型的属性值。In a possible implementation manner, the first model message further includes an attribute parameter, where the attribute parameter is used to indicate a parameter of the attribute type, or the attribute parameter is used to indicate an attribute value of the attribute type.
在本申请实施例中,当第一模型消息需要指示属性类型对应的参数/属性值(例如状态值)时,第一模型消息中还可以携带属性类型对应的属性参数。In this embodiment of the present application, when the first model message needs to indicate a parameter/attribute value (eg, a state value) corresponding to the attribute type, the first model message may also carry the attribute parameter corresponding to the attribute type.
在一种可能的实现方式中,当该第一模型消息的消息类型为更新属性消息或者属性状态通知消息时,该第一模型消息中还包含该属性参数。In a possible implementation manner, when the message type of the first model message is an attribute update message or an attribute status notification message, the first model message further includes the attribute parameter.
在本申请实施例中,当第一模型消息的消息类型为更新属性消息或者属性状态通知消息时,需要指示属性类型对应的参数/属性值。In this embodiment of the present application, when the message type of the first model message is an attribute update message or an attribute status notification message, the parameter/attribute value corresponding to the attribute type needs to be indicated.
例如,用户需要通过手机调节台灯的亮度的场景下,手机可以向台灯发送更新属性消息,为了使得台灯能够调节到用户需要的亮度,该更新属性消息中还包含用于指示调节的目标亮度或者调节差值的属性参数。For example, in the scenario where the user needs to adjust the brightness of the desk lamp through the mobile phone, the mobile phone can send an update attribute message to the desk lamp. In order to enable the desk lamp to be adjusted to the brightness required by the user, the update attribute message also includes a target brightness for indicating adjustment or adjustment. Difference property parameter.
再例如,用户在手机中查看台灯的当前亮度,或者,用户通过手机调节台灯的亮度之后,台灯可以向手机发送属性状态通知消息,为了是的手机界面中能够准确的显示台灯的当前亮度,台灯需要在属性状态通知消息中携带指示当前亮度的属性参数。For another example, the user checks the current brightness of the table lamp on the mobile phone, or, after the user adjusts the brightness of the table lamp through the mobile phone, the table lamp can send a property status notification message to the mobile phone, so that the current brightness of the table lamp can be accurately displayed in the mobile phone interface. The attribute parameter indicating the current brightness needs to be carried in the attribute status notification message.
步骤503,第一设备根据第一模型消息,执行该属性类型对应的相关操作。Step 503, the first device performs a related operation corresponding to the attribute type according to the first model message.
在本申请实施例中,第一设备接收到第一模型消息后,可以根据属性类型确定对应的应用功能,根据确定的应用功能执行第一模型消息相关的操作。In this embodiment of the present application, after receiving the first model message, the first device may determine a corresponding application function according to the attribute type, and perform operations related to the first model message according to the determined application function.
例如,当第一模型消息是读取属性消息时,第一设备根据读取属性消息中的属性类型,查询需要读取的应用功能对应的属性参数,并查询到的属性参数携带在属性状态通知消息中返回给第二设备。For example, when the first model message is a read attribute message, the first device queries the attribute parameter corresponding to the application function to be read according to the attribute type in the read attribute message, and the queried attribute parameter is carried in the attribute status notification message back to the second device.
再例如,当第一模型消息是更新属性消息时,第一设备根据更新属性消息中的属性类型,确定需要更新的应用功能,并对确定的应用功能对应的属性参数进行更新。For another example, when the first model message is an attribute update message, the first device determines the application function to be updated according to the attribute type in the attribute update message, and updates the attribute parameter corresponding to the determined application function.
在一种可能的实现方式中,当该第一模型消息的消息类型为属性状态通知消息时,向该第二设备发送第二模型消息;该第二模型消息中包含第二操作码;该第二操作码用于指示该第二模型消息的消息类型为属性状态通知确认消息。In a possible implementation manner, when the message type of the first model message is an attribute status notification message, a second model message is sent to the second device; the second model message includes a second operation code; the first model message The second operation code is used to indicate that the message type of the second model message is an attribute status notification confirmation message.
其中,当第一模型消息是属性状态通知消息时,第一设备可以向第二设备反馈是否接收到该属性状态通知消息,此时,第一设备可以向第二设备发送属性状态通知确认消息。Wherein, when the first model message is an attribute state notification message, the first device may feed back to the second device whether the attribute state notification message is received, and at this time, the first device may send an attribute state notification confirmation message to the second device.
例如,下述表3为本申请提出的一种BLE Mesh模型消息结构,包括:操作码、事务标识、属性类型和属性参数。For example, the following Table 3 is a message structure of a BLE Mesh model proposed by this application, including: an operation code, a transaction identifier, an attribute type, and an attribute parameter.
操作码(Opcode):用于指示BLE Mesh消息的类型,包括读取属性消息、更新属性消息、属性状态通知消息和属性状态通知确认消息;Opcode: used to indicate the type of BLE Mesh message, including read attribute message, update attribute message, attribute status notification message and attribute status notification confirmation message;
事务标识(TID):即消息标识,用于指示该消息是重传消息还是新消息,重传消息和最近发送的消息的事务标识相同,新消息和最近发送的消息的事务标识不同,比如随着消息递增;Transaction ID (TID): The message ID is used to indicate whether the message is a retransmitted message or a new message. The transaction ID of the retransmitted message and the recently sent message is the same, and the transaction ID of the new message and the recently sent message is different. with the message incrementing;
属性类型(AttrType):表示属性的类型,例如开关属性、目标温度属性、亮度属性等等;Attribute type (AttrType): indicates the type of attribute, such as switch attribute, target temperature attribute, brightness attribute, etc.;
属性参数(AttrParameter):表示属性类型的参数或者属性类型的值,例如开关属性的值为“开”或“关”,目标温度属性的值为25,亮度属性的值为100。Attribute parameter (AttrParameter): The parameter representing the attribute type or the value of the attribute type, for example, the value of the switch attribute is "on" or "off", the value of the target temperature attribute is 25, and the value of the brightness attribute is 100.
表3table 3
字段field 大小size 注释Notes
OpcodeOpcode 1-31-3 操作码,用于指示BLE Mesh消息的类型Opcode to indicate the type of BLE Mesh message
TIDTID 11 事务标识,即消息标识,用于指示重传消息或新消息Transaction ID, i.e. message ID, used to indicate retransmission or new message
AttrTypeAttrType 22 属性类型,表示属性的类型property type, indicating the type of property
AttrParameterAttrParameter nn 属性参数,表示属性类型的参数或者属性类型的值Attribute parameter, representing the parameter of the attribute type or the value of the attribute type
在一种可能的实现方案中,上述字段中的属性类型和属性参数字段为可选,例如读取属性消息不需要指示属性参数,而更新属性消息可以指示需要更新的属性类型及属性参数。In a possible implementation solution, the attribute type and attribute parameter fields in the above fields are optional. For example, the read attribute message does not need to indicate the attribute parameter, and the update attribute message can indicate the attribute type and attribute parameter that need to be updated.
在一种可能的实现方式中,该第二模型消息中包含事务标识,该事务标识用于指示对应的消息为重传消息或者新消息。In a possible implementation manner, the second model message includes a transaction identifier, where the transaction identifier is used to indicate that the corresponding message is a retransmitted message or a new message.
与第一模型消息类似的,在本申请实施例中,第二模型消息中也可以携带事务标识。Similar to the first model message, in this embodiment of the present application, the second model message may also carry a transaction identifier.
在一种可能的实现方式中,该第二模型消息中包含该属性类型。In a possible implementation manner, the attribute type is included in the second model message.
在本申请实施例中,与第一模型消息类似,该属性状态通知确认消息中也可以包含上述属性类型,以便第二设备通过属性类型判断该属性状态通知确认消息是对应第一模型消息的确认反馈。In this embodiment of the present application, similar to the first model message, the attribute status notification confirmation message may also include the above attribute type, so that the second device can judge by the attribute type that the attribute status notification confirmation message is a confirmation corresponding to the first model message feedback.
在另一种可能的实现方式中,该属性状态通知确认消息中也可以不包含上述属性类型。In another possible implementation manner, the attribute status notification confirmation message may not include the above attribute type.
在一种可能的实现方式中,该第二模型消息中还包含属性参数,该属性参数用于指示该属性类型的参数,或者,属性参数用于指示该属性类型的属性值。In a possible implementation manner, the second model message further includes an attribute parameter, where the attribute parameter is used to indicate a parameter of the attribute type, or the attribute parameter is used to indicate an attribute value of the attribute type.
在本申请实施例中的,当属性状态通知确认消息中包含属性类型时,该属性状态通知确认消息也可以包含属性参数,以便第二设备通过属性参数,确定第一设备是否正确接收了第一模型消息。In this embodiment of the present application, when the attribute status notification confirmation message includes an attribute type, the attribute status notification confirmation message may also include an attribute parameter, so that the second device can determine whether the first device has correctly received the first device through the attribute parameter. Model message.
在一种可能的实现方式中,当该第一模型消息的消息类型为属性状态通知消息,且接收到用于指示反馈属性状态通知确认消息的确认指示时,向该第二 设备发送该第二模型消息;In a possible implementation manner, when the message type of the first model message is an attribute status notification message, and a confirmation indication for indicating feedback of an attribute status notification confirmation message is received, the second device is sent to the second device. model message;
或者,or,
当该第一模型消息的消息类型为属性状态通知消息,且未接收到用于指示是否反馈属性状态通知确认消息的确认指示时,向该第二设备发送该第二模型消息。The second model message is sent to the second device when the message type of the first model message is an attribute state notification message, and no confirmation indication is received for indicating whether to feed back an attribute state notification confirmation message.
相应的,上述第二设备可以向第一设备发送确认指示。Correspondingly, the above-mentioned second device may send a confirmation indication to the first device.
其中,上述确认指示可以由第二设备通过独立的消息发送给第一设备,或者,上述确认指示也可以携带在上述属性状态通知消息中。The confirmation indication may be sent by the second device to the first device through an independent message, or the confirmation indication may also be carried in the attribute status notification message.
在本申请实施例中,第二设备(比如服务端设备)向第一设备(比如客户端设备)发送属性状态通知消息时,可以指示是否需要客户端设备确认,如果指示属性状态通知消息需要确认,或者,没有进行指示,客户端设备可以发送属性状态通知确认消息,如果指示不需要客户端确认,则客户端设备可以不发送属性状态通知确认消息,从而降低消息发送次数,节约通信资源。In this embodiment of the present application, when a second device (such as a server device) sends an attribute status notification message to a first device (such as a client device), it may indicate whether confirmation from the client device is required, and if it indicates that the attribute status notification message requires confirmation , or, without an instruction, the client device may send an attribute status notification confirmation message, and if the instruction does not require client confirmation, the client device may not send an attribute status notification confirmation message, thereby reducing the number of message sending and saving communication resources.
或者,如果第二设备指示属性状态通知消息需要确认,则客户端设备可以发送属性状态通知确认消息,如果指示不需要客户端确认,或者,没有进行指示,则客户端设备可以不发送属性状态通知确认消息。Alternatively, if the second device indicates that the property status notification message requires confirmation, the client device may send the property status notification confirmation message, and if the indication does not require client confirmation, or, if no indication is made, the client device may not send the property status notification Confirmation message.
综上所述,本申请实施例所示的方案,物联网设备之间通过支持一种或者多种应用功能的模型消息进行信息交互,在模型消息中携带属性类型来指示当前消息对应的应用功能,也就是说,对于多种不同的应用功能,发送端和接收端只需要通过模型消息中的属性类型即可以进行准确的区分,从而可以实现通过同一种模型消息支持多种不同的应用功能,相应的,也就不需要在物联网设备中为每一种应用功能单独设置一个BLE Mesh模型,从而降低了BLE Mesh中的设备的模型消息交互的复杂度,从而提高了BLE Mesh中的消息交互的效率和资源利用率。To sum up, in the solutions shown in the embodiments of the present application, IoT devices exchange information through model messages that support one or more application functions, and attribute types are carried in the model messages to indicate the application functions corresponding to the current message. , that is to say, for a variety of different application functions, the sender and the receiver can accurately distinguish only by the attribute type in the model message, so that the same model message can support a variety of different application functions. Correspondingly, it is not necessary to set a BLE Mesh model separately for each application function in the IoT device, thereby reducing the complexity of the model message interaction of the devices in the BLE Mesh, thereby improving the message interaction in the BLE Mesh. efficiency and resource utilization.
此外,本申请实施例所示的方案,通过支持一种或多种不同的应用功能的模型消息进行信息交互,降低了物联网设备的计算和存储资源的开销,从而提高了BLE Mesh中的消息交互的资源利用率。In addition, the solutions shown in the embodiments of this application perform information exchange through model messages that support one or more different application functions, which reduces the overhead of computing and storage resources of IoT devices, thereby improving the message flow in BLE Mesh. Interaction resource utilization.
以上述图3或图5所示的方案应用于手机(客户端设备)对空调设备(服务端设备)进行控制和管理的场景为例,请参考图6,其示出了本申请一个实施例提供的物联网中的消息交互架构图。如图6所示,手机61和空调62中分别构建有BLE Mesh模型,且BLE Mesh模型支持多种空调功能(图6中示出为开关功能、温度调节功能、风力调节功能这3种),每种应用功能具有对应的属性类型(即开关属性、温度属性和风力属性)。手机61和空调62之间进行消息交互时,发送侧发送的模型消息中包含对应某一项应用功能的属性类型(比如开关属性),接收侧接收到模型消息后,通过属性类型即可以判断该模型消息对应的是开关功能,并基于类型属性,对相应的开关功能执行后续的操作比如打开/关闭空调。Taking the scenario shown in the above-mentioned FIG. 3 or FIG. 5 applied to a mobile phone (client device) to control and manage an air conditioner (server device) as an example, please refer to FIG. 6 , which shows an embodiment of the present application Provides a message interaction architecture diagram in the Internet of Things. As shown in Figure 6, the mobile phone 61 and the air conditioner 62 have BLE Mesh models built respectively, and the BLE Mesh model supports a variety of air conditioning functions (shown in Figure 6 are the three functions of switch function, temperature adjustment function, and wind adjustment function), Each application function has a corresponding attribute type (ie switch attribute, temperature attribute and wind attribute). When a message is exchanged between the mobile phone 61 and the air conditioner 62, the model message sent by the sending side includes the attribute type (such as a switch attribute) corresponding to a certain application function. After the receiving side receives the model message, the attribute type can be used to determine the The model message corresponds to the switch function, and based on the type attribute, the corresponding switch function performs subsequent operations such as turning on/off the air conditioner.
请参考图7,其是本申请实施例涉及的一种属性读取流程示意图。以空调属 性读取过程为例,该属性读取流程如下:Please refer to FIG. 7 , which is a schematic diagram of an attribute reading process involved in an embodiment of the present application. Take the air conditioner attribute reading process as an example, the attribute reading process is as follows:
S71,手机向空调设备发送读取属性消息,读取属性消息中包含操作码(指示消息类型为读取属性消息)、事务标识以及属性类型(例如,可以指示开关属性、温度属性或者风力属性)。S71, the mobile phone sends a read attribute message to the air conditioner, and the read attribute message includes an operation code (indicating that the message type is a read attribute message), a transaction identifier, and an attribute type (for example, it can indicate a switch attribute, a temperature attribute, or a wind attribute) .
以属性类型为温度属性为例,表4为读取属性消息示例。Taking the attribute type as the temperature attribute as an example, Table 4 is an example of the read attribute message.
表4Table 4
OpcodeOpcode TIDTID AttrTypeAttrType
0xD2A8010xD2A801 0x010x01 0x09F00x09F0
读取属性消息read attribute message 事务标识Transaction ID 读取的属性类型,例如0x09F0代表当前温度属性The read attribute type, for example, 0x09F0 represents the current temperature attribute
S72,空调设备向手机返回属性状态通知消息,该属性状态通知消息中包含操作码(指示消息类型为属性状态通知消息)、事务标识、属性类型、以及属性参数(可以指示属性类型对应的开光状态、温度值或者风力等级)。S72, the air conditioner returns an attribute status notification message to the mobile phone, and the attribute status notification message includes an operation code (indicating that the message type is an attribute status notification message), a transaction identifier, an attribute type, and an attribute parameter (which can indicate the opening state corresponding to the attribute type) , temperature value or wind level).
以属性类型为温度属性为例,表5为属性状态通知消息示例。Taking the attribute type as the temperature attribute as an example, Table 5 is an example of the attribute status notification message.
表5table 5
Figure PCTCN2021075614-appb-000002
Figure PCTCN2021075614-appb-000002
其中,上述消息的事务标识可以是读取属性消息的事务标识,表示该消息为读取属性消息的响应消息。The transaction identifier of the above message may be the transaction identifier of the read attribute message, indicating that the message is a response message of the read attribute message.
请参考图8,其是本申请实施例涉及的一种更新属性信息的交互流程示意图。以空调属性更新过程为例,该更新属性信息交互流程如下:Please refer to FIG. 8 , which is a schematic diagram of an interaction flow for updating attribute information involved in an embodiment of the present application. Taking the air conditioner attribute update process as an example, the update attribute information exchange process is as follows:
S81,手机向空调设备发送更新属性消息,更新属性消息中包含操作码(指示消息类型为更新属性消息)、事务标识、属性类型(例如,可以指示开关属性、温度属性或者风力属性)、以及属性参数(可以指示更新的开光状态、温度值或者风力等级)。S81, the mobile phone sends an update attribute message to the air conditioner, and the update attribute message includes an operation code (indicating that the message type is an update attribute message), a transaction identifier, an attribute type (for example, it can indicate a switch attribute, a temperature attribute or a wind attribute), and an attribute Parameters (may indicate updated lighting status, temperature value or wind level).
以属性类型为温度属性为例,表6为更新属性消息示例。Taking the attribute type as the temperature attribute as an example, Table 6 is an example of the update attribute message.
表6Table 6
Figure PCTCN2021075614-appb-000003
Figure PCTCN2021075614-appb-000003
S82,空调设备向手机返回属性状态通知消息,该属性状态通知消息中包含操作码(指示消息类型为属性状态通知消息)、事务标识、属性类型、以及属性参数(可以指示更新后的开光状态、温度值或者风力等级)。S82, the air conditioner returns an attribute status notification message to the mobile phone, and the attribute status notification message includes an operation code (indicating that the message type is an attribute status notification message), a transaction identifier, an attribute type, and an attribute parameter (which can indicate the updated activation status, temperature value or wind level).
以属性类型为温度属性为例,表7为属性状态通知消息示例。Taking the attribute type as the temperature attribute as an example, Table 7 is an example of the attribute status notification message.
表7Table 7
Figure PCTCN2021075614-appb-000004
Figure PCTCN2021075614-appb-000004
上述消息的事务标识可以是更新属性消息的事务标识,表示该消息为更新属性消息的响应消息。The transaction identifier of the above message may be the transaction identifier of the update attribute message, indicating that the message is a response message of the update attribute message.
请参考图9,其是本申请实施例涉及的一种属性状态通知消息的交互流程示意图。以空调属性状态通知过程为例,该流程如下:Please refer to FIG. 9 , which is a schematic diagram of an interaction flow of an attribute status notification message involved in an embodiment of the present application. Take the air conditioner attribute status notification process as an example, the process is as follows:
S91,空调向手机发送属性状态通知消息,该属性状态通知消息中包含操作码(指示消息类型为属性状态通知消息)、事务标识、属性类型、以及属性参数。S91 , the air conditioner sends an attribute status notification message to the mobile phone, where the attribute status notification message includes an operation code (indicating that the message type is an attribute status notification message), a transaction identifier, an attribute type, and an attribute parameter.
以属性类型为温度属性为例,表8为属性状态通知消息示例。Taking the attribute type as the temperature attribute as an example, Table 8 is an example of the attribute status notification message.
表8Table 8
Figure PCTCN2021075614-appb-000005
Figure PCTCN2021075614-appb-000005
S92,手机向空调设备发送属性状态通知确认消息,该属性状态通知确认消息中包含操作码(指示消息类型为属性状态通知确认消息)、事务标识。S92, the mobile phone sends an attribute status notification confirmation message to the air conditioner, where the attribute status notification confirmation message includes an operation code (indicating that the message type is an attribute status notification confirmation message) and a transaction identifier.
以属性类型为温度属性为例,表9为属性状态通知确认消息示例。Taking the attribute type as the temperature attribute as an example, Table 9 is an example of the attribute status notification confirmation message.
表9Table 9
OpcodeOpcode TIDTID
0xD2A8040xD2A804 0x010x01
属性状态通知确认消息Property Status Notification Confirmation Message 事务标识Transaction ID
其中,上述消息的事务标识为属性状态通知消息的事务标识,表示该消息为属性状态通知消息的响应消息。The transaction identifier of the above message is the transaction identifier of the attribute status notification message, indicating that the message is a response message of the attribute status notification message.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are apparatus embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
请参考图10,其示出了本申请一个实施例提供的物联网中的消息交互装置的框图。该装置用于物联网中的第一设备中。如图10所示,该装置可以包括:Please refer to FIG. 10 , which shows a block diagram of a message interaction apparatus in the Internet of Things provided by an embodiment of the present application. The device is used in the first device in the Internet of Things. As shown in Figure 10, the apparatus may include:
第一消息接收模块1001,用于接收第二设备发送的第一模型消息;a first message receiving module 1001, configured to receive a first model message sent by a second device;
其中,所述第一模型消息中包含属性类型,所述属性类型用于指示目标应用功能的功能属性。Wherein, the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
在一种可能的实现方式中,所述第一模型消息中还包含第一操作码,所述第一操作码用于指示所述第一模型消息的消息类型。In a possible implementation manner, the first model message further includes a first opcode, where the first opcode is used to indicate a message type of the first model message.
在一种可能的实现方式中,所述第一模型消息的消息类型包括:读取属性 消息、更新属性消息或者属性状态通知消息;In a possible implementation manner, the message type of the first model message includes: read property message, update property message or property state notification message;
所述读取属性消息用于向所述第一设备读取所述属性类型相关的数据;The read attribute message is used to read data related to the attribute type from the first device;
所述更新属性消息用于指示所述第一设备更新所述属性类型相关的数据;The update attribute message is used to instruct the first device to update the data related to the attribute type;
所述属性状态通知消息用于将所述属性类型相关的数据通知给所述第一设备。The attribute status notification message is used to notify the first device of data related to the attribute type.
在一种可能的实现方式中,所述第一模型消息中还包含事务标识,所述事务标识用于指示对应的消息为重传消息或者新消息。In a possible implementation manner, the first model message further includes a transaction identifier, where the transaction identifier is used to indicate that the corresponding message is a retransmitted message or a new message.
在一种可能的实现方式中,所述第一模型消息中还包含属性参数,所述属性参数用于指示所述属性类型的参数,或者,属性参数用于指示所述属性类型的属性值。In a possible implementation manner, the first model message further includes an attribute parameter, where the attribute parameter is used to indicate a parameter of the attribute type, or the attribute parameter is used to indicate an attribute value of the attribute type.
在一种可能的实现方式中,当所述第一模型消息的消息类型为更新属性消息或者属性状态通知消息时,所述第一模型消息中还包含所述属性参数。In a possible implementation manner, when the message type of the first model message is an attribute update message or an attribute status notification message, the first model message further includes the attribute parameter.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:
第二消息发送模块,用于当所述第一模型消息的消息类型为属性状态通知消息时,向所述第二设备发送第二模型消息;所述第二模型消息中包含第二操作码;所述第二操作码用于指示所述第二模型消息的消息类型为属性状态通知确认消息。a second message sending module, configured to send a second model message to the second device when the message type of the first model message is an attribute state notification message; the second model message includes a second operation code; The second operation code is used to indicate that the message type of the second model message is an attribute status notification confirmation message.
在一种可能的实现方式中,所述第二模型消息中包含事务标识,所述事务标识用于指示对应的消息为重传消息或者新消息。In a possible implementation manner, the second model message includes a transaction identifier, and the transaction identifier is used to indicate that the corresponding message is a retransmitted message or a new message.
在一种可能的实现方式中,所述第二模型消息中包含所述属性类型。In a possible implementation manner, the attribute type is included in the second model message.
在一种可能的实现方式中,所述第二模型消息中还包含属性参数,所述属性参数用于指示所述属性类型的参数,或者,属性参数用于指示所述属性类型的属性值。In a possible implementation manner, the second model message further includes an attribute parameter, where the attribute parameter is used to indicate a parameter of the attribute type, or the attribute parameter is used to indicate an attribute value of the attribute type.
在一种可能的实现方式中,所述第二消息发送模块,用于,In a possible implementation manner, the second message sending module is configured to:
当所述第一模型消息的消息类型为属性状态通知消息,且接收到用于指示反馈属性状态通知确认消息的第一确认指示时,向所述第二设备发送所述第二模型消息;sending the second model message to the second device when the message type of the first model message is an attribute state notification message and a first confirmation indication for indicating feedback of an attribute state notification confirmation message is received;
或者,or,
当所述第一模型消息的消息类型为属性状态通知消息,且未接收到用于指示是否反馈属性状态通知确认消息的第二确认指示时,向所述第二设备发送所述第二模型消息。When the message type of the first model message is an attribute status notification message and a second confirmation indication for indicating whether to feed back an attribute status notification confirmation message is not received, the second model message is sent to the second device .
在一种可能的实现方式中,所述第一设备与所述第二设备之间通过BLE Mesh相连;所述第一消息接收模块1001,用于接收所述第二设备基于BLE Mesh模型发送的所述第一模型消息。In a possible implementation manner, the first device and the second device are connected through BLE Mesh; the first message receiving module 1001 is configured to receive a message sent by the second device based on the BLE Mesh model the first model message.
在一种可能的实现方式中,所述目标应用功能是所述BLE Mesh模型支持的至少一种应用功能中的任意一种。In a possible implementation manner, the target application function is any one of at least one application function supported by the BLE Mesh model.
综上所述,本申请实施例所示的方案,物联网设备之间通过支持一种或者多种应用功能的模型消息进行信息交互,在模型消息中携带属性类型来指示当前消息对应的应用功能,也就是说,对于多种不同的应用功能,发送端和接收 端只需要通过模型消息中的属性类型即可以进行准确的区分,从而可以实现通过同一种模型消息支持多种不同的应用功能,相应的,也就不需要在物联网设备中为每一种应用功能单独设置一个BLE Mesh模型,从而降低了BLE Mesh中的设备的模型消息交互的复杂度,从而提高了BLE Mesh中的消息交互的效率和资源利用率。To sum up, in the solutions shown in the embodiments of the present application, IoT devices exchange information through model messages that support one or more application functions, and attribute types are carried in the model messages to indicate the application functions corresponding to the current message. , that is to say, for a variety of different application functions, the sender and the receiver can accurately distinguish only by the attribute type in the model message, so that the same model message can support a variety of different application functions. Correspondingly, it is not necessary to set a BLE Mesh model separately for each application function in the IoT device, thereby reducing the complexity of the model message interaction of the devices in the BLE Mesh, thereby improving the message interaction in the BLE Mesh. efficiency and resource utilization.
此外,本申请实施例所示的方案,通过支持一种或多种不同的应用功能的模型消息进行信息交互,降低了物联网设备的计算和存储资源的开销,从而提高了BLE Mesh中的消息交互的资源利用率。In addition, the solutions shown in the embodiments of this application perform information exchange through model messages that support one or more different application functions, which reduces the overhead of computing and storage resources of IoT devices, thereby improving the message flow in BLE Mesh. Interaction resource utilization.
请参考图11,其示出了本申请一个实施例提供的物联网中的消息交互装置的框图。该装置用于物联网中的第二设备中。如图11所示,该装置可以包括:Please refer to FIG. 11 , which shows a block diagram of a message interaction apparatus in the Internet of Things provided by an embodiment of the present application. The device is used in a second device in the Internet of Things. As shown in Figure 11, the apparatus may include:
第一消息发送模块1101,用于向第一设备发送第一模型消息;a first message sending module 1101, configured to send a first model message to a first device;
其中,所述第一模型消息中包含属性类型,所述属性类型用于指示目标应用功能的功能属性。Wherein, the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
在一种可能的实现方式中,所述第一模型消息中还包含第一操作码,所述第一操作码用于指示所述第一模型消息的消息类型。In a possible implementation manner, the first model message further includes a first opcode, where the first opcode is used to indicate a message type of the first model message.
在一种可能的实现方式中,所述第一模型消息的消息类型包括:读取属性消息、更新属性消息或者属性状态通知消息;In a possible implementation manner, the message type of the first model message includes: read property message, update property message or property state notification message;
所述读取属性消息用于向所述第一设备读取所述属性类型相关的数据;The read attribute message is used to read data related to the attribute type from the first device;
所述更新属性消息用于指示所述第一设备更新所述属性类型相关的数据;The update attribute message is used to instruct the first device to update the data related to the attribute type;
所述属性状态通知消息用于将所述属性类型相关的数据通知给所述第一设备。The attribute status notification message is used to notify the first device of data related to the attribute type.
在一种可能的实现方式中,所述第一模型消息中还包含事务标识,所述事务标识用于指示对应的消息为重传消息或者新消息。In a possible implementation manner, the first model message further includes a transaction identifier, where the transaction identifier is used to indicate that the corresponding message is a retransmitted message or a new message.
在一种可能的实现方式中,所述第一模型消息中还包含属性参数,所述属性参数用于指示所述属性类型的参数,或者,属性参数用于指示所述属性类型的属性值。In a possible implementation manner, the first model message further includes an attribute parameter, where the attribute parameter is used to indicate a parameter of the attribute type, or the attribute parameter is used to indicate an attribute value of the attribute type.
在一种可能的实现方式中,当所述第一模型消息的消息类型为更新属性消息或者属性状态通知消息时,所述第一模型消息中还包含所述属性参数。In a possible implementation manner, when the message type of the first model message is an attribute update message or an attribute status notification message, the first model message further includes the attribute parameter.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:
第二消息接收模块,用于当所述第一模型消息的消息类型为属性状态通知消息时,接收所述第二设备发送的第二模型消息;所述第二模型消息中包含第二操作码;所述第二操作码用于指示所述第二模型消息的消息类型为属性状态通知确认消息。A second message receiving module, configured to receive a second model message sent by the second device when the message type of the first model message is an attribute state notification message; the second model message includes a second operation code ; The second operation code is used to indicate that the message type of the second model message is an attribute status notification confirmation message.
在一种可能的实现方式中,所述第二模型消息中包含事务标识,所述事务标识用于指示对应的消息为重传消息或者新消息。In a possible implementation manner, the second model message includes a transaction identifier, and the transaction identifier is used to indicate that the corresponding message is a retransmitted message or a new message.
在一种可能的实现方式中,所述第二模型消息中包含所述属性类型。In a possible implementation manner, the attribute type is included in the second model message.
在一种可能的实现方式中,所述第二模型消息中还包含属性参数,所述属性参数用于指示所述属性类型的参数,或者,属性参数用于指示所述属性类型 的属性值。In a possible implementation manner, the second model message further includes an attribute parameter, where the attribute parameter is used to indicate a parameter of the attribute type, or the attribute parameter is used to indicate an attribute value of the attribute type.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:
指示发送模块,用于向所述第一设备发送第二确认指示,所述第二确认指示用于指示是否反馈属性状态通知确认消息。The instruction sending module is configured to send a second confirmation indication to the first device, where the second confirmation indication is used to indicate whether to feed back an attribute status notification confirmation message.
在一种可能的实现方式中,所述第二设备与所述第一设备之间通过BLE Mesh相连,所述第一消息发送模块,用于基于BLE Mesh模型向所述第一设备发送所述第一模型消息。In a possible implementation manner, the second device and the first device are connected through BLE Mesh, and the first message sending module is configured to send the first device based on the BLE Mesh model. First model message.
在一种可能的实现方式中,所述目标应用功能是所述BLE Mesh模型支持的至少一种应用功能中的任意一种。In a possible implementation manner, the target application function is any one of at least one application function supported by the BLE Mesh model.
综上所述,本申请实施例所示的方案,物联网设备之间通过支持一种或者多种应用功能的模型消息进行信息交互,在模型消息中携带属性类型来指示当前消息对应的应用功能,也就是说,对于多种不同的应用功能,发送端和接收端只需要通过模型消息中的属性类型即可以进行准确的区分,从而可以实现通过同一种模型消息支持多种不同的应用功能,相应的,也就不需要在物联网设备中为每一种应用功能单独设置一个BLE Mesh模型,从而降低了BLE Mesh中的设备的模型消息交互的复杂度,从而提高了BLE Mesh中的消息交互的效率和资源利用率。To sum up, in the solutions shown in the embodiments of the present application, IoT devices exchange information through model messages that support one or more application functions, and attribute types are carried in the model messages to indicate the application functions corresponding to the current message. , that is to say, for a variety of different application functions, the sender and the receiver can accurately distinguish only by the attribute type in the model message, so that the same model message can support a variety of different application functions. Correspondingly, it is not necessary to set a BLE Mesh model separately for each application function in the IoT device, thereby reducing the complexity of the model message interaction of the devices in the BLE Mesh, thereby improving the message interaction in the BLE Mesh. efficiency and resource utilization.
此外,本申请实施例所示的方案,通过支持一种或多种不同的应用功能的模型消息进行信息交互,降低了物联网设备的计算和存储资源的开销,从而提高了BLE Mesh中的消息交互的资源利用率。In addition, the solutions shown in the embodiments of this application perform information exchange through model messages that support one or more different application functions, which reduces the overhead of computing and storage resources of IoT devices, thereby improving the message flow in BLE Mesh. Interaction resource utilization.
需要说明的一点是,上述实施例提供的装置在实现其功能时,仅以上述各个功能模块的划分进行举例说明,实际应用中,可以根据实际需要而将上述功能分配由不同的功能模块完成,即将设备的内容结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。It should be noted that, when the device provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated to different functional modules according to actual needs. That is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.
请参考图12,其示出了本申请一个实施例提供的计算机设备1200的结构示意图。该计算机设备1200可以包括:处理器1201、接收器1202、发射器1203、存储器1204和总线1205。Please refer to FIG. 12 , which shows a schematic structural diagram of a computer device 1200 provided by an embodiment of the present application. The computer device 1200 may include: a processor 1201 , a receiver 1202 , a transmitter 1203 , a memory 1204 and a bus 1205 .
处理器1201包括一个或者一个以上处理核心,处理器1201通过运行软件程序以及模块,从而执行各种功能应用以及信息处理。The processor 1201 includes one or more processing cores, and the processor 1201 executes various functional applications and information processing by running software programs and modules.
接收器1202和发射器1203可以实现为一个通信组件,该通信组件可以是一块通信芯片。该通信芯片也可以称为收发器。The receiver 1202 and the transmitter 1203 may be implemented as a communication component, which may be a communication chip. The communication chip may also be referred to as a transceiver.
存储器1204通过总线1205与处理器1201相连。The memory 1204 is connected to the processor 1201 through the bus 1205 .
存储器1204可用于存储计算机程序,处理器1201用于执行该计算机程序,以实现上述方法实施例中的服务端设备、配置设备、云平台或者账号服务器执行的各个步骤。The memory 1204 can be used to store a computer program, and the processor 1201 is used to execute the computer program to implement each step performed by the server device, configuration device, cloud platform or account server in the above method embodiments.
此外,存储器1204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,易失性或非易失性存储设备包括但不限于:磁盘或光盘,电可擦除可编程只读存储器,可擦除可编程只读存储器,静态随时存取存储器,只读存储器,磁存储器,快闪存储器,可编程只读存储器。Additionally, memory 1204 may be implemented by any type or combination of volatile or non-volatile storage devices including, but not limited to, magnetic or optical disks, electrically erasable programmable Read Only Memory, Erasable Programmable Read Only Memory, Static Anytime Access Memory, Read Only Memory, Magnetic Memory, Flash Memory, Programmable Read Only Memory.
在示例性实施例中,所述计算机设备包括处理器、存储器和收发器(该收发器可以包括接收器和发射器,接收器用于接收信息,发射器用于发送信息)。In an exemplary embodiment, the computer device includes a processor, a memory, and a transceiver (the transceiver may include a receiver for receiving information and a transmitter for transmitting information) and a transmitter.
在一种可能的实现方式中,当计算机设备实现为第一设备时,In a possible implementation manner, when the computer device is implemented as the first device,
所述收发器,用于接收第二设备发送的第一模型消息;the transceiver, configured to receive the first model message sent by the second device;
其中,所述第一模型消息中包含属性类型,所述属性类型用于指示目标应用功能的功能属性。Wherein, the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
当计算机设备实现为第一设备时,本申请实施例涉及的计算机设备中的处理器和收发器,可以执行上述图3或者图5所示的方法中,由第一设备执行的步骤,此处不再赘述。When the computer device is implemented as the first device, the processor and transceiver in the computer device involved in the embodiments of the present application may perform the steps performed by the first device in the method shown in FIG. 3 or FIG. No longer.
在一种可能的实现方式中,当计算机设备实现为第二设备时,In a possible implementation manner, when the computer device is implemented as the second device,
收发器,用于向第一设备发送第一模型消息;a transceiver for sending a first model message to the first device;
其中,所述第一模型消息中包含属性类型,所述属性类型用于指示目标应用功能的功能属性。Wherein, the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
当计算机设备实现为第二设备时,本申请实施例涉及的计算机设备中的处理器和收发器,可以执行上述图3或者图5所示的方法中,由第二设备执行的步骤,此处不再赘述。When the computer device is implemented as a second device, the processor and transceiver in the computer device involved in the embodiments of the present application may perform the steps performed by the second device in the method shown in FIG. 3 or FIG. No longer.
本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述图3或图5所示的物联网中的信息交互方法中的各个步骤。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is loaded and executed by a processor to implement the above-mentioned Internet of Things shown in FIG. 3 or FIG. 5 . The various steps in the information exchange method.
本申请还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述3或图5所示的物联网中的信息交互方法中的各个步骤。The application also provides a computer program product or computer program, the computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes each step in the information interaction method in the Internet of Things shown in the above 3 or FIG. 5 .
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should realize that, in one or more of the above examples, the functions described in the embodiments of the present application may be implemented by hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
以上所述仅为本申请的示例性实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.

Claims (31)

  1. 一种物联网中的消息交互方法,其特征在于,所述方法由物联网中的第一设备执行,所述方法包括:A message interaction method in the Internet of Things, characterized in that the method is executed by a first device in the Internet of Things, and the method includes:
    接收第二设备发送的第一模型消息;receiving the first model message sent by the second device;
    其中,所述第一模型消息中包含属性类型,所述属性类型用于指示目标应用功能的功能属性。Wherein, the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
  2. 根据权利要求1所述的方法,其特征在于,所述第一模型消息中还包含第一操作码,所述第一操作码用于指示所述第一模型消息的消息类型。The method according to claim 1, wherein the first model message further includes a first operation code, and the first operation code is used to indicate a message type of the first model message.
  3. 根据权利要求2所述的方法,其特征在于,所述第一模型消息的消息类型包括:读取属性消息、更新属性消息或者属性状态通知消息;The method according to claim 2, wherein the message type of the first model message comprises: read attribute message, update attribute message or attribute status notification message;
    所述读取属性消息用于向所述第一设备读取所述属性类型相关的数据;The read attribute message is used to read data related to the attribute type from the first device;
    所述更新属性消息用于指示所述第一设备更新所述属性类型相关的数据;The update attribute message is used to instruct the first device to update the data related to the attribute type;
    所述属性状态通知消息用于将所述属性类型相关的数据通知给所述第一设备。The attribute status notification message is used to notify the first device of data related to the attribute type.
  4. 根据权利要求1所述的方法,其特征在于,所述第一模型消息中还包含事务标识,所述事务标识用于指示对应的消息为重传消息或者新消息。The method according to claim 1, wherein the first model message further includes a transaction identifier, and the transaction identifier is used to indicate that the corresponding message is a retransmission message or a new message.
  5. 根据权利要求1所述的方法,其特征在于,所述第一模型消息中还包含属性参数,所述属性参数用于指示所述属性类型的参数,或者,属性参数用于指示所述属性类型的属性值。The method according to claim 1, wherein the first model message further includes an attribute parameter, and the attribute parameter is used to indicate the parameter of the attribute type, or the attribute parameter is used to indicate the attribute type property value.
  6. 根据权利要求5所述的方法,其特征在于,当所述第一模型消息的消息类型为更新属性消息或者属性状态通知消息时,所述第一模型消息中还包含所述属性参数。The method according to claim 5, wherein when the message type of the first model message is an attribute update message or an attribute status notification message, the first model message further includes the attribute parameter.
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    当所述第一模型消息的消息类型为属性状态通知消息时,向所述第二设备发送第二模型消息;所述第二模型消息中包含第二操作码;所述第二操作码用于指示所述第二模型消息的消息类型为属性状态通知确认消息。When the message type of the first model message is an attribute status notification message, a second model message is sent to the second device; the second model message includes a second operation code; the second operation code is used for Indicates that the message type of the second model message is an attribute status notification confirmation message.
  8. 根据权利要求7所述的方法,其特征在于,所述第二模型消息中包含事务标识,所述事务标识用于指示对应的消息为重传消息或者新消息。The method according to claim 7, wherein the second model message includes a transaction identifier, and the transaction identifier is used to indicate that the corresponding message is a retransmission message or a new message.
  9. 根据权利要求7所述的方法,其特征在于,所述第二模型消息中包含所述属性类型。The method according to claim 7, wherein the attribute type is included in the second model message.
  10. 根据权利要求9所述的方法,其特征在于,所述第二模型消息中还包含属性参数,所述属性参数用于指示所述属性类型的参数,或者,属性参数用于指示所述属性类型的属性值。The method according to claim 9, wherein the second model message further includes an attribute parameter, and the attribute parameter is used to indicate a parameter of the attribute type, or the attribute parameter is used to indicate the attribute type property value.
  11. 根据权利要求7所述的方法,其特征在于,所述当所述第一模型消息的消息类型为属性状态通知消息时,向所述第二设备发送第二模型消息,包括:The method according to claim 7, wherein, when the message type of the first model message is an attribute status notification message, sending the second model message to the second device comprises:
    当所述第一模型消息的消息类型为属性状态通知消息,且接收到用于指示反馈属性状态通知确认消息的第一确认指示时,向所述第二设备发送所述第二模型消息;sending the second model message to the second device when the message type of the first model message is an attribute state notification message and a first confirmation indication for indicating feedback of an attribute state notification confirmation message is received;
    或者,or,
    当所述第一模型消息的消息类型为属性状态通知消息,且未接收到用于指示是否反馈属性状态通知确认消息的第二确认指示时,向所述第二设备发送所述第二模型消息。When the message type of the first model message is an attribute status notification message and a second confirmation indication for indicating whether to feed back an attribute status notification confirmation message is not received, the second model message is sent to the second device .
  12. 根据权利要求1至11任一所述的方法,其特征在于,所述第一设备与所述第二设备之间通过基于低功耗蓝牙的无线网格网络BLE Mesh相连,所述接收第二设备发送的第一模型消息,包括:The method according to any one of claims 1 to 11, wherein the first device and the second device are connected through a wireless mesh network BLE Mesh based on Bluetooth low energy consumption, and the receiving the second device The first model message sent by the device, including:
    接收所述第二设备基于BLE Mesh模型发送的所述第一模型消息。Receive the first model message sent by the second device based on the BLE Mesh model.
  13. 根据权利要求12所述的方法,其特征在于,所述目标应用功能是所述BLE Mesh模型支持的至少一种应用功能中的任意一种。The method according to claim 12, wherein the target application function is any one of at least one application function supported by the BLE Mesh model.
  14. 一种物联网中的消息交互方法,其特征在于,所述方法由物联网中的第二设备执行,所述方法包括:A message interaction method in the Internet of Things, characterized in that the method is executed by a second device in the Internet of Things, and the method includes:
    向第一设备发送第一模型消息;sending a first model message to the first device;
    其中,所述第一模型消息中包含属性类型,所述属性类型用于指示目标应用功能的功能属性。Wherein, the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
  15. 根据权利要求14所述的方法,其特征在于,所述第一模型消息中还包含第一操作码,所述第一操作码用于指示所述第一模型消息的消息类型。The method according to claim 14, wherein the first model message further includes a first operation code, and the first operation code is used to indicate a message type of the first model message.
  16. 根据权利要求15所述的方法,其特征在于,所述第一模型消息的消息类型包括:读取属性消息、更新属性消息或者属性状态通知消息;The method according to claim 15, wherein the message type of the first model message comprises: read property message, update property message or property status notification message;
    所述读取属性消息用于向所述第一设备读取所述属性类型相关的数据;The read attribute message is used to read data related to the attribute type from the first device;
    所述更新属性消息用于指示所述第一设备更新所述属性类型相关的数据;The update attribute message is used to instruct the first device to update the data related to the attribute type;
    所述属性状态通知消息用于将所述属性类型相关的数据通知给所述第一设备。The attribute status notification message is used to notify the first device of data related to the attribute type.
  17. 根据权利要求14所述的方法,其特征在于,所述第一模型消息中还包 含事务标识,所述事务标识用于指示对应的消息为重传消息或者新消息。The method according to claim 14, wherein the first model message further includes a transaction identifier, and the transaction identifier is used to indicate that the corresponding message is a retransmission message or a new message.
  18. 根据权利要求14所述的方法,其特征在于,所述第一模型消息中还包含属性参数,所述属性参数用于指示所述属性类型的参数,或者,属性参数用于指示所述属性类型的属性值。The method according to claim 14, wherein the first model message further includes an attribute parameter, and the attribute parameter is used to indicate a parameter of the attribute type, or the attribute parameter is used to indicate the attribute type property value.
  19. 根据权利要求18所述的方法,其特征在于,当所述第一模型消息的消息类型为更新属性消息或者属性状态通知消息时,所述第一模型消息中还包含所述属性参数。The method according to claim 18, wherein when the message type of the first model message is an attribute update message or an attribute status notification message, the first model message further includes the attribute parameter.
  20. 根据权利要求14所述的方法,其特征在于,所述方法还包括:The method of claim 14, wherein the method further comprises:
    当所述第一模型消息的消息类型为属性状态通知消息时,接收所述第二设备发送的第二模型消息;所述第二模型消息中包含第二操作码;所述第二操作码用于指示所述第二模型消息的消息类型为属性状态通知确认消息。When the message type of the first model message is an attribute status notification message, a second model message sent by the second device is received; the second model message includes a second operation code; the second operation code uses to indicate that the message type of the second model message is an attribute status notification confirmation message.
  21. 根据权利要求20所述的方法,其特征在于,所述第二模型消息中包含事务标识,所述事务标识用于指示对应的消息为重传消息或者新消息。The method according to claim 20, wherein the second model message includes a transaction identifier, and the transaction identifier is used to indicate that the corresponding message is a retransmission message or a new message.
  22. 根据权利要求20所述的方法,其特征在于,所述第二模型消息中包含所述属性类型。The method according to claim 20, wherein the attribute type is included in the second model message.
  23. 根据权利要求22所述的方法,其特征在于,所述第二模型消息中还包含属性参数,所述属性参数用于指示所述属性类型的参数,或者,属性参数用于指示所述属性类型的属性值。The method according to claim 22, wherein the second model message further includes an attribute parameter, and the attribute parameter is used to indicate a parameter of the attribute type, or the attribute parameter is used to indicate the attribute type property value.
  24. 根据权利要求20所述的方法,其特征在于,所述方法还包括:The method of claim 20, wherein the method further comprises:
    向所述第一设备发送第二确认指示,所述第二确认指示用于指示是否反馈属性状态通知确认消息。Sending a second confirmation indication to the first device, where the second confirmation indication is used to indicate whether to feed back an attribute status notification confirmation message.
  25. 根据权利要求14至24任一所述的方法,其特征在于,所述第二设备与所述第一设备之间通过BLE Mesh相连,所述向第一设备发送第一模型消息,包括:The method according to any one of claims 14 to 24, wherein the second device is connected to the first device through BLE Mesh, and the sending the first model message to the first device includes:
    基于BLE Mesh模型向所述第一设备发送所述第一模型消息。Send the first model message to the first device based on the BLE Mesh model.
  26. 根据权利要求25所述的方法,其特征在于,所述目标应用功能是所述BLE Mesh模型支持的至少一种应用功能中的任意一种。The method according to claim 25, wherein the target application function is any one of at least one application function supported by the BLE Mesh model.
  27. 一种物联网中的消息交互装置,其特征在于,所述装置用于物联网中的第一设备中,所述装置包括:A message interaction device in the Internet of Things, characterized in that the device is used in a first device in the Internet of Things, and the device comprises:
    第一消息接收模块,用于接收第二设备发送的第一模型消息;a first message receiving module, configured to receive the first model message sent by the second device;
    其中,所述第一模型消息中包含属性类型,所述属性类型用于指示目标应用功能的功能属性。Wherein, the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
  28. 一种物联网中的消息交互装置,其特征在于,所述装置用于物联网中的第二设备中,所述装置包括:A message interaction device in the Internet of Things, characterized in that the device is used in a second device in the Internet of Things, and the device comprises:
    第一消息发送模块,用于向第一设备发送第一模型消息;a first message sending module, configured to send a first model message to the first device;
    其中,所述第一模型消息中包含属性类型,所述属性类型用于指示目标应用功能的功能属性。Wherein, the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
  29. 一种计算机设备,其特征在于,所述计算机设备实现为第一设备;所述计算机设备包括处理器、存储器和收发器;A computer device, characterized in that the computer device is implemented as a first device; the computer device includes a processor, a memory, and a transceiver;
    收发器,用于接收第二设备发送的第一模型消息;a transceiver, configured to receive the first model message sent by the second device;
    其中,所述第一模型消息中包含属性类型,所述属性类型用于指示目标应用功能的功能属性。Wherein, the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
  30. 一种计算机设备,其特征在于,所述计算机设备实现为第二设备;所述计算机设备包括处理器、存储器和收发器;A computer device, characterized in that the computer device is implemented as a second device; the computer device includes a processor, a memory, and a transceiver;
    收发器,用于向第一设备发送第一模型消息;a transceiver for sending a first model message to the first device;
    其中,所述第一模型消息中包含属性类型,所述属性类型用于指示目标应用功能的功能属性。Wherein, the first model message includes an attribute type, and the attribute type is used to indicate the function attribute of the target application function.
  31. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序,所述计算机程序用于被处理器执行,以实现如权利要求1至26任一项所述的物联网中的消息交互方法。A computer-readable storage medium, characterized in that, a computer program is stored in the storage medium, and the computer program is used to be executed by a processor to implement the Internet of Things according to any one of claims 1 to 26. message interaction method.
PCT/CN2021/075614 2021-02-05 2021-02-05 Message exchange method and apparatus in internet of things, and computer device and storage medium WO2022165765A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202180084322.7A CN116615924A (en) 2021-02-05 2021-02-05 Message interaction method and device in Internet of things, computer equipment and storage medium
PCT/CN2021/075614 WO2022165765A1 (en) 2021-02-05 2021-02-05 Message exchange method and apparatus in internet of things, and computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/075614 WO2022165765A1 (en) 2021-02-05 2021-02-05 Message exchange method and apparatus in internet of things, and computer device and storage medium

Publications (1)

Publication Number Publication Date
WO2022165765A1 true WO2022165765A1 (en) 2022-08-11

Family

ID=82741924

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/075614 WO2022165765A1 (en) 2021-02-05 2021-02-05 Message exchange method and apparatus in internet of things, and computer device and storage medium

Country Status (2)

Country Link
CN (1) CN116615924A (en)
WO (1) WO2022165765A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110198533A (en) * 2018-02-26 2019-09-03 安凯(广州)微电子技术有限公司 A kind of method and BLE bluetooth equipment of long-range control BLE bluetooth equipment
CN111279644A (en) * 2017-10-27 2020-06-12 瑞典爱立信有限公司 Method and apparatus for updating retransmission times in wireless mesh networks
CN111308900A (en) * 2020-02-28 2020-06-19 Oppo(重庆)智能科技有限公司 Intelligent electric appliance, control method and storage medium
WO2020192946A1 (en) * 2019-03-27 2020-10-01 Telefonaktiebolaget Lm Ericsson (Publ) Wakeup radio for low power nodes in bluetooth

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111279644A (en) * 2017-10-27 2020-06-12 瑞典爱立信有限公司 Method and apparatus for updating retransmission times in wireless mesh networks
CN110198533A (en) * 2018-02-26 2019-09-03 安凯(广州)微电子技术有限公司 A kind of method and BLE bluetooth equipment of long-range control BLE bluetooth equipment
WO2020192946A1 (en) * 2019-03-27 2020-10-01 Telefonaktiebolaget Lm Ericsson (Publ) Wakeup radio for low power nodes in bluetooth
CN111308900A (en) * 2020-02-28 2020-06-19 Oppo(重庆)智能科技有限公司 Intelligent electric appliance, control method and storage medium

Also Published As

Publication number Publication date
CN116615924A (en) 2023-08-18

Similar Documents

Publication Publication Date Title
US11071013B2 (en) Method and system for group communication, group server, and group member device
US10320932B2 (en) Conveying state changes using connectionless messaging and a store-and-forward cache
CN105471686B (en) Terminal control method, device and system
CN108431701B (en) Control method, control panel and control system of intelligent household equipment
US10609534B2 (en) Feed service engine
CN108234562B (en) Equipment control method, control equipment and controlled equipment
WO2013113138A1 (en) Cloud air-conditioning system based on internet of things and cloud computing, and application method thereof
CN111880446A (en) Control instruction sending method and control instruction receiving method
WO2015000379A1 (en) Method for remotely controlling air conditioner and remote control system for air conditioner
CN110460596A (en) Lighting system and implementation method are controlled based on the remote speech of wechat small routine and OneNet
WO2020198932A1 (en) Device discovery method and apparatus, control terminal, and internet of things auxiliary device
WO2022165765A1 (en) Message exchange method and apparatus in internet of things, and computer device and storage medium
EP4135265A1 (en) Method and apparatus for controlling device in internet of things, and gateway device and storage medium
WO2021102694A1 (en) Ble mesh device access method and apparatus, device and storage medium
WO2023201587A1 (en) Device control method and apparatus, device, and storage medium
CN113625586B (en) Method and system for controlling intelligent home based on gateway
WO2022087796A1 (en) Zigbee device attribute subscription method and apparatus, and device
CN107807619A (en) Intelligent home control system and its method of work based on virtual server module
WO2024031681A1 (en) Device binding method and apparatus, and device, storage medium and program product
US11507582B2 (en) Event-driven internet of things (IoT) abstraction using rules
WO2024031682A1 (en) Device control method and apparatus, and device, storage medium and program product
WO2024011634A1 (en) Subscription message processing method and apparatus, device, storage medium, and program product
WO2023065354A1 (en) Information reporting method and apparatus, and device and storage medium
WO2023108653A1 (en) Subscription access information processing method and apparatus, computer device and storage medium
WO2023216035A1 (en) Security domain management method and apparatus, device, storage medium and program product

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: 21923781

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202180084322.7

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21923781

Country of ref document: EP

Kind code of ref document: A1