WO2024031682A1 - 设备控制方法、装置、设备、存储介质及程序产品 - Google Patents

设备控制方法、装置、设备、存储介质及程序产品 Download PDF

Info

Publication number
WO2024031682A1
WO2024031682A1 PCT/CN2022/112261 CN2022112261W WO2024031682A1 WO 2024031682 A1 WO2024031682 A1 WO 2024031682A1 CN 2022112261 W CN2022112261 W CN 2022112261W WO 2024031682 A1 WO2024031682 A1 WO 2024031682A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
controllable
proxy
client
internet
Prior art date
Application number
PCT/CN2022/112261
Other languages
English (en)
French (fr)
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 PCT/CN2022/112261 priority Critical patent/WO2024031682A1/zh
Publication of WO2024031682A1 publication Critical patent/WO2024031682A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric

Definitions

  • This application relates to the technical field of the Internet of Things, and in particular to an equipment control method, device, equipment, storage medium and program product.
  • IoT Internet of Things
  • IoT devices can often be controlled by client devices.
  • the client device can access the Internet of Things, establish a connection with the Internet of Things device, and send control instructions to the Internet of Things device through the established connection to achieve control of the Internet of Things device.
  • Embodiments of the present application provide an equipment control method, device, equipment, storage medium and program product.
  • the technical solutions are as follows:
  • embodiments of the present application provide a device control method, which is executed by a proxy device.
  • the method includes:
  • controllable device information includes information on at least one Internet of Things device connected to the proxy device;
  • control instruction sent by the client device according to the controllable device information; the control instruction is used to control a target device in the at least one Internet of Things device;
  • embodiments of the present application provide a device control method, which is executed by a client device.
  • the method includes:
  • controllable device information from the proxy device;
  • the controllable device information includes information on at least one Internet of Things device connected to the proxy device;
  • an equipment control device which includes:
  • a sending module configured to send controllable device information to the client device;
  • the controllable device information includes information on at least one Internet of Things device connected to the agent device;
  • a receiving module configured to receive a control instruction sent by the client device according to the controllable device information; the control instruction is used to control a target device in the at least one Internet of Things device;
  • a sending module configured to send the control instruction to the target device.
  • an equipment control device which includes:
  • An acquisition module configured to obtain controllable device information from the proxy device; the controllable device information includes information on at least one Internet of Things device connected to the proxy device;
  • a sending module configured to send a control instruction to the agent device according to the controllable device information, so that the agent device sends the control instruction to the target device in the at least one Internet of Things device; the control instruction is To control the target device.
  • embodiments of the present application provide a computer device, the computer device is implemented as an information reporting device, and the computer device includes a processor, a memory, and a transceiver;
  • a computer program is stored in the memory, and the processor executes the computer program, so that the computer device implements the above device control method.
  • embodiments of the present application provide a computer device, which 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, so as to Implement the above device control methods.
  • embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, and the computer program is loaded and executed by a processor to implement the above device control method.
  • the present application also provides a chip, which is used to run in a computer device, so that the computer device executes the above device control method.
  • the present application provides a computer program product including 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 device control method.
  • the present application provides a computer program, which is executed by a processor of a computer device to implement the above device control method.
  • the client device can send control instructions to the Internet of Things device connected to the proxy device through the proxy device based on the controllable device information obtained from the proxy device, so as to implement the proxy device through the proxy device.
  • the IoT device connected to the device is controlled, thus expanding the control scenarios of the IoT device by the client device and improving the control efficiency of the IoT device.
  • Figure 1 is a schematic diagram of the network architecture of the Internet of Things provided by an embodiment of the present application.
  • Figure 2 is a flow chart of a device control method provided by an embodiment of the present application.
  • Figure 3 is a flow chart of a device control method provided by an embodiment of the present application.
  • Figure 4 is a flow frame diagram of device control provided by an embodiment of the present application.
  • Figure 5 is a flow chart of a device control method provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of a device control process involved in the embodiment shown in Figure 5;
  • FIG. 7 is a schematic diagram of another device control process involved in the embodiment shown in Figure 5;
  • FIG. 8 is a block diagram of an equipment control device provided by an embodiment of the present application.
  • FIG. 9 is a block diagram of an equipment control device provided by an embodiment of the present application.
  • Figure 10 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • the network architecture of the Internet of Things may include: an Internet of Things device 110 (shown as an Internet of Things device 110a, an Internet of Things device 110b, an Internet of Things device 110c, and an Internet of Things device 110d in Figure 1), a proxy device 120, and a client device 130;
  • the network architecture may also include a bridge device 140; optionally, the network architecture may also include a cloud server 150.
  • the Internet of Things device 110 may refer to a device used to provide client functions or server functions corresponding to the Internet of Things protocol in the Internet of Things.
  • the IoT device 110 may be a smart home device, such as a smart switch, a smart lamp, a smart TV, a smart air conditioner, a smart refrigerator, a smart microwave oven, a smart rice cooker, a sweeping robot, etc.
  • a smart home device such as a smart switch, a smart lamp, a smart TV, a smart air conditioner, a smart refrigerator, a smart microwave oven, a smart rice cooker, a sweeping robot, etc.
  • the IoT device 110 may be an industrial production equipment, such as a lathe, an industrial robot, a solar panel, a wind turbine, or the like.
  • the Internet of Things device 110 may be a commercial service device, such as an unmanned vending machine or the like.
  • the IoT device 110 may be a sensing device, such as a surveillance camera, an infrared sensor, a sound sensor, a temperature sensor, etc.
  • the proxy device 120 is a user-side terminal device.
  • the agent device 120 can be a smart controller, a smart remote control, a smart phone, a tablet, a smart watch, a smart TV, a smart speaker, etc.; or the agent device 120 can also be a personal computer, such as a desktop computer, a portable computer, Personal workstations and more.
  • the proxy device 120 refers to a client entity (which may be a virtual entity) running on a terminal device.
  • the proxy device 120 may run in a terminal device and is used to perform operations on Internet of Things devices.
  • Application Application, APP
  • the client device 130 may be a device having the function of communicating with the agent device 120.
  • the client device 130 may be a vehicle-mounted device (such as a vehicle-mounted device), a smart speaker, a smart TV, etc.
  • the bridge device 140 is used to implement interaction between two devices supporting different Internet of Things protocols.
  • the bridge device 140 provides information conversion and transfer services between IoT devices 110 that support different IoT protocols, or between IoT devices 110 that support different IoT protocols and the proxy device 120 .
  • the bridging device 140 may be a device dedicated for bridging, or the bridging device 140 may also be an intelligent device with a bridging function, such as a gateway or a router.
  • the cloud server 150 is used to provide connection services between the IoT device 110 and other devices outside the IoT ecosystem (such as the above-mentioned proxy device 120).
  • the cloud server 150 may be a cloud platform server of the Internet of Things ecosystem.
  • the proxy device 120 can establish a connection with the Internet of Things device 110 through the cloud server 150.
  • the proxy device 120 may also directly establish a connection with the Internet of Things device 110 .
  • the above-mentioned IoT device 110, proxy device 120, and bridge device 140 may be electronic devices that meet the same or different IoT protocols.
  • they may be electronic devices that meet the requirements of the Connectivity Standards Alliance (CSA). Matter protocol for electronic devices.
  • CSA Connectivity Standards Alliance
  • a secure connection can be established between the IoT device 110a and the IoT device 110c, for example, a secure connection is established based on the Matter specification.
  • the IoT device 110b and the IoT device 110d support different protocol specifications, for example, the IoT device 110b is a Zigbee device and the IoT device 110d is a Matter device, the IoT device 110b and the IoT device 110d can connected via a bridge device 140.
  • Figure 2 shows a flow chart of a device control method provided by an embodiment of the present application.
  • the method can be executed by a proxy device.
  • the proxy device can be the proxy device 120 in the network architecture shown in Figure 1 ; This method may include the following steps:
  • Step 201 Send controllable device information to the client device; the controllable device information includes information on at least one Internet of Things device connected to the agent device.
  • controllable device information may include identification information of at least one Internet of Things device connected to the proxy device, various attribute status information, control method information, event information, and so on.
  • At least one Internet of Things device connected to the above-mentioned proxy device may be an Internet of Things device in the IOT ecosystem connected to the proxy device.
  • the above-mentioned proxy device can establish a connection with the cloud server in the IOT ecosystem to achieve indirect connection with the IoT device; or, the above-mentioned proxy device can also be directly connected with the IoT device in the IOT ecosystem.
  • connection between the agent device and the IoT device may refer to an indirect connection established between the agent device and the IoT device through the cloud server, or it may be a direct connection between the agent device and the IoT device.
  • a binding relationship can be established in advance between the client device and the proxy device for controlling the Internet of Things device on the client device side, with the proxy device as the agent.
  • Step 202 Receive a control instruction sent by the client device according to the controllable device information; the control instruction is used to control a target device in at least one Internet of Things device.
  • Step 203 Send the control instruction to the target device.
  • sending controllable device information to the client device includes:
  • controllable device request sent by the client device; the controllable device request is used to request information about IoT devices that the client device supports control;
  • controllable device request is used to obtain controllable device information from the third cluster in a single time; the third cluster is used to support the proxy capability of the proxy device;
  • controllable device information to the client device, including:
  • the device information acquisition response contains controllable device information.
  • controllable device information includes a device information list; the device information list includes information about an endpoint in at least one Internet of Things device that the client device supports control.
  • the method further includes: when a first subscription relationship already exists, sending a device status notification message to the client device; the device status notification message contains the controllable device information corresponding to the Internet of Things device. Changed status information; wherein the first subscription relationship includes a subscription relationship between the client device and the status information of the Internet of Things device corresponding to the controllable device information.
  • the first subscription relationship includes a subscription relationship between the client device and the status information of the Internet of Things device corresponding to the controllable device information stored in the third cluster.
  • the first subscription relationship corresponds to at least one subscription target path
  • the controllable device information includes the subscription target path whose status has changed, and the changed status corresponding to the subscription target path whose status has changed.
  • the method involved in the embodiment of this application also includes:
  • the third cluster contains controllable device information; the third cluster is used to support the agent capability of the agent device;
  • controllable device information is included in the third cluster, the controllable device information is sent to the client device.
  • the method involved in the embodiment of this application also includes:
  • controllable device information is obtained from the ecosystem where the IoT device connected to the proxy device is located.
  • the client device can send control instructions to the Internet of Things device connected to the proxy device through the proxy device based on the controllable device information obtained from the proxy device, so as to realize the control through the proxy device.
  • the proxy device controls the Internet of Things devices connected to it, thus expanding the control scenarios of the Internet of Things devices by the client device and improving the control efficiency of the Internet of Things devices.
  • Figure 3 shows a flow chart of a device control method provided by an embodiment of the present application.
  • the method can be executed by a client device.
  • the client device can be a client in the network architecture shown in Figure 1.
  • Terminal device 130; the method may include the following steps:
  • Step 301 Obtain controllable device information from the proxy device; the controllable device information includes information on at least one Internet of Things device connected to the proxy device.
  • Step 302 Send a control instruction to the agent device according to the controllable device information, so that the agent device sends the control instruction to at least one target device in the Internet of Things device; the control instruction is used to control the target device.
  • obtaining controllable device information from the proxy device includes:
  • controllable device request is used to request information about IoT devices that the client device supports control;
  • controllable device request is used to obtain controllable device information from the third cluster in a single time; the third cluster is used to support the proxy capability of the proxy device;
  • Receive controllable device information sent by the proxy device according to the controllable device request including:
  • the device information acquisition response contains the controllable device information.
  • controllable device information includes a device information list; the device information list includes information about an endpoint in at least one Internet of Things device that the client device supports control.
  • the method also includes:
  • the device status notification message When a first subscription relationship already exists, receive a device status notification message sent by the proxy device; the device status notification message includes changed status information in the Internet of Things device corresponding to the controllable device information;
  • the first subscription relationship includes a subscription relationship between the client device and the status information of the Internet of Things device corresponding to the controllable device information.
  • the first subscription relationship includes the subscription relationship of the client device to the status information of the Internet of Things device corresponding to the controllable device information stored in the third cluster;
  • the third cluster is used to support the proxy capability of the proxy device.
  • the first subscription relationship corresponds to at least one subscription target path
  • the controllable device information includes the subscription target path whose status has changed, and the changed status corresponding to the subscription target path whose status has changed.
  • the method involved in the embodiment of this application also includes:
  • the binding relationship is used by the client device to control the IoT devices connected to the proxy device through the proxy device;
  • controllable device information from the agent device including:
  • the controllable device information is obtained from the proxy device.
  • query whether there is a long-term binding relationship between the client device and the proxy device including:
  • the second cluster is used to support the client device using other devices as agents to control IoT devices connected to other devices;
  • the binding type in the client binding information corresponding to the proxy device is long-term binding, it is determined that there is a binding relationship between the client device and the proxy device with the binding type being long-term binding.
  • the method involved in the embodiment of this application also includes:
  • the proxy device can send controllable device information to the client device, so that the client device sends control instructions to the Internet of Things device connected to the proxy device through the proxy device, so as to realize control of the Internet of Things devices connected to the proxy device through the proxy device.
  • the proxy device controls the Internet of Things devices connected to it, thus expanding the control scenarios of the Internet of Things devices by the client device and improving the control efficiency of the Internet of Things devices.
  • the client device can control the Internet of Things devices connected to the proxy device through the controllable device information provided by the proxy device.
  • the agent device as a smartphone
  • the client device as a vehicle-mounted device
  • the smartphone is connected to the Internet of Things device through a cloud server as an example
  • Figure 4 shows a flow framework diagram of device control provided by an embodiment of the present application.
  • the smartphone 41 is connected to the cloud server 42 in the IOT ecosystem (for example, the IOT ecosystem can be a smart home system), which includes a home camera. 43 (shown as 2 in Figure 4); at the same time, the smart phone 41 can establish a connection and binding relationship with the vehicle-mounted device 44.
  • the IOT ecosystem for example, the IOT ecosystem can be a smart home system
  • the smart phone 41 can establish a connection and binding relationship with the vehicle-mounted device 44.
  • the vehicle-mounted device 44 can obtain the controllable device information of the smart home system from the smartphone 41, which includes the information of each Internet of Things device (step S1), and obtain it through the vehicle Displayed on the screen of the computer system; the user performs the operation of controlling the opening of the home camera 43 based on the information displayed by the vehicle-mounted device 44, and the vehicle-mounted device 44 generates a control instruction for opening the home camera 43, and sends the control instruction to the smartphone 41 (step S2); the smart phone 41 sends the control instruction to the home camera 43 through the cloud server 42 (step S3); after that, the home camera 43 can execute the control instruction to turn on and collect images.
  • FIG 5 shows a flow chart of a device control method provided by an embodiment of the present application.
  • This method can be interactively executed by a proxy device and a client device.
  • the proxy device and the client device can be as shown in Figure 1 respectively.
  • the proxy device 120 and the client device 130 in the network architecture; the method may include the following steps:
  • Step 501 The client device sends a controllable device request to the proxy device; accordingly, the proxy device receives the controllable device request.
  • controllable device request is used to request information about Internet of Things devices that the client device supports control.
  • a binding relationship may be established between the above-mentioned client device and the proxy device for the client device to use the proxy device as a proxy to control the Internet of Things devices connected to the proxy device.
  • the proxy device can add the first binding device information corresponding to the client device in the first cluster.
  • the above-mentioned first cluster may be a cluster that supports using the proxy device as a proxy to control the Internet of Things devices connected to the proxy device.
  • the first binding device information includes at least one of the following information:
  • Protocol version information of the client device
  • the controllable device list of the client device contains the device information of the IoT devices that the client device supports control among the IoT devices connected to the proxy device;
  • the device information includes at least one of the following information:
  • the online status of the IoT device corresponding to the device information includes online or offline.
  • IOT Agent Binding Cluster IOT Agent Binding Cluster
  • Table 1 the attributes contained in the above-mentioned IOT Agent Binding Cluster can be shown in Table 1 below.
  • logo name type illustrate 0 bindingIOTClientInfo List[bindingDeviceInfo] binding information
  • Table 1 above shows that the IOT Agent Binding Cluster contains the binding IOT Client Info attribute.
  • the value of this attribute is a list containing one or more binding device information (bindingDeviceInfo).
  • bindingDeviceInfo in the above Table 1 can be as shown in the following Table 2.
  • logo name direction answer necessity illustrate 0 deregisterIOTClient C->S Y M Unbind IOTClient
  • the binding types of the above-mentioned binding relationships can be divided into temporary binding and long-term binding.
  • the proxy device can add the above-mentioned first binding device information to the first cluster.
  • the proxy device may not add the above-mentioned first binding device information to the first cluster.
  • the proxy device can add the above-mentioned first binding device information in the first cluster.
  • the client device can add the first client binding information corresponding to the proxy device in the second cluster.
  • the second cluster is used to support the client device to use other devices as agents to control Internet of Things devices connected to other devices.
  • a cluster for supporting control of other Internet of Things devices through a proxy device may be set in the client device.
  • the second cluster may be called an Internet of Things client cluster (IOT Client Cluster).
  • IOT Client Cluster Internet of Things client cluster
  • the second cluster may contain at least one of the following information:
  • the client binding information list contains the client binding information of the established binding relationship.
  • the device control capability information includes at least one of the following information:
  • the device type of the IoT device that the client device supports controlling is the device type of the IoT device that the client device supports controlling
  • the device control capability information when the device control capability information includes the device type of the IoT device that the client device supports control, the device control capability information includes at least one of the following information:
  • the first support information is used to indicate whether the client device supports controlling all types of Internet of Things devices;
  • the device type list contains type identification information of device types of Internet of Things devices that the client device supports control.
  • the first client binding information may include at least one of the following information:
  • Binding type information is used to indicate the binding type of the binding relationship between the proxy device and the client device; the binding type includes temporary binding or long-term binding;
  • the access type information is used to indicate the access type of the client device to the Internet of Things device connected to the proxy device; the access type includes bridge access or proxy access.
  • IOT Client Cluster the definition of IOT Client Cluster can be as shown in Table 5 below.
  • logo name type illustrate 0 VendorID string Manufacturer's logo 1 SupportedDeviceTypes deviceTypeList List of possible supported devices 2 bindingSource List[clientBindingInfo] binding information
  • the structure (struct) of deviceTypeList in the above Table 5 can be as shown in the following Table 6.
  • clientBindingInfo can be shown in Table 7 below.
  • BindingType in the above Table 7 when the value of BindingType in the above Table 7 is 0, it means that the binding relationship is temporary binding. After the client device controls the IoT device connected to the device corresponding to the IOT agent ID, the IOT agent does not need to be saved. The list of controllable devices and other information sent by the device corresponding to the ID (i.e., the above-mentioned controllable device information). On the contrary, when the value of the above BindingType is 1, it means that the binding relationship is long-term binding. After the client device controls the IoT device connected to the device corresponding to the IOT agent ID, it can save the data sent by the device corresponding to the IOT agent ID. The list of controllable devices and other information can be used next time to control the IoT devices connected to the device corresponding to the IOT agent ID.
  • the client device can obtain controllable device information from the proxy device, and control the Internet of Things devices connected to the proxy device based on the controllable device information.
  • the client device can query whether there is a binding relationship with a long-term binding type between the client device and the proxy device; if it is found that there is a binding relationship between the client device and the proxy device, In the case of a long-term binding relationship, the client device can obtain controllable device information from the proxy device, such as sending a controllable device request to the proxy device.
  • the client device may obtain controllable device information from the proxy device only when there is a long-term binding relationship with the proxy device.
  • the above step of querying whether there is a binding relationship with a long-term binding type between the client device and the proxy device may include:
  • the client device queries whether the client binding information corresponding to the proxy device exists in the second cluster; when it is found that the client binding information corresponding to the proxy device exists in the second cluster, obtains the client binding information corresponding to the proxy device.
  • the binding type in the information if the binding type in the client binding information corresponding to the proxy device is long-term binding, it is determined that there is a binding type of long-term binding between the client device and the proxy device. relation.
  • the client device can query the client binding information list of the second cluster whether there is first client binding information containing the identification information of the proxy device, and if so, further read The value of BindingType in the first client binding information. If the value of BindingType is 1, it means that there is a long-term binding relationship between the client device and the proxy device. If the value of BindingType is 0, This means that there is no long-term binding relationship between the client device and the proxy device.
  • a relationship between the client device and the proxy device can also be established.
  • the binding type is long-term binding.
  • the client device when it is found that there is no binding relationship with a long-term binding type between the client device and the proxy device, the client device can display prompt information for establishing a long-term binding to prompt The user initiates the establishment of a long-term binding between the client device and the proxy device on the proxy device side.
  • the client device can also send a binding trigger message to the proxy device to trigger the proxy device to initiate the establishment Long-term binding between client device and agent device.
  • the client device can display prompt information for establishing a long-term binding.
  • the client device can send a binding trigger message to the proxy device.
  • Step 502 The proxy device sends controllable device information to the client device according to the controllable device request; accordingly, the client device receives the controllable device information sent by the proxy device according to the controllable device request.
  • the above controllable device information includes information of at least one Internet of Things device connected to the proxy device and supported by the client device for control.
  • the proxy device after the proxy device receives the above controllable device request, it can send the information of at least one Internet of Things device connected to the proxy device and supported by the client device to the client device, so that the client device can send the request to the client device.
  • User display
  • the proxy device when the above controllable device request is used to obtain controllable device information from the third cluster in a single time, the proxy device can send a device information acquisition response corresponding to the controllable device request to the client device. ;
  • the device information acquisition response contains the above controllable device information; accordingly, the client device receives the device information acquisition response corresponding to the controllable device request sent by the proxy device.
  • the proxy device when the client device sends a request for obtaining controllable device information from the third cluster in one go to the proxy device, the proxy device can carry the controllable device information in the response message of the request.
  • the above-mentioned third cluster is used to support the agent capability of the agent device.
  • the above-mentioned third cluster may be called IOT Agent cluster.
  • IOT Agent cluster the definition of the attributes of the above IOT Agent cluster can be shown in Table 8 below.
  • controllable device information includes a device information list; the device information list includes information about an endpoint in at least one Internet of Things device that the client device supports control.
  • the device model of an Internet of Things device may include one or more endpoints, and each endpoint may correspond to one or more functional services.
  • the information of each of the above endpoints may include information of the service cluster in the endpoint, and the information of the service cluster may include information such as attributes, methods, events, etc. corresponding to a service.
  • the solution shown in the embodiment of this application also includes:
  • the agent device When the first subscription relationship already exists, the agent device sends a device status notification message to the client device; the device status notification message contains changed status information in the Internet of Things device corresponding to the controllable device information; wherein, the first subscription The relationship includes a subscription relationship between the client device and the status information of the Internet of Things device corresponding to the controllable device information.
  • the client device receives the above device status notification message sent by the proxy device.
  • the first subscription relationship includes a subscription relationship between the client device and the status information of the Internet of Things device corresponding to the controllable device information stored in the third cluster.
  • the client device sends a device status subscription request to the proxy device for subscribing to the status information of the Internet of Things devices corresponding to the controllable device information in the third cluster; the proxy device receives the device status subscription request
  • a first subscription relationship can be established, and subsequently a device status notification message corresponding to the first subscription relationship can be sent to the client device; the device status notification message contains the changed status of the Internet of Things device corresponding to the controllable device information. information.
  • the client device receives the device status notification message corresponding to the first subscription relationship sent by the proxy device.
  • the proxy device when the client device sends a device status subscription request to the proxy device, triggering the proxy device to establish the first subscription relationship, the proxy device can send a device status notification message to the client device when the subsequent device status changes.
  • the changed status information may specifically be the attribute status of the changed service cluster; or, in the above device status notification message It may also include information about endpoints in newly added IoT devices in the IOT ecosystem; or, the device status notification message may also include identification of endpoints in IoT devices that have been removed in the IOT ecosystem.
  • the above-mentioned first subscription relationship corresponds to at least one subscription target path.
  • the device status subscription request may include at least one subscription target path to request the proxy device to establish the above-mentioned first subscription relationship.
  • the above controllable device information includes the subscription target path whose status has changed, and the changed status corresponding to the subscription target path whose status has changed.
  • the message (command) corresponding to the third cluster may be as shown in Table 9 below.
  • getDeviceListReq corresponds to the above controllable device request, and getDeviceListReq can have no parameters.
  • the parameters included in getDeviceListResq can be shown in Table 10 below.
  • the above controllable device information may be DeviceList in Table 10, where List[device_Info] may be composed of information of at least one Internet of Things device, and each device_Info corresponds to information of one Internet of Things device in the controllable device information.
  • cluster_Info The structure of the cluster information (cluster_Info) in the above Table 12 can be shown in the following Table 13.
  • attribute information in the above-mentioned Table 13 can be shown in the following Table 14.
  • logo name type illustrate 0 attributeID Uint16 attribute identifier 1 Value Current property status
  • each service cluster may include attributes, events, and methods.
  • the methods here may correspond to specific functions of the device, such as turning on, off, brightness adjustment, temperature adjustment, etc.
  • Event_Info The structure of the event information (event_Info) in Table 13 above can be shown in Table 16 below.
  • logo name type illustrate 0 eventID Uint16 event identifier
  • the above event may be an event reported by an Internet of Things device to other devices.
  • the above event may be an event reported by a smart home device to an agent device (such as an APP), such as door lock_door not closed.
  • an agent device such as an APP
  • Path can be the target path of the subscription, such as: node id/endpoint id/cluster id/[attributes id
  • logo name type illustrate 0 subscirbeID 1 targetPath List[path] elements of change 2 Newvalue List[value] The state corresponding to 1 element
  • the proxy device can query whether the third cluster contains the controllable device information; if the third cluster contains the controllable device information, the proxy device sends the controllable device information to the client device .
  • controllable device information when the controllable device information is not included in the third cluster, the controllable device information is obtained from the ecosystem where the Internet of Things device connected to the proxy device is located.
  • the proxy device after the proxy device receives the controllable device request, it can first check whether the controllable device information required by the client device is stored locally (that is, the proxy device is connected and the client device supports the control of the Internet of Things. device information), if the controllable device information required by the client device exists locally, the controllable device information is directly sent to the client device; if the controllable device information required by the client device does not exist locally, or, If the locally stored controllable device information is incomplete, the agent device can obtain the controllable device information from the ecosystem of the IoT device connected to the agent device; for example, the agent device can obtain the controllable device information from the ecosystem of the IoT device connected to the agent device.
  • the cloud server can query the above-mentioned controllable device information; or, the agent device can directly query the Internet of Things device for the above-mentioned controllable device information.
  • Step 503 The client device sends a control instruction to the agent device according to the controllable device information, and accordingly, the agent device receives the control instruction.
  • control instructions are used to control a target device in at least one Internet of Things device.
  • the client device after receiving the controllable device information, can display the controllable device information to the user, and the user can choose to control the target device in at least one Internet of Things device connected to the proxy device.
  • the client device detects that the user performs a control operation on the target device based on the above controllable device information, it generates a corresponding control instruction and sends the control instruction to the agent device.
  • Step 504 The proxy device sends the control instruction to the target device in at least one Internet of Things device.
  • the proxy device After receiving the above control instruction, the proxy device can forward the control instruction to the target device, so as to realize the process of controlling the target device on the client device side through the proxy device as an agent.
  • the proxy device can perform the forwarding process of the above control instructions based on the access type corresponding to the binding relationship between the proxy device and the client device.
  • the proxy device can forward the control instruction to the target device through the bridge; when the access type is proxy, the proxy device can forward the control instruction to the target device through a relay.
  • FIG. 6 shows a schematic diagram of a device control process involved in an embodiment of the present application.
  • the above-mentioned client device is IOT Client and the agent device is IOT Agent.
  • the binding relationship has been established between IOT Client and IOT Agent.
  • the device controls The process is as follows:
  • IOT Client finds that IOT Agent has agent capabilities.
  • IOT Client obtains controllable device information from IOT Agent, that is, sends a controllable device request (such as getDeviceListReq) to IOT Agent.
  • a controllable device request such as getDeviceListReq
  • IOT Agent generates controllable device information (such as the controllable device list shown in Table 9 above).
  • the IOT Agent does not save the content, it can obtain it from the IOT ecosystem.
  • IOT Agent sends controllable device information to IOT Client. For example, IOT Agent sends a controllable device list to IOT Client through getDeviceListResp.
  • IOT Client displays controllable device information.
  • the user performs the operation of controlling the IOT ecological device, and the IOT Client sends the device control instruction to the IOT Agent.
  • the device control instructions can be as follows:
  • the above-mentioned NodeID is the device identifier; targetOperationObject is the path and identifier of the resources under the device.
  • Agent Capabilities can be set to be accessible by any device, that is, any IOT Client can access a specific IOT Agent.
  • IOT Agent can save the list of controllable devices sent to IOT Client. IOT Client can access devices on the controllable device list.
  • the IOT Agent after receiving the above message, performs message conversion, obtains the following message and sends it to the IOT ecological device.
  • IOT Agent converts the message into Source: IOT Agent, Destination: targetNodeID; when path: targetNodeID/[targetOperationObject], it also Protocol conversion is required, that is, the messages corresponding to the protocol between IOT Client and IOT Agent are converted into messages corresponding to the protocol between IOT Agent and IOT Ecosystem.
  • FIG. 7 shows a schematic diagram of another device control process involved in the embodiment of the present application.
  • the above-mentioned client device is IOT Client and the agent device is IOT Agent.
  • the binding relationship between IOT Client and IOT Agent has been established, and IOT Client is between IOT Agent and IOT Client.
  • the device control process is as follows:
  • IOT Client and IOT Agent establish a secure connection.
  • IOT Client queries whether there is a long-term binding relationship with the currently connected IOT Agent device.
  • the IOT Client can query whether there is a long-term binding relationship with the currently connected IOT Agent device through the IOT Client cluster.
  • controllable device information from the IOT Agent (such as the controllable device list shown in Table 9 above).
  • IOT Client loads controllable device information.
  • IOT Client controls IOT ecological equipment through IOT Agent based on user operations.
  • step S705 to step S707 may refer to the above-mentioned solution shown in FIG. 6 , which will not be described again here.
  • the client device can send control instructions to the Internet of Things device connected to the proxy device through the proxy device based on the controllable device information obtained from the proxy device, so as to realize the control through the proxy device.
  • the proxy device controls the Internet of Things devices connected to it, thus expanding the control scenarios of the Internet of Things devices by the client device and improving the control efficiency of the Internet of Things devices.
  • FIG. 8 shows a block diagram of a device control device provided by an embodiment of the present application.
  • the device control device 800 has the function of being executed by the proxy device in implementing the method shown in FIG. 2 or FIG. 5 .
  • the device may include:
  • the sending module 801 is used to send controllable device information to the client device;
  • the controllable device information includes information of at least one Internet of Things device connected to the agent device;
  • Receiving module 802 configured to receive control instructions sent by the client device according to the controllable device information; the control instructions are used to control the target device in the at least one Internet of Things device;
  • the sending module 801 is also used to send the control instruction to the target device.
  • the sending module 801 is used to:
  • controllable device request sent by the client device; the controllable device request is used to request information about an Internet of Things device that the client device supports control;
  • controllable device request is used to obtain the controllable device information from a third cluster in a single time; the third cluster is used to support the proxy capability of the proxy device;
  • the sending module 801 is configured to send a device information acquisition response corresponding to the controllable device request to the client device; the device information acquisition response includes the controllable device information.
  • controllable device information includes a device information list; the device information list includes information about endpoints in the at least one Internet of Things device that the client device supports control.
  • the sending module 801 is also configured to send a device status notification message to the client device when a first subscription relationship already exists; the device status notification message includes the Changed status information in the IoT device corresponding to the controllable device information;
  • the first subscription relationship includes a subscription relationship between the client device and the status information of the Internet of Things device corresponding to the controllable device information.
  • the first subscription relationship includes the subscription relationship of the client device to the status information of the Internet of Things device corresponding to the controllable device information stored in the third cluster;
  • the third cluster is used to support the proxy capability of the proxy device.
  • the first subscription relationship corresponds to at least one subscription target path
  • the controllable device information includes the subscription target path whose status has changed, and the changed status corresponding to the subscription target path whose status has changed.
  • the device further includes:
  • a query module used to query whether the controllable device information is included in the third cluster; the third cluster is used to support the proxy capability of the proxy device;
  • the sending module 801 is configured to send the controllable device information to the client device when the third cluster contains the controllable device information.
  • the device further includes:
  • An acquisition module configured to acquire the controllable device information from the ecosystem where the Internet of Things device connected to the proxy device is located, if the controllable device information is not included in the third cluster.
  • FIG. 9 shows a block diagram of a device control device provided by an embodiment of the present application.
  • the device control device 900 has the function of being executed by the client device in implementing the method shown in FIG. 3 or FIG. 5 .
  • the device may include:
  • Obtaining module 901 is used to obtain controllable device information from the agent device; the controllable device information includes information of at least one Internet of Things device connected to the agent device;
  • Sending module 902 configured to send a control instruction to the agent device according to the controllable device information, so that the agent device sends the control instruction to the target device in the at least one Internet of Things device; the control instruction Used to control the target device.
  • the acquisition module 901 is used to,
  • controllable device request is used to request information about the Internet of Things device that the client device supports control;
  • controllable device request is used to obtain the controllable device information from a third cluster in a single time; the third cluster is used to support the proxy capability of the proxy device;
  • the acquisition module 901 is configured to receive a device information acquisition response corresponding to the controllable device request sent by the proxy device; the device information acquisition response contains the controllable device information.
  • controllable device information includes a device information list; the device information list includes information about endpoints in the at least one Internet of Things device that the client device supports control.
  • the device further includes:
  • a receiving module configured to receive a device status notification message sent by the proxy device when a first subscription relationship already exists; the device status notification message contains changes in the Internet of Things device corresponding to the controllable device information. status information;
  • the first subscription relationship includes a subscription relationship between the client device and the status information of the Internet of Things device corresponding to the controllable device information.
  • the first subscription relationship includes the subscription relationship of the client device to the status information of the Internet of Things device corresponding to the controllable device information stored in the third cluster;
  • the third cluster is used to support the proxy capability of the proxy device.
  • the first subscription relationship corresponds to at least one subscription target path
  • the controllable device information includes the subscription target path whose status has changed, and the changed status corresponding to the subscription target path whose status has changed.
  • the device further includes:
  • a query module configured to query whether there is a binding relationship with a long-term binding type between the client device and the proxy device; the binding relationship is used by the client device through the proxy device, Control the Internet of Things devices connected to the proxy device;
  • the obtaining module 901 is configured to obtain the controllable device from the proxy device when it is found that there is a binding relationship between the client device and the proxy device with a binding type of long-term binding. information.
  • the query module is used to,
  • the second cluster is used to support using the client device as a proxy for other devices to perform operations on Internet of Things devices connected to the other devices. control;
  • the binding type in the client binding information corresponding to the proxy device is long-term binding, it is determined that there is a binding relationship between the client device and the proxy device with the binding type being long-term binding. .
  • the device further includes:
  • An establishment module configured to establish a connection between the client device and the proxy device when it is found that there is no binding relationship between the client device and the proxy device and the binding type is long-term binding.
  • the binding type is a long-term binding relationship.
  • the device provided in the above embodiment implements its functions, only the division of the above functional modules is used as an example. 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. 10 shows a schematic structural diagram of a computer device 1000 provided by an embodiment of the present application.
  • the computer device 1000 may include a processor 1001, a receiver 1002, a transmitter 1003, a memory 1004, and a bus 1005.
  • the processor 1001 includes one or more processing cores.
  • the processor 1001 executes various functional applications and information processing by running software programs and modules.
  • the receiver 1002 and the transmitter 1003 can be implemented as a communication component, and the communication component can be a communication chip.
  • This communication chip can also be called a transceiver.
  • the memory 1004 is connected to the processor 1001 through a bus 1005.
  • the memory 1004 can be used to store a computer program, and the processor 1001 is used to execute the computer program to implement various steps in the above method embodiments.
  • memory 1004 may be implemented by any type of volatile or non-volatile storage device, or combination thereof, including but not limited to: magnetic or optical disks, electrically erasable programmable Read-only memory, erasable programmable read-only memory, static ready-access memory, read-only memory, magnetic memory, flash memory, programmable read-only memory.
  • the transceiver is used to send controllable device information to the client device;
  • the controllable device information includes the controllable device information connected to the proxy device. information of at least one Internet of Things device; receiving control instructions sent by the client device according to the controllable device information; the control instructions are used to control a target device in the at least one Internet of Things device; sending the Control instructions are sent to the target device.
  • the process performed by the processor 1001 and/or the transceiver in the computer device 1000 may refer to the various steps performed by the proxy device in the method shown in either FIG. 2 or FIG. 5 .
  • the transceiver when the computer device 1000 is implemented as a client device, the transceiver is configured to obtain controllable device information from the proxy device; the controllable device information includes at least one device connected to the proxy device. Information of the Internet of Things device; sending a control instruction to the agent device according to the controllable device information, so that the agent device sends the control instruction to the target device in the at least one Internet of Things device; the control instruction Used to control the target device.
  • the process performed by the processor 1001 and/or the transceiver in the computer device 1000 may refer to the various steps performed by the client device in the method shown in either FIG. 3 or FIG. 5 .
  • Embodiments of the present application also provide a computer-readable storage medium.
  • a computer program is stored in the storage medium.
  • the computer program is loaded and executed by a processor to implement the method shown in Figure 2, Figure 3 or Figure 5. , all or part of the steps performed by the proxy device or client device.
  • This application also provides a chip, which is used to run in a computer device, so that the computer device performs all or all of the methods performed by the agent device or the client device in the above-mentioned methods shown in Figure 2, Figure 3 or Figure 5. Some steps.
  • the application also provides a computer program product, which computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method shown in Figure 2, Figure 3 or Figure 5, by the agent device or the client device All or part of the steps to be performed.
  • This application also provides a computer program, which is executed by the processor of the computer device to implement all or part of the methods executed by the agent device or the client device in the above-mentioned method shown in Figure 2, Figure 3 or Figure 5. step.
  • Computer-readable media includes computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • Storage media can be any available media that can be accessed by a general purpose or special purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computer And Data Communications (AREA)

Abstract

一种设备控制方法、装置、设备、存储介质及程序产品,属于物联网技术领域。该方法由代理设备执行,包括:向客户端设备发送可控设备信息(201);该可控设备信息包含该代理设备连接的至少一个物联网设备的信息;接收该客户端设备根据该可控设备信息发送的控制指令(202);该控制指令用于对该至少一个物联网设备中的目标设备进行控制;将该控制指令发送给该目标设备(203)。上述方案扩展了客户端设备对物联网设备的控制场景,提高了对物联网设备的控制效率。

Description

设备控制方法、装置、设备、存储介质及程序产品 技术领域
本申请涉及物联网技术领域,特别涉及一种设备控制方法、装置、设备、存储介质及程序产品。
背景技术
随着物联网(Internet of Things,IoT)技术的不断发展,越来越多的物联网设备在智能家居、工业生产等诸多领域给用户的生产生活带来了极大的便利性。
在相关技术中,物联网设备通常可以由客户端设备进行控制。具体的,客户端设备可以接入物联网,并与物联网设备之间建立连接,通过建立的连接向物联网设备发送控制指令,以实现对物联网设备的控制。
发明内容
本申请实施例提供了一种设备控制方法、装置、设备、存储介质及程序产品。所述技术方案如下:
一方面,本申请实施例提供了一种设备控制方法,所述方法由代理设备执行,所述方法包括:
向客户端设备发送可控设备信息;所述可控设备信息包含所述代理设备连接的至少一个物联网设备的信息;
接收所述客户端设备根据所述可控设备信息发送的控制指令;所述控制指令用于对所述至少一个物联网设备中的目标设备进行控制;
将所述控制指令发送给所述目标设备。
一方面,本申请实施例提供了一种设备控制方法,所述方法由客户端设备执行,所述方法包括:
从代理设备获取可控设备信息;所述可控设备信息包含所述代理设备连接的至少一个物联网设备的信息;
根据所述可控设备信息向所述代理设备发送控制指令,以便所述代理设备将所述控制指令发送给所述至少一个物联网设备中的目标设备;所述控制指令用于对所述目标设备进行控制。
另一方面,本申请实施例提供了一种设备控制装置,所述装置包括:
发送模块,用于向客户端设备发送可控设备信息;所述可控设备信息包含代理设备连接的至少一个物联网设备的信息;
接收模块,用于接收所述客户端设备根据所述可控设备信息发送的控制指令;所述控制指令用于对所述至少一个物联网设备中的目标设备进行控制;
发送模块,用于将所述控制指令发送给所述目标设备。
另一方面,本申请实施例提供了一种设备控制装置,所述装置包括:
获取模块,用于从代理设备获取可控设备信息;所述可控设备信息包含所述代理设备连接的至少一个物联网设备的信息;
发送模块,用于根据所述可控设备信息向所述代理设备发送控制指令,以便所述代理设备将所述控制指令发送给所述至少一个物联网设备中的目标设备;所述控制指令用于对所述目标设备进行控制。
另一方面,本申请实施例提供了一种计算机设备,所述计算机设备实现为信息上报设备,所述计算机设备包括处理器、存储器和收发器;
存储器中存储有计算机程序,处理器执行所述计算机程序,以使得计算机设备实现上述设备控制方法。
再一方面,本申请实施例提供了一种计算机设备,所述计算机设备包括处理器、存储器和收发器,所述存储器存储有计算机程序,所述计算机程序用于被所述处理器执行,以实现上述设备控制方法。
又一方面,本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述设备控制方法。
又一方面,本申请还提供了一种芯片,所述芯片用于在计算机设备中运行,以使得所述计算机设备执行上述设备控制方法。
又一方面,本申请提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述设备控制方法。
又一方面,本申请提供了一种计算机程序,该计算机程序由计算机设备的处理器执行,以实现上述设备控制方法。
通过本申请实施例提供的技术方案,客户端设备可以基于从代理设备获取到的可控设备信息,通过代理设备,向代理设备连接的物联网设备发送控制指令,以实现通过代理设备对该代理设备所连接的物联网设备进行控制,从而扩展了客户端设备对物联网设备的控制场景,提高了对物联网设备的控制效率。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请一个实施例提供的物联网的网络架构的示意图;
图2是本申请一个实施例提供的设备控制方法的流程图;
图3是本申请一个实施例提供的设备控制方法的流程图;
图4是本申请一个实施例提供的设备控制的流程框架图;
图5是本申请一个实施例提供的设备控制方法的流程图;
图6是图5所示实施例涉及的一种设备控制流程的示意图;
图7是图5所示实施例涉及的另一种设备控制流程的示意图;
图8是本申请一个实施例提供的设备控制装置的框图;
图9是本申请一个实施例提供的设备控制装置的框图;
图10是本申请一个实施例提供的计算机设备的结构示意图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
本申请实施例描述的网络架构以及业务场景是为了更加清楚地说明本申请实施例的技术方案,并不构成对本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
请参考图1,其示出了本申请一个实施例提供的物联网的网络架构的示意图。该物联网的网络架构可以包括:物联网设备110(图1中示出为物联网设备110a、物联网设备110b、物联网设备110c、物联网设备110d)、代理设备120以及客户端设备130;可选的,该网络架构还可以包括桥接设备140;可选的,该网络架构还可以包括云端服务器150。
物联网设备110可以是指在物联网中,用于提供物联网协议对应的客户端功能或者服务端功能的设备。
比如,物联网设备110可以是智能家居设备,例如,智能开关、智能灯具、智能电视、智能空调、智能冰箱、智能微波炉、智能电饭煲、扫地机器人等等。
或者,物联网设备110可以是工业生产设备,例如,车床、工业机器人、太阳能面板、风力发电机等等。
或者,物联网设备110可以是商业服务设备,例如,无人售货机等等。
或者,物联网设备110可以是传感设备,例如,监控摄像头、红外传感器、声音传感器、温度传感器等等。
在一种可能的实现方式中,代理设备120是用户侧的终端设备。比如,代理设备120可以是智能控制器、智能遥控器、智能手机、平板电脑、智能手表、智能电视、智能音箱等等;或者,代理设备120也可以是个人电脑,比如台式电脑、便携式计算机、个人工作站等等。
在另一种可能的实现方式中,代理设备120是指基于终端设备运行的客户端实体(可以是虚拟实体),例如,代理设备120可以是运行在终端设备中,用于对物联网设备进行访问、控制、以及管理等操作的应用程序(Application,APP)。
客户端设备130可以是具有与代理设备120进行通信功能的设备,比如,客户端设备130可以车载设备(比如车机设备)、智能音箱、智能电视等等。
桥接设备140用于实现支持不同物联网协议的两个设备之间的交互。桥接设备140在支持不同物联网协议的物联网设备110之间,或者,在支持不同物联网协议的物联网设备110和代理设备120之间,提供信息转换和传递的服务。
桥接设备140可以是专用于进行桥接的设备,或者,桥接设备140也可以是具有桥接功能的智能设备,比如网关或者路由器等等。
云端服务器150用于提供物联网设备110与物联网生态之外的其它设备(比如上述代理设备120)之 间的连接服务。其中,云端服务器150可以是物联网生态的云端平台服务器。
其中,代理设备120可以通过云端服务器150,与物联网设备110建立连接。
或者,代理设备120也可以直接与物联网设备110建立连接。
在本申请实施例中,上述物联网设备110、代理设备120、桥接设备140可以是满足相同或者不同的物联网协议的电子设备,比如,可以是满足连接标准联盟(Connectivity Standards Alliance,CSA)下的Matter协议的电子设备。
在图1中,当物联网设备110a和物联网设备110c之间支持相同的协议规范时,物联网设备110a和物联网设备110c之间可以建立安全连接,比如,基于Matter规范建立安全连接。
当物联网设备110b和物联网设备110d之间支持不同的协议规范,比如,物联网设备110b是Zigbee设备,而物联网设备110d是Matter设备时,物联网设备110b和物联网设备110d之间可以通过桥接设备140相连。
请参考图2,其示出了本申请一个实施例提供的设备控制方法的流程图,该方法可以由代理设备执行,比如,该代理设备可以是图1所示的网络架构中的代理设备120;该方法可以包括如下几个步骤:
步骤201,向客户端设备发送可控设备信息;可控设备信息包含代理设备连接的至少一个物联网设备的信息。
在本申请实施例中,上述可控设备信息,可以包含代理设备连接的至少一个物联网设备的标识信息、各项属性状态信息、控制方法信息以及事件信息等等。
其中,上述代理设备连接的至少一个物联网设备,可以是与代理设备连接的IOT生态系统中的物联网设备。其中,上述代理设备可以与IOT生态系统中的云端服务器建立连接,以实现与物联网设备之间的间接连接;或者,上述代理设备也可以与IOT生态系统中的物联网设备直接连接。
也就是说,代理设备与物联网设备之间的连接,可以是指代理设备通过云端服务器与物联网设备之间建立的间接连接,也可以是代理设备与物联网设备之间的直接连接。
在一种可能的实现方式中,客户端设备和代理设备之间可以预先建立用于实现在客户端设备侧,以代理设备为代理,对物联网设备进行控制的绑定关系。
步骤202,接收客户端设备根据可控设备信息发送的控制指令;该控制指令用于对至少一个物联网设备中的目标设备进行控制。
步骤203,将控制指令发送给目标设备。
在一种可能的实现方式中,向客户端设备发送可控设备信息,包括:
接收客户端设备发送的可控设备请求;可控设备请求用于请求客户端设备支持控制的物联网设备的信息;
根据可控设备请求,向客户端设备发送可控设备信息。
在一种可能的实现方式中,可控设备请求用于从第三群集中单次获取可控设备信息;第三群集用于支持代理设备的代理能力;
根据可控设备请求,向客户端设备发送可控设备信息,包括:
向客户端设备发送与可控设备请求对应的设备信息获取响应;设备信息获取响应中包含可控设备信息。
在一种可能的实现方式中,可控设备信息包括设备信息列表;设备信息列表中包含客户端设备支持控制的至少一个物联网设备中的端点的信息。
在一种可能的实现方式中,该方法还包括:已存在第一订阅关系的情况下,向客户端设备发送设备状态通知消息;设备状态通知消息中包含可控设备信息对应的物联网设备中发生变更的状态信息;其中,第一订阅关系包括客户端设备对可控设备信息对应的物联网设备的状态信息的订阅关系。
在一种可能的实现方式中,第一订阅关系包括客户端设备对第三群集中保存的,与可控设备信息对应的物联网设备的状态信息的订阅关系。
在一种可能的实现方式中,第一订阅关系对应有至少一条订阅目标路径;
可控设备信息中包含状态发生变化的订阅目标路径,以及状态发生变化的订阅目标路径对应的变化后的状态。
在一种可能的实现方式中,本申请实施例涉及的方法还包括:
查询第三群集中是否包含可控设备信息;第三群集用于支持代理设备的代理能力;
在第三群集中包含可控设备信息的情况下,向客户端设备发送可控设备信息。
在一种可能的实现方式中,本申请实施例涉及的方法还包括:
在第三群集中不包含可控设备信息的情况下,向代理设备连接的物联网设备所在的生态系统获取可控 设备信息。
综上所述,在本申请实施例中,客户端设备可以基于从代理设备获取到的可控设备信息,通过代理设备,向代理设备连接的物联网设备发送控制指令,以实现通过代理设备对该代理设备所连接的物联网设备进行控制,从而扩展了客户端设备对物联网设备的控制场景,提高了对物联网设备的控制效率。
请参考图3,其示出了本申请一个实施例提供的设备控制方法的流程图,该方法可以由客户端设备执行,比如,该客户端设备可以是图1所示的网络架构中的客户端设备130;该方法可以包括如下几个步骤:
步骤301,从代理设备获取可控设备信息;可控设备信息包含代理设备连接的至少一个物联网设备的信息。
步骤302,根据可控设备信息向代理设备发送控制指令,以便代理设备将控制指令发送给至少一个物联网设备中的目标设备;控制指令用于对目标设备进行控制。
在一种可能的实现方式中,从代理设备获取可控设备信息,包括:
向代理设备发送可控设备请求;可控设备请求用于请求客户端设备支持控制的物联网设备的信息;
接收代理设备根据可控设备请求发送的可控设备信息。
在一种可能的实现方式中,可控设备请求用于从第三群集中单次获取可控设备信息;第三群集用于支持代理设备的代理能力;
接收代理设备根据可控设备请求发送的可控设备信息,包括:
接收代理设备发送的,与可控设备请求对应的设备信息获取响应;设备信息获取响应中包含可控设备信息。
在一种可能的实现方式中,可控设备信息包括设备信息列表;设备信息列表中包含客户端设备支持控制的至少一个物联网设备中的端点的信息。
在一种可能的实现方式中,该方法还包括:
在已存在第一订阅关系的情况下,接收所述代理设备发送的设备状态通知消息;所述设备状态通知消息中包含所述可控设备信息对应的物联网设备中发生变更的状态信息;
其中,所述第一订阅关系包括所述客户端设备对所述可控设备信息对应的物联网设备的状态信息的订阅关系。
在一种可能的实现方式中,所述第一订阅关系包括所述客户端设备对第三群集中保存的,与所述可控设备信息对应的物联网设备的状态信息的订阅关系;
其中,所述第三群集用于支持所述代理设备的代理能力。
在一种可能的实现方式中,第一订阅关系对应有至少一条订阅目标路径;
可控设备信息中包含状态发生变化的订阅目标路径,以及状态发生变化的订阅目标路径对应的变化后的状态。
在一种可能的实现方式中,本申请实施例涉及的方法还包括:
查询客户端设备与代理设备之间是否存在绑定类型为长期绑定的绑定关系;绑定关系用于客户端设备通过代理设备,对代理设备连接的物联网设备进行控制;
从代理设备获取可控设备信息,包括:
在查询到客户端设备与代理设备之间存在绑定类型为长期绑定的绑定关系的情况下,从代理设备获取可控设备信息。
在一种可能的实现方式中,查询客户端设备与代理设备之间是否存在绑定类型为长期绑定的绑定关系,包括:
查询第二群集中是否存在代理设备对应的客户端绑定信息;第二群集用于支持以客户端设备以其它设备作为代理,对其它设备连接的物联网设备进行控制;
在查询到第二群集中存在代理设备对应的客户端绑定信息的情况下,获取代理设备对应的客户端绑定信息中的绑定类型;
在代理设备对应的客户端绑定信息中的绑定类型为长期绑定的情况下,确定客户端设备与代理设备之间存在绑定类型为长期绑定的绑定关系。
在一种可能的实现方式中,本申请实施例涉及的方法还包括:
在查询到客户端设备与代理设备之间不存在绑定类型为长期绑定的绑定关系的情况下,建立客户端设备与代理设备之间的,绑定类型为长期绑定的绑定关系。
综上所述,在本申请实施例中,代理设备可以向客户端设备发送可控设备信息,使得客户端设备通过代理设备向代理设备连接的物联网设备发送控制指令,以实现通过代理设备对该代理设备所连接的物联网设备进行控制,从而扩展了客户端设备对物联网设备的控制场景,提高了对物联网设备的控制效率。
通过本申请上述图2和图3所示的方案,客户端设备可以通过代理设备提供的可控设备信息,实现对代理设备连接的物联网设备进行控制。
以代理设备是智能手机,客户端设备是车载设备,且智能手机通过云端服务器与物联网设备连接为例,请参考图4,其示出了本申请一个实施例提供的设备控制的流程框架图。在一种可能的应用场景中,如图4所示,智能手机41与IOT生态系统(比如,该IOT生态系统可以是智能家居系统)中的云端服务器42相连,该智能家居系统中包含家用摄像头43在内的一个或多个物联网设备(图4中示出为2个);同时,智能手机41可以与车载设备44建立连接以及绑定关系。
当用户位于车辆中,且需要打开家用摄像头拍摄画面时,车载设备44可以从智能手机41处获取智能家居系统的可控设备信息,其中包含各个物联网设备的信息(步骤S1),并通过车机系统的屏幕进行展示;用户根据车载设备44展示的信息执行控制家用摄像头43开启的操作,车载设备44生成用于开启家用摄像头43的控制指令,并将该控制指令发送给智能手机41(步骤S2);智能手机41将该控制指令通过云端服务器42发送给家用摄像头43(步骤S3);之后,家用摄像头43可以执行该控制指令以开启并采集图像。
请参考图5,其示出了本申请一个实施例提供的设备控制方法的流程图,该方法可以由代理设备和客户端设备交互执行,该代理设备和客户端设备可以分别是图1所示的网络架构中的代理设备120和客户端设备130;该方法可以包括如下几个步骤:
步骤501,客户端设备向代理设备发送可控设备请求;相应的,代理设备接收该可控设备请求。
其中,该可控设备请求用于请求客户端设备支持控制的物联网设备的信息。
在本申请实施例中,上述客户端设备和代理设备之间可以建立有用于客户端设备以代理设备为代理,对代理设备连接的物联网设备进行控制的绑定关系。
可选的,上述客户端设备与代理设备之间建立绑定关系时,代理设备可以在第一群集中添加客户端设备对应的第一绑定设备信息。
其中,上述第一群集可以是支持以代理设备作为代理,对代理设备连接的物联网设备进行控制的群集。
在一种可能的实现方式中,第一绑定设备信息中包含以下信息中的至少一项:
客户端设备的标识信息;
客户端设备的协议版本信息;
客户端设备的可控设备列表;可控设备列表中包含代理设备连接的物联网设备中,客户端设备支持控制的物联网设备的设备信息;
可控设备列表的版本信息。
在一种可能的实现方式中,设备信息包括以下信息中的至少一项:
与设备信息对应的物联网设备的标识信息;
与设备信息对应的物联网设备的在线状态;在线状态包括在线或离线。
以上述第一群集是IOT Agent Binding Cluster(IOT代理绑定群集)为例,上述IOT Agent Binding Cluster包含的属性可以如下述表1所示。
表1
标识 名称 类型 说明
0 bindingIOTClientInfo List[bindingDeviceInfo] 绑定信息
上述表1示出,IOT Agent Binding Cluster中包含绑定IOT客户端binding IOT Client Info属性,该属性的值是包含一条或者多条绑定设备信息(bindingDeviceInfo)的列表。
其中,上述表1中的bindingDeviceInfo的结构体可以如下述表2所示。
表2
Figure PCTCN2022112261-appb-000001
其中,上述表2中的onlineStatus的结构体可以如下述表3所示。
表3
Figure PCTCN2022112261-appb-000002
Figure PCTCN2022112261-appb-000003
上述IOT Agent Binding Cluster对应的命令可以如下述表4所示。
表4
标识 名称 方向 应答 必要性 说明
0 deregisterIOTClient C->S Y M 解绑IOTClient
在本申请实施例的一个示例性的方案中,上述绑定关系的绑定类型可以分为临时绑定和长期绑定。
可选的,当上述绑定关系的绑定类型为长期绑定时,代理设备可以在第一群集中添加上述第一绑定设备信息。当上述绑定关系的绑定类型为临时绑定时,代理设备可以不在第一群集中添加上述第一绑定设备信息。
或者,无论上述绑定关系的绑定类型是临时绑定还是长期绑定,代理设备都可以在第一群集中添加上述第一绑定设备信息。
可选的,上述客户端设备与代理设备之间建立绑定关系时,客户端设备可以在第二群集中添加代理设备对应的第一客户端绑定信息。其中,该第二群集用于支持客户端设备以其它设备作为代理,对其它设备连接的物联网设备进行控制。
在本申请实施例中,客户端设备中可以设置一个用于支持通过代理设备对其它物联网设备进行控制的群集(Cluster)。
在本申请实施例的一个示例性的方案中,该第二群集可以被称为物联网客户端群集(IOT Client Cluster)。
在一种可能的实现方式中,第二群集中可以包含以下信息中的至少一项:
客户端设备的厂商信息;
设备控制能力信息;
以及,客户端绑定信息列表;客户端绑定信息列表中包含已建立的绑定关系的客户端绑定信息。
在一种可能的实现方式中,设备控制能力信息包括以下信息中的至少一种:
客户端设备支持控制的物联网设备的设备类型;
以及,客户端设备支持的,对物联网设备的控制能力。
在一种可能的实现方式中,在设备控制能力信息包括客户端设备支持控制的物联网设备的设备类型的情况下,该设备控制能力信息中包含以下信息中的至少一种:
第一支持信息;第一支持信息用于指示客户端设备是否支持控制全部类型的物联网设备;
以及,设备类型列表;设备类型列表中包含客户端设备支持控制的物联网设备的设备类型的类型标识信息。
在一种可能的实现方式中,第一客户端绑定信息可以包括以下信息中的至少一种:
代理设备的标识信息;
绑定类型信息;绑定类型用于指示代理设备与客户端设备之间的绑定关系的绑定类型;绑定类型包括临时绑定或者长期绑定;
以及,访问类型信息;访问类型信息用于指示客户端设备对代理设备连接的物联网设备的访问类型;访问类型包括桥接访问或者代理访问。
在一种示例性的方案中,以第二群集是IOT Client Cluster(IOT客户端群集)为例,IOT Client Cluster的定义可以如下述表5所示。
表5
标识 名称 类型 说明
0 VendorID string 厂商标识
1 SupportedDeviceTypes deviceTypeList 支持的可能设备列表
2 bindingSource List[clientBindingInfo] 绑定信息
其中,上述表5中的deviceTypeList的结构体(struct)可以如下述表6所示。
表6
Figure PCTCN2022112261-appb-000004
其中,clientBindingInfo的结构体可以如下述表7所示。
表7
Figure PCTCN2022112261-appb-000005
可选的,当上述表7中的BindingType的值为0时,表示绑定关系为临时绑定,客户端设备对IOT代理ID对应的设备连接的物联网设备控制结束后,可以不保存IOT代理ID对应的设备发送过来的可控设备的列表等信息(即上述可控设备信息)。反之,当上述BindingType的值为1时,表示绑定关系为长期绑定,客户端设备对IOT代理ID对应的设备连接的物联网设备控制结束后,可以保存IOT代理ID对应的设备发送过来的可控设备的列表等信息,以便下次对该IOT代理ID对应的设备连接的物联网设备进行控制时使用。
在一种可能实现的方式中,在临时绑定和长期绑定下,客户端设备都可以从代理设备获取可控设备信息,并基于可控设备信息对代理设备连接的物联网设备进行控制。
在另一种可能的实现方式中,客户端设备可以查询客户端设备与代理设备之间是否存在绑定类型为长期绑定的绑定关系;在查询到客户端设备与代理设备之间存在绑定类型为长期绑定的绑定关系的情况下,客户端设备可以从代理设备获取可控设备信息,比如向代理设备发送可控设备请求。
在本申请实施例的另一个示例性的方案中,客户端设备可以在与代理设备之间存在长期绑定的绑定关系下,才从代理设备获取可控设备信息。
在一种可能的实现方式中,上述查询客户端设备与代理设备之间是否存在绑定类型为长期绑定的绑定关系的步骤可以包括:
客户端设备查询第二群集中是否存在代理设备对应的客户端绑定信息;在查询到第二群集中存在代理设备对应的客户端绑定信息的情况下,获取代理设备对应的客户端绑定信息中的绑定类型;在代理设备对应的客户端绑定信息中的绑定类型为长期绑定的情况下,确定客户端设备与代理设备之间存在绑定类型为长期绑定的绑定关系。
比如,在一个示例性的方案中,客户端设备可以查询第二群集的客户端绑定信息列表中,是否存在包含代理设备的标识信息的第一客户端绑定信息,若是,则进一步读取第一客户端绑定信息中的BindingType的值,若BindingType的值为1,则表示客户端设备与代理设备之间存在绑定类型为长期绑定的绑定关系,若BindingType的值为0,则表示客户端设备与代理设备之间不存在绑定类型为长期绑定的绑定关系。
在一种可能的实现方式中,在查询到客户端设备与代理设备之间不存在绑定类型为长期绑定的绑定关系的情况下,还可以建立客户端设备与代理设备之间的,绑定类型为长期绑定的绑定关系。
在本申请实施例中,在查询到客户端设备与代理设备之间不存在绑定类型为长期绑定的绑定关系的情况下,客户端设备可以展示建立长期绑定的提示信息,以提示用户在代理设备侧发起建立客户端设备与代理设备之间的长期绑定。
或者,在查询到客户端设备与代理设备之间不存在绑定类型为长期绑定的绑定关系的情况下,客户端设备也可以向代理设备发送绑定触发消息,以触发代理设备发起建立客户端设备与代理设备之间的长期绑定。比如,客户端设备可以展示建立长期绑定的提示信息,用户在客户端设备上执行建立长期绑定的操作时,客户端设备可以向代理设备发送绑定触发消息。
步骤502,代理设备根据可控设备请求,向客户端设备发送可控设备信息;相应的,客户端设备接收代理设备根据可控设备请求发送的可控设备信息。
其中,上述可控设备信息中包含代理设备连接的,且客户端设备支持控制的至少一个物联网设备的信息。
在本申请实施例中,代理设备接收到上述可控设备请求后,可以将代理设备连接的,且客户端设备支持控制的至少一个物联网设备的信息发送给客户端设备,以便客户端设备向用户展示。
在一种可能的实现方式中,当上述可控设备请求用于从第三群集中单次获取可控设备信息时,代理设备可以向客户端设备发送与可控设备请求对应的设备信息获取响应;设备信息获取响应中包含上述可控设备信息;相应的,客户端设备接收代理设备发送的,与可控设备请求对应的设备信息获取响应。
在本申请实施例中,当客户端设备向代理设备发送用于从第三群集中单次获取可控设备信息的请求时,代理设备可以在该请求的响应消息中携带上述可控设备信息。
其中,上述第三群集用于支持代理设备的代理能力。
比如,在本申请实施例中,上述第三群集可以被称为IOT Agent cluster(IOT代理群集)。比如,上述IOT Agent cluster的属性(Attribute)的定义可以如下述表8所示。
表8
标识 名称 类型 说明
0 DeviceList List[IOTDevice_Info] 可控设备列表
在一种可能的实现方式中,可控设备信息包括设备信息列表;设备信息列表中包含客户端设备支持控制的至少一个物联网设备中的端点的信息。
在本申请实施例中,一个物联网设备的设备模型中可以包含一个或多个端点(endpoint),每个端点可以对应一项或者多项功能服务。
其中,上述每个端点的信息中可以包含该端点中的服务群集的信息,该服务群集的信息可以包含一项服务对应的属性、方法和事件等信息。
在一种可能的实现方式中,本申请实施例所示的方案还包括:
代理设备在已存在第一订阅关系的情况下,向客户端设备发送设备状态通知消息;设备状态通知消息中包含可控设备信息对应的物联网设备中发生变更的状态信息;其中,第一订阅关系包括客户端设备对可控设备信息对应的物联网设备的状态信息的订阅关系。相应的,客户端设备在已存在第一订阅关系的情况下,接收代理设备发送的上述设备状态通知消息。
在一种可能的实现方式中,第一订阅关系包括客户端设备对第三群集中保存的,与可控设备信息对应的物联网设备的状态信息的订阅关系。
在一个实施例中,客户端设备向代理设备发送用于订阅第三群集中,与可控设备信息对应的物联网设备的状态信息的设备状态订阅请求;代理设备在接收到上述设备状态订阅请求的情况下,可以建立第一订阅关系,后续可以向客户端设备发送与第一订阅关系对应的设备状态通知消息;设备状态通知消息中包含可控设备信息对应的物联网设备中发生变更的状态信息。相应的,客户端设备接收代理设备发送的,与第一订阅关系对应的设备状态通知消息。
在本申请实施例中,当客户端设备向代理设备发送设备状态订阅请求,触发代理设备建立第一订阅关系后,代理设备可以在后续设备状态发生变更时,向客户端设备发送设备状态通知消息,在该设备状态通知消息中携带上述可控设备信息对应的物联网设备的服务群集中,发生变更的状态信息,具体可以是发生变更的服务群集的属性状态;或者,上述设备状态通知消息中还可以包含IOT生态系统中新增的物联网设备中的端点的信息;或者,上述设备状态通知消息中还可以包含IOT生态系统中被移除的物联网设备中的端点的标识。
在一种可能的实现方式中,上述第一订阅关系对应有至少一条订阅目标路径。比如,设备状态订阅请求中可以包含至少一条订阅目标路径,以请求代理设备建立上述第一订阅关系。
上述可控设备信息中包含状态发生变化的订阅目标路径,以及状态发生变化的订阅目标路径对应的变化后的状态。
在一个示例性的方案中,上述第三群集对应的消息(command)可以如下述表9所示。
表9
Figure PCTCN2022112261-appb-000006
上述表9中,getDeviceListReq对应上述可控设备请求,getDeviceListReq可以无参数。getDeviceListResq包含的参数可以如下述表10所示。
表10
标识 名称 类型 说明
0 DeviceList List[device_Info] 可控设备列表
其中,上述上述可控设备信息可以是表10中的DeviceList,其中,List[device_Info]可以由至少一个物联网设备的信息构成,每个device_Info对应可控设备信息中的一个物联网设备的信息。
上述表10中的device_Info的结构体(struct)可以如下述表11所示。
表11
Figure PCTCN2022112261-appb-000007
上述表11中的端点的信息(endpoint_Info)的结构体可以下述表12所示。
表12
Figure PCTCN2022112261-appb-000008
上述表12中的群集信息(cluster_Info)的结构体可以下述表13所示。
表13
标识 名称 类型 说明
0 clusterID Uint16 设备类型(群集标识)
1 attribute List[attribute_Info] 属性集:设备的状态
2 command List[command_Info] 方法集:启动设备行为
3 event List[event_Info] 事件集:上报的事件
上述表13中的属性信息(attribute_Info)的结构体可以下述表14所示。
表14
标识 名称 类型 说明
0 attributeID Uint16 属性标识
1 Value   当前属性状态
上述表13中的方法信息(command_Info)的结构体可以下述表15所示。
表15
标识 名称 类型 说明
0 commandID Uint16 命令标识
在本申请实施例中,每个服务群集可以包含属性、事件和方法,这里的方法可以对应设备的特定功能,比如开启、关闭、亮度调节、温度调节等等。
上述表13中的事件信息(event_Info)的结构体可以下述表16所示。
表16
标识 名称 类型 说明
0 eventID Uint16 事件标识
在本申请实施例中,上述事件可以是物联网设备上报给其他设备的事件,比如,上述事件可以是智能家居设备上报给代理设备(例如APP)的事件,例如门锁_门未关。
上述表9中的subscribeDevSta的参数可以如下述表17所示。
表17
Figure PCTCN2022112261-appb-000009
在表17中,Path可以为订阅的目标路径,比如:node id/endpoint id/cluster id/[attributes id|event id]。
上述表9中的subscribeResp的参数可以如下述表18所示。
表18
Figure PCTCN2022112261-appb-000010
上述表9中的devStaNotify的参数可以如下述表19所示。
表19
标识 名称 类型 说明
0 subscirbeID    
1 targetPath List[path] 变化元素
2 Newvalue List[value] 1元素对应的状态
在本申请实施例,事件的定义可以如下述表20所示。
表20
标识 名称 类型
0 online 上线
1 offline 离线
2 deviceFault 设备故障
3 alert 告警信息
4 deviceListChanged 可控设备列表变化
在一种可能的实现方式中,代理设备可以查询第三群集中是否包含上述可控设备信息;在第三群集中包含可控设备信息的情况下,代理设备向客户端设备发送可控设备信息。
在一种可能的实现方式中,在第三群集中不包含可控设备信息的情况下,向代理设备连接的物联网设备所在的生态系统获取可控设备信息。
在本申请实施例中,代理设备接收到可控设备请求之后,可以先检查本地是否存储有客户端设备所需要的可控设备信息(即代理设备连接的,且客户端设备支持控制的物联网设备的信息),若本地存在客户端设备所需要的可控设备信息,则直接将该可控设备信息发送给客户端设备;若本地不存在客户端设备所需要的可控设备信息,或者,本地存储的可控设备信息不完整,则代理设备可以向代理设备连接的物联网设备所在的生态系统获取可控设备信息;比如,代理设备可以向代理设备连接的物联网设备所在的生态系统中的云端服务器查询上述可控设备信息;或者,代理设备可以直接向物联网设备查询上述可控设备信息。
步骤503,客户端设备根据可控设备信息向代理设备发送控制指令,相应的,代理设备接收该控制指令。
其中,上述控制指令用于对至少一个物联网设备中的目标设备进行控制。
在本申请实施例中,客户端设备接收到上述可控设备信息后,可以向用户展示上述可控设备信息,由用户选择对代理设备连接的至少一个物联网设备中的目标设备进行控制。客户端设备检测到用户基于上述可控设备信息执行的,对目标设备的控制操作后,生成对应的控制指令,并将控制指令发送给代理设备。
步骤504,代理设备将控制指令发送给至少一个物联网设备中的目标设备。
代理设备接收到上述控制指令后,可以将该控制指令转发给目标设备,以实现在客户端设备侧,通过代理设备作为代理,对目标设备进行控制的过程。
在本申请实施例中,代理设备可以基于代理设备与客户端设备之间的绑定关系对应的访问类型,执行上述控制指令的转发过程。
比如,当上述访问类型为bridge时,代理设备可以通过桥接方式,向目标设备转发该控制指令;当上述访问类型为proxy时,代理设备可以通过中继的方式向目标设备转发该控制指令。
请参考图6,其示出了本申请实施例涉及的一种设备控制流程的示意图。以设备控制流程用于智能家居场景,上述客户端设备为IOT Client,代理设备为IOT Agent为例,IOT Client与IOT Agent之间已完成绑定关系的建立,如图6所示,该设备控制流程如下:
S601,IOT Client发现IOT Agent具有代理能力。
S602,IOT Client向IOT Agent获取可控设备信息,即向IOT Agent发送可控设备请求(比如getDeviceListReq)。
S603,IOT Agent生成可控设备信息(比如上述表9所示的可控设备列表)。
如果IOT Agent没有保存该内容,则可以向IOT生态系统获取。
S604,IOT Agent向IOT Client发送可控设备信息,比如,IOT Agent通过getDeviceListResp向IOT Client发送可控设备列表。
S605,IOT Client展示可控设备信息。
S606,用户执行控制IOT生态设备的操作,IOT Client向IOT Agent发送设备控制指令。
其中,该设备控制指令可以如下:
Source:IOT Client;
Destination:IOT Agen;
path:targetNodeID/[targetOperationObject]。
其中,上述NodeID是设备标识;targetOperationObject是设备下的资源的路径和标识。
客户端设备和代理设备之间的消息往来需要经过“访问控制流程”,也就是特定的设备可以访问特定的功能,在本申请实施例中,从IOT Client到IOT Agent的访问权限设置上,Agent能力可以设定为任何设备可访问,也就是说,任何一个IOT Client都可以访问特定的IOT Agent。其中,IOT Agent可以保存发送给IOT Client的可控设备列表。IOT Client可访问在可控设备列表上的设备。
S607,IOT Agent收到上述消息之后,执行消息转化,得到下述消息并发送给IOT生态设备。
Source:IOT Agent;
Destination:targetNodeID;
path:targetNodeID/[targetOperationObject]。
在上述步骤607中,当IOT Client与IOT Agent之间的绑定关系的访问类型为Bridge时,IOT Agent将消息转化为Source:IOT Agent,Destination:targetNodeID;path:targetNodeID/[targetOperationObject]时,还需要进行协议转换,也就是将IOT Client与IOT Agent之间的协议对应的消息,转换为IOT Agent与IOT生态之间的协议对应的消息。
请参考图7,其示出了本申请实施例涉及的另一种设备控制流程的示意图。以设备控制流程用于智能家居场景,上述客户端设备为IOT Client,代理设备为IOT Agent为例,IOT Client与IOT Agent之间已完成绑定关系的建立,且IOT Client在与IOT Agent之间具有长期绑定的绑定关系的情况下执行设备控制为例,如图所示,该设备控制流程如下:
S701,用户启动智能家居功能。
S702,IOT Client与IOT Agent建立安全连接。
S703,IOT Client查询与当前连接的IOT Agent设备是否存在长期绑定关系。
其中,IOT Client可以通过IOT Client cluster查询与当前连接的IOT Agent设备是否存在长期绑定关系。
S704,如果没有长期绑定关系,则走绑定流程,以建立IOT Client与IOT Agent之间的长期绑定关系。
S705,如果存在长期绑定关系,则从IOT Agent获取可控设备信息(比如上述表9所示的可控设备列表)。
S706,IOT Client加载可控设备信息。
S707,IOT Client根据用户的操作,通过IOT Agent控制IOT生态设备。
其中,上述步骤S705至步骤S707的执行过程可以参考上述图6所示的方案,此处在赘述。
综上所述,在本申请实施例中,客户端设备可以基于从代理设备获取到的可控设备信息,通过代理设备,向代理设备连接的物联网设备发送控制指令,以实现通过代理设备对该代理设备所连接的物联网设备进行控制,从而扩展了客户端设备对物联网设备的控制场景,提高了对物联网设备的控制效率。
请参考图8,其示出了本申请一个实施例提供的设备控制装置的框图。该设备控制装置800具有实现上述图2或图5所示的方法中,由代理设备执行的功能。如图8所示,该装置可以包括:
发送模块801,用于向客户端设备发送可控设备信息;所述可控设备信息包含代理设备连接的至少一个物联网设备的信息;
接收模块802,用于接收所述客户端设备根据所述可控设备信息发送的控制指令;所述控制指令用于对所述至少一个物联网设备中的目标设备进行控制;
发送模块801,还用于将所述控制指令发送给所述目标设备。
在一种可能的实现方式中,所述发送模块801,用于,
接收所述客户端设备发送的可控设备请求;所述可控设备请求用于请求所述客户端设备支持控制的物联网设备的信息;
根据所述可控设备请求,向所述客户端设备发送所述可控设备信息。
在一种可能的实现方式中,所述可控设备请求用于从第三群集中单次获取所述可控设备信息;所述第 三群集用于支持所述代理设备的代理能力;
所述发送模块801,用于向所述客户端设备发送与所述可控设备请求对应的设备信息获取响应;所述设备信息获取响应中包含所述可控设备信息。
在一种可能的实现方式中,所述可控设备信息包括设备信息列表;所述设备信息列表中包含所述客户端设备支持控制的所述至少一个物联网设备中的端点的信息。
在一种可能的实现方式中,所述发送模块801,还用于在已存在第一订阅关系的情况下,向所述客户端设备发送设备状态通知消息;所述设备状态通知消息中包含所述可控设备信息对应的物联网设备中发生变更的状态信息;
其中,所述第一订阅关系包括所述客户端设备对所述可控设备信息对应的物联网设备的状态信息的订阅关系。
在一种可能的实现方式中,所述第一订阅关系包括所述客户端设备对第三群集中保存的,与所述可控设备信息对应的物联网设备的状态信息的订阅关系;
其中,所述第三群集用于支持所述代理设备的代理能力。
在一种可能的实现方式中,所述第一订阅关系对应有至少一条订阅目标路径;
所述可控设备信息中包含状态发生变化的订阅目标路径,以及状态发生变化的订阅目标路径对应的变化后的状态。
在一种可能的实现方式中,所述装置还包括:
查询模块,用于查询第三群集中是否包含所述可控设备信息;所述第三群集用于支持所述代理设备的代理能力;
所述发送模块801,用于在所述第三群集中包含所述可控设备信息的情况下,向所述客户端设备发送所述可控设备信息。
在一种可能的实现方式中,所述装置还包括:
获取模块,用于在所述第三群集中不包含所述可控设备信息的情况下,向所述代理设备连接的物联网设备所在的生态系统获取所述可控设备信息。
请参考图9,其示出了本申请一个实施例提供的设备控制装置的框图。该设备控制装置900具有实现上述图3或图5所示的方法中,由客户端设备执行的功能。如图9所示,该装置可以包括:
获取模块901,用于从代理设备获取可控设备信息;所述可控设备信息包含所述代理设备连接的至少一个物联网设备的信息;
发送模块902,用于根据所述可控设备信息向所述代理设备发送控制指令,以便所述代理设备将所述控制指令发送给所述至少一个物联网设备中的目标设备;所述控制指令用于对所述目标设备进行控制。
在一种可能的实现方式中,所述获取模块901,用于,
向所述代理设备发送可控设备请求;所述可控设备请求用于请求所述客户端设备支持控制的物联网设备的信息;
接收所述代理设备根据所述可控设备请求发送的所述可控设备信息。
在一种可能的实现方式中,所述可控设备请求用于从第三群集中单次获取所述可控设备信息;所述第三群集用于支持所述代理设备的代理能力;
所述获取模块901,用于接收所述代理设备发送的,与所述可控设备请求对应的设备信息获取响应;所述设备信息获取响应中包含所述可控设备信息。
在一种可能的实现方式中,所述可控设备信息包括设备信息列表;所述设备信息列表中包含所述客户端设备支持控制的所述至少一个物联网设备中的端点的信息。
在一种可能的实现方式中,所述装置还包括:
接收模块,用于在已存在第一订阅关系的情况下,接收所述代理设备发送的设备状态通知消息;所述设备状态通知消息中包含所述可控设备信息对应的物联网设备中发生变更的状态信息;
其中,所述第一订阅关系包括所述客户端设备对所述可控设备信息对应的物联网设备的状态信息的订阅关系。
在一种可能的实现方式中,所述第一订阅关系包括所述客户端设备对第三群集中保存的,与所述可控设备信息对应的物联网设备的状态信息的订阅关系;
其中,所述第三群集用于支持所述代理设备的代理能力。
在一种可能的实现方式中,所述第一订阅关系对应有至少一条订阅目标路径;
所述可控设备信息中包含状态发生变化的订阅目标路径,以及状态发生变化的订阅目标路径对应的变化后的状态。
在一种可能的实现方式中,所述装置还包括:
查询模块,用于查询所述客户端设备与所述代理设备之间是否存在绑定类型为长期绑定的绑定关系;所述绑定关系用于所述客户端设备通过所述代理设备,对所述代理设备连接的物联网设备进行控制;
所述获取模块901,用于在查询到所述客户端设备与所述代理设备之间存在绑定类型为长期绑定的绑定关系的情况下,从所述代理设备获取所述可控设备信息。
在一种可能的实现方式中,所述查询模块,用于,
查询第二群集中是否存在所述代理设备对应的客户端绑定信息;所述第二群集用于支持以所述客户端设备以其它设备作为代理,对所述其它设备连接的物联网设备进行控制;
在查询到所述第二群集中存在所述代理设备对应的客户端绑定信息的情况下,获取所述代理设备对应的客户端绑定信息中的绑定类型;
在所述代理设备对应的客户端绑定信息中的绑定类型为长期绑定的情况下,确定所述客户端设备与所述代理设备之间存在绑定类型为长期绑定的绑定关系。
在一种可能的实现方式中,所述装置还包括:
建立模块,用于在查询到所述客户端设备与所述代理设备之间不存在绑定类型为长期绑定的绑定关系的情况下,建立所述客户端设备与所述代理设备之间的,绑定类型为长期绑定的绑定关系。
需要说明的一点是,上述实施例提供的装置在实现其功能时,仅以上述各个功能模块的划分进行举例说明,实际应用中,可以根据实际需要而将上述功能分配由不同的功能模块完成,即将设备的内容结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
请参考图10,其示出了本申请一个实施例提供的计算机设备1000的结构示意图。该计算机设备1000可以包括:处理器1001、接收器1002、发射器1003、存储器1004和总线1005。
处理器1001包括一个或者一个以上处理核心,处理器1001通过运行软件程序以及模块,从而执行各种功能应用以及信息处理。
接收器1002和发射器1003可以实现为一个通信组件,该通信组件可以是一块通信芯片。该通信芯片也可以称为收发器。
存储器1004通过总线1005与处理器1001相连。
存储器1004可用于存储计算机程序,处理器1001用于执行该计算机程序,以实现上述方法实施例中的各个步骤。
此外,存储器1004可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,易失性或非易失性存储设备包括但不限于:磁盘或光盘,电可擦除可编程只读存储器,可擦除可编程只读存储器,静态随时存取存储器,只读存储器,磁存储器,快闪存储器,可编程只读存储器。
在一个示例性的方案中,当计算机设备1000实现为上述代理设备时,所述收收发器,用于向客户端设备发送可控设备信息;所述可控设备信息包含所述代理设备连接的至少一个物联网设备的信息;接收所述客户端设备根据所述可控设备信息发送的控制指令;所述控制指令用于对所述至少一个物联网设备中的目标设备进行控制;将所述控制指令发送给所述目标设备。
其中,上述计算机设备1000中的处理器1001和/或收发器执行的过程可以参考上述图2或图5任一所示的方法中,由代理设备执行的各个步骤。
在一个示例性的方案中,当计算机设备1000实现为客户端设备时,所述收发器,用于从代理设备获取可控设备信息;所述可控设备信息包含所述代理设备连接的至少一个物联网设备的信息;根据所述可控设备信息向所述代理设备发送控制指令,以便所述代理设备将所述控制指令发送给所述至少一个物联网设备中的目标设备;所述控制指令用于对所述目标设备进行控制。
其中,上述计算机设备1000中的处理器1001和/或收发器执行的过程可以参考上述图3或图5任一所示的方法中,由客户端设备执行的各个步骤。
本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述图2、图3或图5所示的方法中,由代理设备或者客户端设备执行的全部或者部分步骤。
本申请还提供了一种芯片,该芯片用于在计算机设备中运行,以使得计算机设备执行上述图2、图3或图5所示的方法中,由代理设备或者客户端设备执行的全部或者部分步骤。
本申请还提供了一种计算机程序产品,该计算机程序产品或计算机程序包括计算机指令,该计算机指 令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得计算机设备执行上述图2、图3或图5所示的方法中,由代理设备或者客户端设备执行的全部或者部分步骤。
本申请还提供了一种计算机程序,该计算机程序由计算机设备的处理器执行,以实现上述图2、图3或图5所示的方法中,由代理设备或者客户端设备执行的全部或者部分步骤。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
以上所述仅为本申请的示例性实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。

Claims (43)

  1. 一种设备控制方法,其特征在于,所述方法由代理设备执行,所述方法包括:
    向客户端设备发送可控设备信息;所述可控设备信息包含所述代理设备连接的至少一个物联网设备的信息;
    接收所述客户端设备根据所述可控设备信息发送的控制指令;所述控制指令用于对所述至少一个物联网设备中的目标设备进行控制;
    将所述控制指令发送给所述目标设备。
  2. 根据权利要求1所述的方法,其特征在于,所述向客户端设备发送可控设备信息,包括:
    接收所述客户端设备发送的可控设备请求;所述可控设备请求用于请求所述客户端设备支持控制的物联网设备的信息;
    根据所述可控设备请求,向所述客户端设备发送所述可控设备信息。
  3. 根据权利要求2所述的方法,其特征在于,所述可控设备请求用于从第三群集中单次获取所述可控设备信息;所述第三群集用于支持所述代理设备的代理能力;
    所述根据所述可控设备请求,向所述客户端设备发送所述可控设备信息,包括:
    向所述客户端设备发送与所述可控设备请求对应的设备信息获取响应;所述设备信息获取响应中包含所述可控设备信息。
  4. 根据权利要求3所述的方法,其特征在于,所述可控设备信息包括设备信息列表;所述设备信息列表中包含所述客户端设备支持控制的所述至少一个物联网设备中的端点的信息。
  5. 根据权利要求1至4任一所述的方法,其特征在于,所述方法还包括:
    在已存在第一订阅关系的情况下,向所述客户端设备发送设备状态通知消息;所述设备状态通知消息中包含所述可控设备信息对应的物联网设备中发生变更的状态信息;
    其中,所述第一订阅关系包括所述客户端设备对所述可控设备信息对应的物联网设备的状态信息的订阅关系。
  6. 根据权利要求5所述的方法,其特征在于,所述第一订阅关系包括所述客户端设备对第三群集中保存的,与所述可控设备信息对应的物联网设备的状态信息的订阅关系;
    其中,所述第三群集用于支持所述代理设备的代理能力。
  7. 根据权利要求5或6所述的方法,其特征在于,
    所述第一订阅关系对应有至少一条订阅目标路径;
    所述可控设备信息中包含状态发生变化的订阅目标路径,以及状态发生变化的订阅目标路径对应的变化后的状态。
  8. 根据权利要求1至7任一所述的方法,其特征在于,所述方法还包括:
    查询第三群集中是否包含所述可控设备信息;所述第三群集用于支持所述代理设备的代理能力;
    所述向客户端设备发送可控设备信息,包括:
    在所述第三群集中包含所述可控设备信息的情况下,向所述客户端设备发送所述可控设备信息。
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:
    在所述第三群集中不包含所述可控设备信息的情况下,向所述代理设备连接的物联网设备所在的生态系统获取所述可控设备信息。
  10. 一种设备控制方法,其特征在于,所述方法由客户端设备执行,所述方法包括:
    从代理设备获取可控设备信息;所述可控设备信息包含所述代理设备连接的至少一个物联网设备的信息;
    根据所述可控设备信息向所述代理设备发送控制指令,以便所述代理设备将所述控制指令发送给所述至少一个物联网设备中的目标设备;所述控制指令用于对所述目标设备进行控制。
  11. 根据权利要求10所述的方法,其特征在于,所述从代理设备获取可控设备信息,包括:
    向所述代理设备发送可控设备请求;所述可控设备请求用于请求所述客户端设备支持控制的物联网设备的信息;
    接收所述代理设备根据所述可控设备请求发送的所述可控设备信息。
  12. 根据权利要求11所述的方法,其特征在于,所述可控设备请求用于从第三群集中单次获取所述可控设备信息;所述第三群集用于支持所述代理设备的代理能力;
    所述接收所述代理设备根据所述可控设备请求发送的所述可控设备信息,包括:
    接收所述代理设备发送的,与所述可控设备请求对应的设备信息获取响应;所述设备信息获取响应中包含所述可控设备信息。
  13. 根据权利要求12所述的方法,其特征在于,所述可控设备信息包括设备信息列表;所述设备信息列表中包含所述客户端设备支持控制的所述至少一个物联网设备中的端点的信息。
  14. 根据权利要求10至13任一所述的方法,其特征在于,所述方法还包括:
    在已存在第一订阅关系的情况下,接收所述代理设备发送的设备状态通知消息;所述设备状态通知消息中包含所述可控设备信息对应的物联网设备中发生变更的状态信息;
    其中,所述第一订阅关系包括所述客户端设备对所述可控设备信息对应的物联网设备的状态信息的订阅关系。
  15. 根据权利要求14所述的方法,其特征在于,所述第一订阅关系包括所述客户端设备对第三群集中保存的,与所述可控设备信息对应的物联网设备的状态信息的订阅关系;
    其中,所述第三群集用于支持所述代理设备的代理能力。
  16. 根据权利要求14或15所述的方法,其特征在于,
    所述第一订阅关系对应有至少一条订阅目标路径;
    所述可控设备信息中包含状态发生变化的订阅目标路径,以及状态发生变化的订阅目标路径对应的变化后的状态。
  17. 根据权利要求10至16任一所述的方法,其特征在于,所述方法还包括:
    查询所述客户端设备与所述代理设备之间是否存在绑定类型为长期绑定的绑定关系;所述绑定关系用于所述客户端设备通过所述代理设备,对所述代理设备连接的物联网设备进行控制;
    所述从代理设备获取可控设备信息,包括:
    在查询到所述客户端设备与所述代理设备之间存在绑定类型为长期绑定的绑定关系的情况下,从所述代理设备获取所述可控设备信息。
  18. 根据权利要求17所述的方法,其特征在于,所述查询所述客户端设备与所述代理设备之间是否存在绑定类型为长期绑定的绑定关系,包括:
    查询第二群集中是否存在所述代理设备对应的客户端绑定信息;所述第二群集用于支持以所述客户端设备以其它设备作为代理,对所述其它设备连接的物联网设备进行控制;
    在查询到所述第二群集中存在所述代理设备对应的客户端绑定信息的情况下,获取所述代理设备对应的客户端绑定信息中的绑定类型;
    在所述代理设备对应的客户端绑定信息中的绑定类型为长期绑定的情况下,确定所述客户端设备与所述代理设备之间存在绑定类型为长期绑定的绑定关系。
  19. 根据权利要求17或18所述的方法,其特征在于,所述方法还包括:
    在查询到所述客户端设备与所述代理设备之间不存在绑定类型为长期绑定的绑定关系的情况下,建立所述客户端设备与所述代理设备之间的,绑定类型为长期绑定的绑定关系。
  20. 一种设备控制装置,其特征在于,所述装置包括:
    发送模块,用于向客户端设备发送可控设备信息;所述可控设备信息包含代理设备连接的至少一个物联网设备的信息;
    接收模块,用于接收所述客户端设备根据所述可控设备信息发送的控制指令;所述控制指令用于对所述至少一个物联网设备中的目标设备进行控制;
    所述发送模块,还用于将所述控制指令发送给所述目标设备。
  21. 根据权利要求20所述的装置,其特征在于,所述发送模块,用于,
    接收所述客户端设备发送的可控设备请求;所述可控设备请求用于请求所述客户端设备支持控制的物联网设备的信息;
    根据所述可控设备请求,向所述客户端设备发送所述可控设备信息。
  22. 根据权利要求21所述的装置,其特征在于,所述可控设备请求用于从第三群集中单次获取所述可控设备信息;所述第三群集用于支持所述代理设备的代理能力;
    所述发送模块,用于向所述客户端设备发送与所述可控设备请求对应的设备信息获取响应;所述设备信息获取响应中包含所述可控设备信息。
  23. 根据权利要求22所述的装置,其特征在于,所述可控设备信息包括设备信息列表;所述设备信息列表中包含所述客户端设备支持控制的所述至少一个物联网设备中的端点的信息。
  24. 根据权利要求20至23任一所述的装置,其特征在于,所述发送模块,还用于在已存在第一订阅关系的情况下,向所述客户端设备发送设备状态通知消息;所述设备状态通知消息中包含所述可控设备信息对应的物联网设备中发生变更的状态信息;
    其中,所述第一订阅关系包括所述客户端设备对所述可控设备信息对应的物联网设备的状态信息的订阅关系。
  25. 根据权利要求24所述的装置,其特征在于,所述第一订阅关系包括所述客户端设备对第三群集中保存的,与所述可控设备信息对应的物联网设备的状态信息的订阅关系;
    其中,所述第三群集用于支持所述代理设备的代理能力。
  26. 根据权利要求24或25所述的装置,其特征在于,
    所述第一订阅关系对应有至少一条订阅目标路径;
    所述可控设备信息中包含状态发生变化的订阅目标路径,以及状态发生变化的订阅目标路径对应的变化后的状态。
  27. 根据权利要求20至26任一所述的装置,其特征在于,所述装置还包括:
    查询模块,用于查询第三群集中是否包含所述可控设备信息;所述第三群集用于支持所述代理设备的代理能力;
    所述发送模块,用于在所述第三群集中包含所述可控设备信息的情况下,向所述客户端设备发送所述可控设备信息。
  28. 根据权利要求27所述的装置,其特征在于,所述装置还包括:
    获取模块,用于在所述第三群集中不包含所述可控设备信息的情况下,向所述代理设备连接的物联网设备所在的生态系统获取所述可控设备信息。
  29. 一种设备控制装置,其特征在于,所述装置包括:
    获取模块,用于从代理设备获取可控设备信息;所述可控设备信息包含所述代理设备连接的至少一个物联网设备的信息;
    发送模块,用于根据所述可控设备信息向所述代理设备发送控制指令,以便所述代理设备将所述控制指令发送给所述至少一个物联网设备中的目标设备;所述控制指令用于对所述目标设备进行控制。
  30. 根据权利要求29所述的装置,其特征在于,所述获取模块,用于,
    向所述代理设备发送可控设备请求;所述可控设备请求用于请求所述客户端设备支持控制的物联网设备的信息;
    接收所述代理设备根据所述可控设备请求发送的所述可控设备信息。
  31. 根据权利要求30所述的装置,其特征在于,所述可控设备请求用于从第三群集中单次获取所述可控设备信息;所述第三群集用于支持所述代理设备的代理能力;
    所述获取模块,用于接收所述代理设备发送的,与所述可控设备请求对应的设备信息获取响应;所述设备信息获取响应中包含所述可控设备信息。
  32. 根据权利要求31所述的装置,其特征在于,所述可控设备信息包括设备信息列表;所述设备信息列表中包含所述客户端设备支持控制的所述至少一个物联网设备中的端点的信息。
  33. 根据权利要求29至32任一所述的装置,其特征在于,所述装置还包括:
    接收模块,用于在已存在第一订阅关系的情况下,接收所述代理设备发送的设备状态通知消息;所述设备状态通知消息中包含所述可控设备信息对应的物联网设备中发生变更的状态信息;
    其中,所述第一订阅关系包括所述客户端设备对所述可控设备信息对应的物联网设备的状态信息的订阅关系。
  34. 根据权利要求33所述的装置,其特征在于,所述第一订阅关系包括所述客户端设备对第三群集中保存的,与所述可控设备信息对应的物联网设备的状态信息的订阅关系;
    其中,所述第三群集用于支持所述代理设备的代理能力。
  35. 根据权利要求33或34所述的装置,其特征在于,
    所述第一订阅关系对应有至少一条订阅目标路径;
    所述可控设备信息中包含状态发生变化的订阅目标路径,以及状态发生变化的订阅目标路径对应的变化后的状态。
  36. 根据权利要求29至35任一所述的装置,其特征在于,所述装置还包括:
    查询模块,用于查询所述客户端设备与所述代理设备之间是否存在绑定类型为长期绑定的绑定关系;所述绑定关系用于所述客户端设备通过所述代理设备,对所述代理设备连接的物联网设备进行控制;
    所述获取模块,用于在查询到所述客户端设备与所述代理设备之间存在绑定类型为长期绑定的绑定关系的情况下,从所述代理设备获取所述可控设备信息。
  37. 根据权利要求36所述的装置,其特征在于,所述查询模块,用于,
    查询第二群集中是否存在所述代理设备对应的客户端绑定信息;所述第二群集用于支持以所述客户端设备以其它设备作为代理,对所述其它设备连接的物联网设备进行控制;
    在查询到所述第二群集中存在所述代理设备对应的客户端绑定信息的情况下,获取所述代理设备对应的客户端绑定信息中的绑定类型;
    在所述代理设备对应的客户端绑定信息中的绑定类型为长期绑定的情况下,确定所述客户端设备与所述代理设备之间存在绑定类型为长期绑定的绑定关系。
  38. 根据权利要求36或37所述的装置,其特征在于,所述装置还包括:
    建立模块,用于在查询到所述客户端设备与所述代理设备之间不存在绑定类型为长期绑定的绑定关系的情况下,建立所述客户端设备与所述代理设备之间的,绑定类型为长期绑定的绑定关系。
  39. 一种计算机设备,其特征在于,所述计算机设备包括处理器、存储器和收发器;
    所述存储器中存储有计算机程序,所述处理器执行所述计算机程序,以使得所述计算机设备实现如上述权利要求1至19任一所述的设备控制方法。
  40. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序,所述计算机程序用于被处理器执行,以实现如权利要求1至19任一所述的设备控制方法。
  41. 一种芯片,其特征在于,所述芯片用于在计算机设备中运行,以使得所述计算机设备执行如权利要求1至19任一所述的设备控制方法。
  42. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中;计算机设备的处理器从所述计算机可读存储介质读取所述计算机指令,并执行所 述计算机指令,使得所述计算机设备执行如权利要求1至19任一所述的设备控制方法。
  43. 一种计算机程序,其特征在于,所述计算机程序由计算机设备的处理器执行,以实现如权利要求1至19任一所述的设备控制方法。
PCT/CN2022/112261 2022-08-12 2022-08-12 设备控制方法、装置、设备、存储介质及程序产品 WO2024031682A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/112261 WO2024031682A1 (zh) 2022-08-12 2022-08-12 设备控制方法、装置、设备、存储介质及程序产品

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/112261 WO2024031682A1 (zh) 2022-08-12 2022-08-12 设备控制方法、装置、设备、存储介质及程序产品

Publications (1)

Publication Number Publication Date
WO2024031682A1 true WO2024031682A1 (zh) 2024-02-15

Family

ID=89850464

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/112261 WO2024031682A1 (zh) 2022-08-12 2022-08-12 设备控制方法、装置、设备、存储介质及程序产品

Country Status (1)

Country Link
WO (1) WO2024031682A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120130513A1 (en) * 2010-11-18 2012-05-24 Verizon Patent And Licensing Inc. Smart home device management
CN104850012A (zh) * 2015-04-27 2015-08-19 奇瑞汽车股份有限公司 智能家居控制方法和系统
CN106292319A (zh) * 2016-08-23 2017-01-04 北京汽车集团有限公司 处理指示信息的方法、车载终端及系统
CN206077420U (zh) * 2016-10-13 2017-04-05 北方民族大学 智能家居设备的控制系统
CN110888334A (zh) * 2019-11-28 2020-03-17 星络智能科技有限公司 一种智能家居控制方法及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120130513A1 (en) * 2010-11-18 2012-05-24 Verizon Patent And Licensing Inc. Smart home device management
CN104850012A (zh) * 2015-04-27 2015-08-19 奇瑞汽车股份有限公司 智能家居控制方法和系统
CN106292319A (zh) * 2016-08-23 2017-01-04 北京汽车集团有限公司 处理指示信息的方法、车载终端及系统
CN206077420U (zh) * 2016-10-13 2017-04-05 北方民族大学 智能家居设备的控制系统
CN110888334A (zh) * 2019-11-28 2020-03-17 星络智能科技有限公司 一种智能家居控制方法及存储介质

Similar Documents

Publication Publication Date Title
US11044593B2 (en) Method and devices for managing constrained devices
US8443071B2 (en) Data server system and method
EP3361707B1 (en) Method and apparatus for controlling and managing a field device using an industry internet operating system
US20220121078A1 (en) System and method for batching data for electrochrom glass control systems
US11722456B2 (en) Communications in internet-of-things devices
US8135014B2 (en) UPnP-based network system and control method thereof
JP2018506868A (ja) モノのインターネット(IoT)デバイスのための接続性モジュール
WO2016169231A1 (zh) 一种基于蓝牙组建稳态微微网的方法及其系统
EP2640002B1 (en) Method, apparatus and system for configuring device
WO2019071800A1 (zh) 电子设备、网络共享方法及装置
Evensen et al. SenseWrap: A service oriented middleware with sensor virtualization and self-configuration
WO2020177020A1 (zh) 物联网设备的发现方法、装置及终端设备
WO2024031682A1 (zh) 设备控制方法、装置、设备、存储介质及程序产品
CN109076059B (zh) 设备间通信
US20230045914A1 (en) Method and apparatus for controlling device in internet of things, and gateway device and storage medium
WO2024031681A1 (zh) 设备绑定方法、装置、设备、存储介质及程序产品
WO2021134252A1 (zh) 设备间通信方法、装置、和存储介质
TW201006191A (en) UPnP/DLNA device support apparatus, system, and method
WO2024031680A1 (zh) 设备解绑方法、装置、设备、存储介质及程序产品
WO2023108653A1 (zh) 订阅权限信息处理方法、装置、计算机设备及存储介质
CN107807619A (zh) 基于虚拟服务器模块的智能家居控制系统及其工作方法
WO2023201587A1 (zh) 设备控制方法、装置、设备及存储介质
CN102904978A (zh) 泛在网络内泛在设备实现通用即插即用的方法
WO2023082113A1 (zh) 对桥接设备进行配置的方法、装置、设备及存储介质
WO2024011634A1 (zh) 订阅消息处理方法、装置、设备、存储介质及程序产品

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

Country of ref document: EP

Kind code of ref document: A1