WO2017129014A1 - Method and apparatus for controlling internet of things device, and server and mobile device - Google Patents

Method and apparatus for controlling internet of things device, and server and mobile device Download PDF

Info

Publication number
WO2017129014A1
WO2017129014A1 PCT/CN2017/071551 CN2017071551W WO2017129014A1 WO 2017129014 A1 WO2017129014 A1 WO 2017129014A1 CN 2017071551 W CN2017071551 W CN 2017071551W WO 2017129014 A1 WO2017129014 A1 WO 2017129014A1
Authority
WO
WIPO (PCT)
Prior art keywords
group
attribute
result
module
internet
Prior art date
Application number
PCT/CN2017/071551
Other languages
French (fr)
Chinese (zh)
Inventor
安勍
Original Assignee
阿里巴巴集团控股有限公司
安勍
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 阿里巴巴集团控股有限公司, 安勍 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2017129014A1 publication Critical patent/WO2017129014A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Definitions

  • the present application relates to the field of Internet of Things technologies, and in particular, to a method and device for controlling an Internet of Things device, a server, and a mobile device.
  • the Internet of Things devices can be, for example, air conditioners with refrigerators, refrigerators, electric lights, etc. device.
  • the existing technology establishes a mapping relationship between the smart phone and the Internet of Things device through the cloud platform.
  • the user needs to open all the IoT devices in the home, the user needs to select the IoT device through the smart phone in turn.
  • the request for opening the selected IoT device is sent to the cloud platform in turn, resulting in inefficient interaction between the user and the IoT device, which is inconvenient for the user to use.
  • the present application provides a new technical solution, which can effectively improve the interaction efficiency between the user and the Internet of Things device.
  • a method of controlling an Internet of Things device comprising:
  • the group request message carries a group ID of a packet in which the target Internet of Things device is located, a group attribute name corresponding to the group ID, and a group attribute value corresponding to the group ID;
  • a function attribute operation instruction for controlling the target Internet of Things device According to the functional property of the target Internet of Things device and the target Internet of Things device a function attribute operation instruction for controlling the target Internet of Things device;
  • a method of controlling an Internet of Things device comprising:
  • the server sending a group request message to the server, where the group request message carries the group ID of the group where the target IoT device is located, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID, for the
  • the server generates a function attribute operation instruction for controlling the target object network device according to the group ID, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID;
  • an apparatus for controlling an Internet of Things device comprising:
  • a first receiving module configured to receive a group request message from a mobile device, where the group request message carries a group ID of a packet where the target Internet of Things device is located, a group attribute name corresponding to the group ID, and the group ID corresponding to the Group attribute value;
  • a first determining module configured to query a group management table according to the group ID in the group request message received by the first receiving module, to determine, according to the group management table, a target Internet of things corresponding to the group ID
  • the device needs to be performed under the condition that the group attribute name in the group request message received by the first receiving module and the group attribute value in the group request message received by the first receiving module Functional attributes of the operation;
  • a first generation module configured to generate a function attribute operation instruction for controlling the target object network device according to a function attribute that the target object network device and the first object determining device determine that the target object network device needs to operate;
  • a first sending module configured to send, to the target Internet of Things device, the function attribute operation instruction generated by the first generation module, for the target object network device to execute the function attribute operation instruction.
  • an apparatus for controlling an Internet of Things device including:
  • a fifth sending module configured to send a group request message to the server, where the group request message is carried a group ID of a group in which the target Internet of Things device is located, a group attribute name corresponding to the group ID, and a group attribute corresponding to the group ID, for the server to correspond to the group ID and the group ID.
  • the group attribute name and the group attribute value corresponding to the group ID generate a function attribute operation instruction for controlling the target object network device;
  • a fifth receiving module configured to receive a group operation result returned by the server according to the group request message sent by the fifth sending module, where the group operation result is performed by the target Internet of Things device;
  • a display module configured to display a group operation result that the target object network device received by the fifth receiving module executes the function attribute operation instruction.
  • a server comprising:
  • a processor a memory for storing the processor executable instructions; a network interface;
  • the network interface is configured to receive a group request message from a mobile device, where the group request message carries a group ID of a packet where the target Internet of Things device is located, a group attribute name corresponding to the group ID, and the group The group attribute corresponding to the ID takes a value;
  • the processor is configured to query, according to the group ID, a packet management table, to determine, according to the group management table, a condition that the target object network device corresponding to the group ID corresponds to the group attribute name and the group attribute value
  • the network interface is further configured to send the function attribute operation instruction to the target object network device, so that the target object network device executes the function attribute operation instruction.
  • a mobile device comprising:
  • a processor a memory for storing the processor executable instructions; a network interface and a display;
  • the network interface is configured to send a group request message to the server, where the group request message carries a group ID of a group where the target Internet of Things device is located, a group attribute name corresponding to the group ID, and a group corresponding to the group ID
  • the attribute value is used by the server to generate a function attribute operation instruction for controlling the target object network device according to the group ID, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID.
  • the display screen is configured to display a result of the target Internet of Things device executing the function attribute operation instruction.
  • the application can enable the server to generate a function attribute operation instruction for controlling the target object network device according to the function attribute of the target object network device and the target object network device, and control the target object network device through the function attribute operation instruction.
  • the interaction with the target IoT device is realized in groups, the interaction efficiency between the user and the IoT device is improved, the interaction process between the user and the IoT device is optimized, and the user is provided with more intelligent Internet of Things services.
  • FIG. 1A is a flow chart showing a method of controlling an Internet of Things device according to an exemplary embodiment of the present invention
  • FIG. 1B shows a scene view to which the embodiment shown in FIG. 1A is applied
  • FIG. 2 is a flow chart showing a method of controlling an Internet of Things device according to an exemplary embodiment 2 of the present invention
  • FIG. 3 is a flow chart showing a method of controlling an Internet of Things device according to an exemplary embodiment 3 of the present invention
  • FIG. 4 is a flow chart showing a method of controlling an Internet of Things device according to an exemplary embodiment 4 of the present invention
  • FIG. 5 is a flow chart showing a method of controlling an Internet of Things device according to an exemplary embodiment 5 of the present invention
  • FIG. 6 is a flow chart showing a method of controlling an Internet of Things device according to an exemplary embodiment 6 of the present invention
  • FIG. 7 is a flow chart showing a method of controlling an Internet of Things device according to an exemplary embodiment 7 of the present invention.
  • FIG. 8 is a signaling diagram of a method of controlling an Internet of Things device according to an exemplary embodiment 9 of the present invention.
  • FIG. 9 is a block diagram showing the structure of a server according to an exemplary embodiment of the present invention.
  • FIG. 10 is a block diagram showing the structure of a mobile device according to an exemplary embodiment of the present invention.
  • FIG. 11 is a block diagram showing the structure of an apparatus for controlling an Internet of Things device according to an exemplary embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 3 of the present invention.
  • FIG. 14 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 4 of the present invention.
  • 15 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 5 of the present invention.
  • 16 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 6 of the present invention.
  • FIG. 17 is a block diagram showing the structure of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 7 of the present invention.
  • first, second, third, etc. may be used in this application to describe various Information, but this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as the second information without departing from the scope of the present application.
  • second information may also be referred to as the first information.
  • word "if” as used herein may be interpreted as "when” or “when” or “in response to a determination.”
  • FIG. 1A is a schematic flowchart of a method for controlling an Internet of Things device according to an exemplary embodiment of the present invention
  • FIG. 1B is a view showing a scenario applicable to the embodiment shown in FIG. 1A; the embodiment can be applied to a server. As shown in FIG. 1A, the following steps are included:
  • Step 101 Receive a group request message from a mobile device, where the group request message carries a group ID of a packet in which the target Internet of Things device is located, a group attribute name corresponding to the group ID, and a group attribute value corresponding to the group ID.
  • the user can generate a group request message by operating an application on the mobile device or a webpage page on the browser, so that the server can make the group ID in the group request message after receiving the group request message (
  • the group ID is, for example, ABC) to generate a function attribute operation instruction corresponding to the group ID.
  • the group ID represents the packet ID of the IoT device for identifying a packet, and the uniqueness on the server needs to be guaranteed.
  • the group attribute name indicates a function provided by the group for the user to operate, and may be set according to a function implemented by the group corresponding to the group ID.
  • the group attribute name may include “Home setting", “Home setting”, for the grouping of air conditioners, the group attribute name may include "user optimal room temperature setting".
  • the value of the group attribute may be a value range of the attribute of the group.
  • the value of the group attribute may include “1” and “0”.
  • the group attribute The value can be the most suitable room temperature "27" degrees Celsius for the user.
  • Step 102 Query the group management table according to the group ID to determine, according to the group management table, a function attribute that needs to be operated under the condition that the target object network device corresponding to the group ID corresponds to the group attribute name and the group attribute value.
  • the server may provide a user configuration interface for the mobile device, by which the user determines the grouping of the Internet of Things device that needs to be controlled, and the member devices included in each group, each of which is
  • the packet device included in the packet and the logical configuration description information corresponding to each device of the packet are sent to the server, and the server configures the description information according to the packet device in each packet and the packet logical configuration corresponding to each packet device, and the object that needs to be controlled by the user
  • the networked device performs group management and generates a packet management table corresponding to each packet.
  • the group operation management table corresponding to the user leaving the home and the user entering the home is as shown in Table 1
  • the group management table corresponding to the user's optimal room temperature setting is as shown in Table 2.
  • the user determines that the grouping of the Internet of Things devices that need to be controlled by the user configuration interface includes ABC1, ABC2, and ABC3, wherein the member devices included in the ABC1 packet include an air conditioner, a humidifier, and a water heater.
  • the gate detector includes a member device included in the ABC2 packet including an air conditioner, a humidifier, and a gate detector.
  • the member devices included in the ABC3 packet include two air conditioners, which can be distinguished by two device IDs: 0xfe31 and 0xfe32.
  • the logical configuration description information may include information such as group attribute values, descriptions, device IDs, device attribute names, and device attribute values in Tables 1 and 2, and group IDs in Table 1 and Table 2.
  • the group attribute name, device ID, device type, and device attribute name are used to indicate the group where the IoT device is located and the function corresponding to the group.
  • Step 103 Generate a function attribute operation instruction for controlling the target object network device according to the function attribute that the target object network device and the target object network device need to operate.
  • the target Internet of Things devices may be one or more than two.
  • the number of target Internet of Things devices is not limited in this application.
  • the function attribute indicates a function that the IoT device can provide for the user to operate.
  • the switch function attribute of the smart air conditioner indicates that the air conditioner is turned on or off
  • the temperature query function attribute indicates that the current room temperature is queried.
  • Function, temperature setting function attribute indicates the function of setting the air temperature value, and so on.
  • the Internet of Things device can register all of its own functional attributes to the server, thereby enabling the server to uniformly manage the Internet of Things devices.
  • the air conditioner 0xfe31 shown in Tables 1 and 2 above can be switched.
  • the functional attributes and temperature function attributes are registered to the server, which enables the server to uniformly manage the function attributes of the air conditioner 0xfe31.
  • Step 104 Send a function attribute operation instruction to the target object network device, so that the target object network device executes the function attribute operation instruction.
  • the air conditioner 131, the humidifier 132, and the gate detector 133 are located in the group ID ABC2 group shown in Table 1, and the corresponding group attribute name is "home setting", and the group attribute value is " 1", after the server 12 performs the above steps 101-step 104, the air conditioner 131, the humidifier 132, and the gating detector 133 can set or query the specified function attribute value according to the function attribute operation instruction, for example, the air conditioner 131 passes For the query, set the switch to "1", the temperature is set to "25”, the humidifier 132 sets the switch to "1", and the gate detector sets the switch to "0", thereby realizing the group ID "ABC2". IoT devices in the group are controlled.
  • the server can enable the server to generate a function attribute operation instruction for controlling the target object network device according to the function attribute of the target object network device and the target object network device.
  • the function attribute operation instruction controls the target IoT device, realizes interaction with the target IoT device in groups, improves the interaction efficiency between the user and the IoT device, and optimizes the interaction process between the user and the IoT device. Provide users with more intelligent IoT services.
  • FIG. 2 is a schematic flowchart of a method for controlling an Internet of Things device according to an exemplary embodiment 2 of the present invention. After the target IoT device executes a function attribute operation instruction, how does the server forward the instruction execution result to the mobile device? An example is illustrated in conjunction with FIG. 1B. As shown in FIG. 2, the following steps are included:
  • Step 201 Receive an instruction execution result returned by the target IoT device after executing the function attribute operation instruction.
  • the data transmission may be performed between the mobile device and the server by using HTTP.
  • the execution result of the instruction may be an HTTP reply message.
  • the specific expression of the execution result of the instruction is not limited, as long as the server can pass and move.
  • the communication protocol between the devices can receive the result of the instruction execution.
  • the instruction execution result may be either an execution success or an execution exception.
  • Step 202 Determine the number of execution results of the instruction, and determine whether the number of execution results of the instruction is two or more. If the number of execution results of the instruction is two or more, step 203 is performed, and if the number of execution results of the instruction is one, the instruction may be executed. The execution results are forwarded directly to the mobile device.
  • more than two target IoT devices may perform more than two instruction execution results.
  • Step 203 If the number of execution results of the instruction is two or more, it is determined whether there is an abnormal result in the execution result of the two or more instructions. If there is an abnormal result in the execution result of the two or more instructions, step 204 is performed, if two or more There is no abnormal result in the execution result of the instruction, and two or more operation instructions can be directly aggregated to obtain the result of the group operation.
  • the server after the server receives more than two instruction execution results, if there is no abnormal result in the execution results of more than two instructions, the server aggregates two or more HTTP reply messages into a new HTTP reply message. , the payload in the new HTTP reply message (payload) The content is "Succeed”.
  • Step 204 If there is an abnormal result in the execution result of the two or more instructions, the device ID corresponding to the abnormal result, the device type corresponding to the device ID, and the device attribute name corresponding to the device ID are determined from the packet management table.
  • Step 205 Aggregate the execution results of the two or more instructions, and add the error information corresponding to the device ID, the device type, the device attribute name, and the device ID to the group operation result obtained by the aggregation.
  • the error information is, for example, the smart air conditioner is in a closed state, the request command format is incorrect, the temperature value set by the smart air conditioner is out of range, and the like, and the specific content of the error information is not in the present application.
  • the device ID the device type, the device attribute name, and the device ID, refer to the foregoing embodiment, and details are not described herein.
  • Step 206 Return the group operation result to the mobile device, so that the mobile device displays to the user the group operation result of the target IoT device performing the function attribute operation instruction.
  • the data transmission between the mobile device 11 and the server 12 by using HTTP is exemplified as an example, the smart air conditioner 131 (device ID is 0xfe31), the intelligent humidifier 132 (device ID is 0xfe33), The gate detector 133 (device ID is 0xfe45) returns the instruction execution result to the server 12 in the form of an HTTP reply message after executing the function attribute operation instruction, the server 12 can receive three HTTP reply messages, and the server 12 analyzes each HTTP in turn. Replying to the payload in the message. If the load in the three HTTP reply messages indicates that the execution succeeds "Succeed", the server 12 aggregates the three HTTP reply messages into a new HTTP reply message, the new HTTP reply message.
  • the content of the payload is "Succeed” and is returned to the mobile device 11. If the server 12 detects that the payload content in the HTTP reply message replied by the smart air conditioner 131 is an error or an exception "Exception: XXX”, the server 12 aggregates the three HTTP reply messages into a new HTTP reply message.
  • the payload content of the new HTTP reply message is "Device ID 0xfe31: Exception: XXX; Device ID 0xfe33: Exception: XXX; Device ID 0xfe45: Succeed", and the new HTTP reply message is returned to the mobile device. 11.
  • the mobile device 11 displays the result of the group operation of the target IoT device executing the function attribute operation instruction, so that the smart air conditioner 131, the intelligent humidifier 132, and the door detector 133 can be made clear by the user after executing the function attribute operation instruction. status.
  • the group operation result is forwarded to the mobile by aggregating the instruction execution result.
  • Devices can greatly improve the efficiency of interaction between mobile devices and more than two IoT devices.
  • FIG. 3 is a schematic flowchart diagram of a method for controlling an Internet of Things device according to an exemplary embodiment 3 of the present invention; this embodiment takes an example of registering a function attribute of an IoT device to a server and exemplarily illustrated in FIG. 1B, as shown in FIG. 3 . As shown, the following steps are included:
  • Step 301 Receive device function attribute description information sent by the IoT device for registration.
  • Step 302 Generate a device ID and a registration result corresponding to the Internet of Things device according to the device function description information, and store the device function description information into the database.
  • step 303 the registration result is returned to the Internet of Things device, and the registration result includes the device ID.
  • the format of the device function attribute description information of the Internet of Things device is as shown in Table 3.
  • Device address used for server addressing IoT devices. Table 3 above takes an IP address as an example for illustration.
  • ⁇ Name The name of the IoT device, which can be customized by the user.
  • Type The type of IoT device that can represent the type of IoT device based on the functional classification of IoT devices.
  • Attribute name The name of the function attribute of the IoT device.
  • a function attribute indicates the function that the IoT device can provide for the user to operate.
  • the switch function attribute of the smart air conditioner indicates the function of controlling the opening or closing of the smart air conditioner.
  • the temperature setting function attribute represents the function of setting the air temperature value, and so on. If there are multiple functional attribute names for IoT devices, you can register them all with the server.
  • Attribute value The value range of the function attribute of the IoT device.
  • the switch attribute has a value of 0 or 1.
  • Attribute value name Corresponds to the value of the above attribute, indicating the meaning of the value of the IoT device function. For example, the switch attribute, when the attribute value is 1, indicates the open operation.
  • the manner in which the device function attribute description information in the present application can be used includes, but is not limited to, the following: json, xml, which may be determined according to specific circumstances, and the present application does not limit the specific implementation manner.
  • the device ID in the registration result and synchronizing the function attribute information of the IoT device to the server, it can be ensured that the device ID is carried in the group request message sent by the IoT device to the server, so that the server is based on Device function attributes Group management of IoT devices, enabling users to interact with IoT devices in groups.
  • FIG. 4 is a schematic flowchart diagram of a method for controlling an Internet of Things device according to an exemplary embodiment 4 of the present invention; this embodiment takes an example of how to implement group management of an Internet of Things device and is exemplified in FIG. 1B, as shown in FIG. 4 . As shown, the following steps are included:
  • Step 401 Receive a packet device from the mobile device and logical configuration description information about the packet device.
  • the server may provide a user configuration interface for the mobile device, and the user configuration interface may be a user interface of the application or a web interface.
  • the user configuration interface Through the user configuration interface, the user can perform group management on the IoT device according to the requirements of the IoT device and the functional attributes of the IoT device, and provide grouping operation logic corresponding to the IoT device, and group the device through the mobile device. And the logical configuration description information about the packet device is sent to the server.
  • Step 402 Generate a group management table corresponding to the grouping device according to the logical configuration description information.
  • the server may perform group management on the IoT device according to the configuration input of the user, and generate a group management table, as shown in Table 4.
  • Group ID The group ID, which is used to identify the group, and needs to be unique on the server.
  • Group attribute name group attribute name
  • a group attribute indicates the function that the group can provide externally for the user to operate.
  • Group attribute value The range of values of the group attribute.
  • Device ID The device ID corresponding to the value of the group attribute, indicating the device that needs to be operated for the value of the group attribute.
  • the device ID needs to be unique on the server.
  • the length of the device ID can be determined based on actual implementation.
  • Device Type The type of device is identified by device function classification.
  • Device attribute name The device function attribute name indicates the device function attribute that needs to be operated for any group attribute value.
  • ⁇ Device attribute value indicates the value parameter of the device function attribute that needs to be operated for any group attribute.
  • Step 403 Return the result of the grouping configuration of the Internet of Things device to the mobile device.
  • the group management table corresponding to the grouping device is generated according to the logical configuration description information, and the group management of the object network device based on the group management table can be implemented.
  • the group management table maintained on the server can enable the user according to the requirement. Set up group management and control logic through mobile devices to make it easy for users to customize IoT services through the server.
  • FIG. 5 is a schematic flowchart diagram of a method for controlling an Internet of Things device according to an exemplary embodiment 5 of the present invention; this embodiment is exemplified by how to synchronize the state of the Internet of Things device, as shown in FIG. 5, including the following step:
  • Step 501 Determine a device function attribute status that changes in a device function attribute state of the Internet of Things device.
  • Step 502 Update the group management table corresponding to the Internet of Things device according to the changed device function attribute.
  • Step 503 Synchronize the changed device function attribute status to the mobile device.
  • the air conditioner having the device ID of 0xfe32 when the switch state of the air conditioner having the device ID of 0xfe32 is changed to the off state, the air conditioner having the device ID of 0xfe32 is turned off.
  • the status information is updated to the server 12 in synchronization.
  • the server deletes the information on the air conditioner whose device ID is 0xfe32 from Table 2, and the packet management table after the group management table update shown in Table 2 is as shown in Table 5 below.
  • the group management table corresponding to the Internet of Things device is updated according to the changed device function attribute, so that the IoT device can be more intelligent and accurate group management, and the user experience of using the Internet of Things service is improved.
  • FIG. 6 shows a flow of a method of controlling an Internet of Things device according to an exemplary embodiment 7 of the present invention.
  • the embodiment can be applied to a mobile device, as shown in FIG. 6, and includes the following steps:
  • Step 601 Send a group request message to the server, where the group request message carries the group ID of the group where the target IoT device is located, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID, so that the server can use the group ID according to the group ID.
  • the group attribute name corresponding to the group ID and the group attribute value corresponding to the group ID generate a function attribute operation instruction for controlling the target object network device.
  • the group request message may be generated by an application on the mobile device or a webpage page on the browser, so that the server may, after receiving the group request message, according to the group ID (group ID) in the group request message.
  • group ID group ID
  • ABC group ID
  • Step 602 The group operation result returned by the server according to the group request message, and the group operation result is performed by the target Internet of Things device.
  • Step 603 Display a group operation result of the target IoT device executing the function attribute operation instruction.
  • the user can interact with the target Internet of Things device in groups by using the mobile device, thereby improving the interaction efficiency between the mobile device and the Internet of Things device, and optimizing.
  • the interaction process between mobile devices and IoT devices provides users with more intelligent IoT services.
  • FIG. 7 is a schematic flowchart diagram of a method for controlling an Internet of Things device according to an exemplary embodiment 8 of the present invention; this embodiment takes an example of how to determine logical configuration description information of a target Internet of Things device and how to synchronize the state of the target Internet of Things.
  • An exemplary illustration is made in conjunction with FIG. 1B, as shown in FIG. 7, including the following steps:
  • Step 701 Determine a packet where the target Internet of Things device is located and logical configuration description information about the packet.
  • Step 702 Send logical configuration description information to the server, so that the server generates a packet management table corresponding to the packet according to the logical configuration description information.
  • Step 703 sending a group request message to the server, where the group request message carries the target Internet of Things
  • the group ID of the group in which the device is located, the group attribute name corresponding to the group ID, and the group attribute corresponding to the group ID are used for the server to generate values based on the group ID, the group attribute name corresponding to the group ID, and the group attribute corresponding to the group ID.
  • Step 704 The group operation result returned by the server according to the group request message, and the group operation result is performed by the target Internet of Things device.
  • Step 705 Display a group operation result of the target IoT device executing the function attribute operation instruction.
  • Step 706 Determine whether there is an abnormal result in the group operation result.
  • Step 707 If there is an abnormal result in the group operation result, the device ID of the target Internet of Things, the device type corresponding to the device ID, and the device attribute name corresponding to the device ID of the abnormal result are parsed from the group operation result.
  • step 706 and step 707 the server 12 aggregates the three HTTP reply messages into a new HTTP reply message, and the payload content in the new HTTP reply message is "Device ID 0xfe31: Exception: XXX; Device ID 0xfe33: Exception: XXX; Device ID 0xfe45: Succeed", and returns the new HTTP reply message to the mobile device 11, after the mobile device 11 receives the new HTTP reply message, by parsing the new The device ID in the HTTP reply message and "Exception", so that IoT devices with abnormal results can be identified.
  • the server may be configured to generate a group management table corresponding to the grouping device according to the logical configuration description information, to implement group management of the object network device based on the group management table; and further, The group management table allows the user to set the group management and control logic through the mobile device according to their needs, thereby facilitating the user to customize the Internet of Things service through the server.
  • the method may further include:
  • a target Internet of Things device 1 is a target Internet of Things device 2, ..., a target Internet of Things device N in this embodiment are both It has been successfully registered on the server by the embodiment shown in FIG. 3 above, and the mobile device has implemented group management by the embodiment shown in FIG. 4 above, where N is a positive integer, indicating the number of target Internet of Things devices, as shown in FIG. , including the following steps:
  • Step 801 The mobile device sends a group request message to the server, where the group request message carries the group ID, the group attribute name, and the group attribute value of the group.
  • Step 802 After receiving the group request message, the server parses the group ID, the group attribute name, and the group attribute value from the group request message.
  • Step 803 Query the group management table according to the group ID, the group attribute name, and the group attribute value, determine the target Internet of Things device and the function attribute of the target object network device, and create a function attribute operation instruction corresponding to the object network device.
  • Step 804 the function attribute operation instruction is sent to the target Internet of Things device 1, the target Internet of Things device 2, ..., the target Internet of Things device N.
  • Step 805 after the target Internet of Things device 1, the target Internet of Things device 2, ..., the target Internet of Things device N receives the function attribute operation instruction, executes the function attribute operation instruction, for example, performs the function attribute value related to the function attribute operation instruction. Set or query.
  • Step 806 the target Internet of Things device 1, the target Internet of Things device 2, ..., the target Internet of Things device N returns an instruction execution result of executing the function attribute operation instruction to the server.
  • Step 807 after the server receives the execution result of the target Internet of Things device 1, the target Internet of Things device 2, ..., the target Internet of Things device N, the target Internet of Things device 1, the target Internet of Things device 2, ..., the target Internet of Things device N
  • the multiple instruction execution results are aggregated to obtain the group operation result.
  • the execution result of the instruction indicates that the execution is successful
  • the result of the group operation that the group operation succeeds is generated; if there is an error in the execution result of the instruction or the abnormal result returns, the corresponding device ID, name, type, error information, and the like are added to the group operation result.
  • step 808 the server returns the result of the group operation to the mobile device.
  • step 809 the mobile device displays the group operation result to the user.
  • the user can make the server operate and control the IoT device in the group, reduce the number of interactions between the user and the IoT device, and make the interaction efficiency between the user and the IoT device. Improved and improved user experience.
  • the present application also proposes a schematic structural diagram of the server according to an exemplary embodiment of the present application shown in FIG. 9.
  • the server includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may of course include hardware required for other services.
  • the processor reads the corresponding computer program from the non-volatile memory into memory and then runs to form a device that controls the IoT device at a logical level.
  • the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and may be Hardware or logic device.
  • the network interface is configured to receive a group request message from the mobile device, where the group request message carries the group ID of the group where the target IoT device is located, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID.
  • a processor configured to query a group management table according to the group ID, to determine, according to the group management table, a function attribute that needs to be operated under the condition that the target object network device corresponding to the group ID corresponds to the group attribute name and the group attribute value;
  • the network interface is further configured to send a function attribute operation instruction to the target object network device for the target object network device to execute the function attribute operation instruction.
  • the present application also proposes a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application shown in FIG.
  • the electronic device includes a processor, an internal bus, a network interface, a display screen, a memory, and a non-volatile memory, and may of course include hardware required for other services.
  • the processor reads the corresponding computer program from the non-volatile memory into memory and then runs to form a device that controls the IoT device at a logical level.
  • the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and may be Hardware or logic device.
  • the network interface is configured to send a group request message to the server, where the group request message carries the group ID of the group where the target IoT device is located, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID, for
  • the server generates a function attribute operation instruction for controlling the target object network device according to the group ID, the group attribute name corresponding to the group ID, and the group attribute corresponding to the group ID; and the group operation result returned by the receiving server according to the group request message, the group The result of the operation is determined by the target IoT device;
  • a display screen that displays the results of the target IoT device's execution of the function attribute operation instructions.
  • FIG. 11 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment of the present invention.
  • the apparatus for controlling an Internet of Things device may include: a first receiving module 111, and a first determining module. 112.
  • the first receiving module 111 is configured to receive a group request message from the mobile device, where the group request message carries the group ID of the group where the target IoT device is located, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID. ;
  • the first determining module 112 is configured to query the group management table according to the group ID in the group request message received by the first receiving module 111, to determine, according to the group management table, that the target object network device corresponding to the group ID is received by the first receiving module 111. a function attribute that needs to be operated under the condition that the group attribute name in the group request message and the group attribute value in the group request message received by the first receiving module 111;
  • the first generating module 113 is configured to generate a function attribute operation instruction for controlling the target object network device according to the function attribute that the target object network device and the first object determining device 112 determine that the target object network device needs to operate;
  • the first sending module 114 is configured to send, to the target Internet of Things device, a function attribute operation instruction generated by the first generation module 113, for the target object network device to execute the function attribute operation instruction.
  • FIG. 12 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment of the present invention.
  • the apparatus may further include:
  • the second receiving module 115 is configured to receive an instruction execution result returned by the target IoT device after executing the function attribute operation instruction sent by the first sending module 114;
  • a second determining module 116 configured to determine a quantity of instruction execution results received by the second receiving module 115;
  • the result aggregation module 117 is configured to, if the second determining module 116 determines that the number of execution results of the instruction is two or more, aggregate two or more instruction execution results to obtain a group operation result;
  • the second sending module 118 is configured to return the group operation result obtained by the result aggregation module 117 to the mobile device, so that the mobile device displays to the user the result of executing the function attribute operation instruction by the target object network device.
  • the apparatus may further include:
  • a third determining module 119 configured to determine whether an abnormal result exists in two or more instruction execution results if the second determining module 116 determines that the number of instruction execution results is two or more;
  • the fourth determining module 120 is configured to: if the third determining module 119 determines that there is an abnormal result in the execution result of the two or more instructions, determine, from the group management table, a device ID corresponding to the abnormal result, a device type corresponding to the device ID, and a device ID corresponding to the device ID Device attribute name;
  • the adding module 121 is configured to add the device ID, the device type, the device attribute name, and the error information corresponding to the device ID determined by the fourth determining module 120 to the group operation result obtained by the result aggregation module 117.
  • FIG. 13 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 3 of the present invention.
  • the apparatus may further include:
  • a third receiving module 122 configured to receive device function attribute description information sent by the IoT device for registration
  • the processing module 123 is configured to generate, according to the device function attribute description information received by the third receiving module, a device ID corresponding to the IoT device and a registration result, and store the device function attribute description information into a database;
  • the third sending module 124 is configured to return the registration result generated by the processing module 123 to the Internet of Things device, where the registration result includes the device ID.
  • FIG. 14 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 4 of the present invention.
  • the apparatus may further include:
  • a fourth receiving module 125 configured to receive a packet device from the mobile device and logical configuration description information about the packet device
  • the second generation module 126 is configured to generate, according to the logical configuration description information received by the fourth receiving module 125, a group management table corresponding to the grouping device, for the first determining module 122 to generate according to the second
  • the group management table generated by the module 96 determines the group attribute name in the group request message received by the target object network device corresponding to the group ID and the group attribute value in the group request message received by the first receiving module 121.
  • the function attribute that needs to be operated under the corresponding conditions;
  • the fourth sending module 127 is configured to return a packet configuration result of the Internet of Things device to the mobile device.
  • FIG. 15 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 5 of the present invention. As shown in FIG. 15, the apparatus may further include:
  • the fifth determining module 128 is configured to determine a device function attribute state that changes in a device function attribute state of the target IoT device;
  • the first update module 129 is configured to update the group management table according to the changed device function attribute determined by the fifth determining module 1212, so that the first determining module 112 determines the group ID corresponding according to the updated group management table by the first update module 129.
  • the functional attribute of the target IoT device that needs to be operated under the condition that the group attribute name in the group request message received by the first receiving module 111 and the group attribute value in the group request message received by the first receiving module 111 correspond to;
  • the synchronization module 110 is configured to synchronize the changed device function attribute status determined by the fifth determining module 128 to the mobile device.
  • FIG. 16 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 6 of the present invention. As shown in FIG. 16, the apparatus for controlling an Internet of Things device may further include: a fifth sending module 161 and a fifth receiving module. 162. Display module 163.
  • the fifth sending module 161 is configured to send a group request message to the server, where the group request message carries the group ID of the group where the target IoT device is located, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID,
  • the server generates a function attribute operation instruction for controlling the target IoT device according to the group ID, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID;
  • the fifth receiving module 162 is configured to receive a group operation result returned by the server according to the group request message sent by the fifth sending module 161, where the group operation result is performed by the target Internet of Things device;
  • the display module 163 is configured to display a group operation result of the target IoT device executing the function attribute operation instruction received by the fifth receiving module 162.
  • FIG. 17 shows a junction of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 7 of the present invention.
  • the apparatus may further include:
  • a fifth determining module 164 configured to determine a packet where the target Internet of Things device is located and logical configuration description information about the packet;
  • the sixth sending module 165 is configured to send the logical configuration description information determined by the fifth determining module 164 to the server, so that the server generates a packet management table corresponding to the packet according to the logical configuration description information.
  • the apparatus may further include:
  • the sixth determining module 166 is configured to determine whether an abnormal result exists in the group operation result received by the fifth receiving module 162.
  • the parsing module 167 is configured to: if the sixth determining module 166 determines that there is an abnormal result in the group operation result, parse the device ID of the target Internet of Things, the device type corresponding to the device ID, and the device ID corresponding to the abnormality result from the group operation result. The name of the property.
  • the apparatus may further include:
  • a sixth receiving module 168 configured to receive, from a server, a status of a device function attribute of the change
  • the second update module 169 is configured to update the state of the corresponding target Internet of Things device according to the changed device function attribute status received by the sixth receiving module 168.
  • the above embodiment can be seen that by interacting with the Internet of Things device in units of packets, the user can send a group request message in one operation, so that the server can perform operation control on the IoT device in the group, thereby reducing user and object.
  • the number of interactions between networked devices increases the efficiency of interaction between users and IoT devices, improving the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Automation & Control Theory (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided are a method and apparatus for controlling an Internet of Things device, and a server and a mobile device. The method comprises: receiving a group request message from a mobile device, with the group request message carrying a group ID of a group in which a target Internet of Things device is located, a group attribute name corresponding to the group ID and a group attribute value corresponding to the group ID; querying a group management table according to the group ID, so as to determine, according to the group management table, a functional attribute, needing to be operated under a condition where the group attribute name corresponds to the group attribute value, of the target Internet of Things device corresponding to the group ID; generating, according to the target Internet of Things device and the functional attribute, needing to be operated, of the target Internet of Things device, a functional attribute operation instruction for controlling the target Internet of Things device; and sending the functional attribute operation instruction to the target Internet of Things device, so that the target Internet of Things device executes the functional attribute operation instruction. The technical solution of the present application can realize interaction with a target Internet of Things device in units of groups, thereby improving the efficiency of interaction between a user and an Internet of Things device.

Description

控制物联网设备的方法及装置、服务器、移动设备Method and device for controlling internet of things device, server, mobile device 技术领域Technical field
本申请涉及物联网技术领域,尤其涉及一种控制物联网设备的方法及装置、服务器、移动设备。The present application relates to the field of Internet of Things technologies, and in particular, to a method and device for controlling an Internet of Things device, a server, and a mobile device.
背景技术Background technique
为了实现向用户提供智能家居等物联网服务,需要向用户提供可以接入网络并可以由用户进行远程控制的物联网设备,物联网设备例如可以为带有联网功能的空调、冰箱、电灯等家居设备。在对物联网设备的管理过程中,现有技术通过云平台建立智能手机与物联网设备的映射关系,当用户需要开启家中的所有物联网设备时,用户需要通过智能手机依次选定物联网设备,依次向云平台发送开启选定的物联网设备的请求,导致用户与物联网设备间的交互过程的效率低下,造成用户使用十分不便。In order to provide users with IoT services such as smart homes, it is necessary to provide users with Internet of Things devices that can access the network and can be remotely controlled by users. The Internet of Things devices can be, for example, air conditioners with refrigerators, refrigerators, electric lights, etc. device. In the process of managing the Internet of Things device, the existing technology establishes a mapping relationship between the smart phone and the Internet of Things device through the cloud platform. When the user needs to open all the IoT devices in the home, the user needs to select the IoT device through the smart phone in turn. The request for opening the selected IoT device is sent to the cloud platform in turn, resulting in inefficient interaction between the user and the IoT device, which is inconvenient for the user to use.
发明内容Summary of the invention
本申请提供一种新的技术方案,可以有效提高用户与物联网设备之间的交互效率。The present application provides a new technical solution, which can effectively improve the interaction efficiency between the user and the Internet of Things device.
为实现上述目的,本申请提供技术方案如下:To achieve the above objective, the present application provides the following technical solutions:
根据本申请的第一方面,提出了一种控制物联网设备的方法,包括:According to a first aspect of the present application, a method of controlling an Internet of Things device is provided, comprising:
接收来自移动设备的组请求消息,所述组请求消息中携带有目标物联网设备所在的分组的组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值;Receiving a group request message from a mobile device, where the group request message carries a group ID of a packet in which the target Internet of Things device is located, a group attribute name corresponding to the group ID, and a group attribute value corresponding to the group ID;
根据所述组ID查询分组管理表,以根据所述分组管理表确定所述组ID对应的目标物联网设备在所述组属性名和所述组属性取值对应的条件下需要操作的功能属性;Querying, according to the group ID, a group management table, to determine, according to the group management table, a function attribute that needs to be operated under a condition that the target object network device corresponding to the group ID corresponds to the group attribute name and the group attribute value;
根据所述目标物联网设备和所述目标物联网设备需要操作的功能属性生 成用于控制所述目标物联网设备的功能属性操作指令;According to the functional property of the target Internet of Things device and the target Internet of Things device a function attribute operation instruction for controlling the target Internet of Things device;
向所述目标物联网设备发送所述功能属性操作指令,以供所述目标物联网设备执行所述功能属性操作指令。Transmitting the function attribute operation instruction to the target object network device for the target object network device to execute the function attribute operation instruction.
根据本申请的第二方面,提出了一种控制物联网设备的方法,包括:According to a second aspect of the present application, a method of controlling an Internet of Things device is provided, comprising:
向服务器发送组请求消息,所述组请求消息中携带有目标物联网设备所在的分组的组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值,以供所述服务器根据所述组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值生成用于控制所述目标物联网设备的功能属性操作指令;Sending a group request message to the server, where the group request message carries the group ID of the group where the target IoT device is located, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID, for the The server generates a function attribute operation instruction for controlling the target object network device according to the group ID, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID;
接收所述服务器根据所述组请求消息返回的组操作结果,所述组操作结果由所述目标物联网设备;Receiving a group operation result returned by the server according to the group request message, the group operation result being by the target Internet of Things device;
显示所述目标物联网设备执行所述功能属性操作指令的所述组操作结果。Displaying the group operation result of the target IoT device executing the function attribute operation instruction.
根据本申请的第三方面,提出了一种控制物联网设备的装置,包括:According to a third aspect of the present application, an apparatus for controlling an Internet of Things device is provided, comprising:
第一接收模块,用于接收来自移动设备的组请求消息,所述组请求消息中携带有目标物联网设备所在的分组的组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值;a first receiving module, configured to receive a group request message from a mobile device, where the group request message carries a group ID of a packet where the target Internet of Things device is located, a group attribute name corresponding to the group ID, and the group ID corresponding to the Group attribute value;
第一确定模块,用于根据所述第一接收模块接收到的所述组请求消息中的所述组ID查询分组管理表,以根据所述分组管理表确定所述组ID对应的目标物联网设备在所述第一接收模块接收到的所述组请求消息中的所述组属性名和所述第一接收模块接收到的所述组请求消息中的所述组属性取值对应的条件下需要操作的功能属性;a first determining module, configured to query a group management table according to the group ID in the group request message received by the first receiving module, to determine, according to the group management table, a target Internet of things corresponding to the group ID The device needs to be performed under the condition that the group attribute name in the group request message received by the first receiving module and the group attribute value in the group request message received by the first receiving module Functional attributes of the operation;
第一生成模块,用于根据所述目标物联网设备和所述第一确定模块确定的所述目标物联网设备需要操作的功能属性生成用于控制所述目标物联网设备的功能属性操作指令;a first generation module, configured to generate a function attribute operation instruction for controlling the target object network device according to a function attribute that the target object network device and the first object determining device determine that the target object network device needs to operate;
第一发送模块,用于向所述目标物联网设备发送所述第一生成模块生成的所述功能属性操作指令,以供所述目标物联网设备执行所述功能属性操作指令。And a first sending module, configured to send, to the target Internet of Things device, the function attribute operation instruction generated by the first generation module, for the target object network device to execute the function attribute operation instruction.
根据本申请的第四方面,提出了一种控制物联网设备的装置,包括:According to a fourth aspect of the present application, an apparatus for controlling an Internet of Things device is provided, including:
第五发送模块,用于向服务器发送组请求消息,所述组请求消息中携带 有目标物联网设备所在的分组的组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值,以供所述服务器根据所述组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值生成用于控制所述目标物联网设备的功能属性操作指令;a fifth sending module, configured to send a group request message to the server, where the group request message is carried a group ID of a group in which the target Internet of Things device is located, a group attribute name corresponding to the group ID, and a group attribute corresponding to the group ID, for the server to correspond to the group ID and the group ID. The group attribute name and the group attribute value corresponding to the group ID generate a function attribute operation instruction for controlling the target object network device;
第五接收模块,用于接收所述服务器根据所述第五发送模块发送的所述组请求消息返回的组操作结果,所述组操作结果由所述目标物联网设备;a fifth receiving module, configured to receive a group operation result returned by the server according to the group request message sent by the fifth sending module, where the group operation result is performed by the target Internet of Things device;
显示模块,用于显示所述第五接收模块接收到的所述目标物联网设备执行所述功能属性操作指令的组操作结果。And a display module, configured to display a group operation result that the target object network device received by the fifth receiving module executes the function attribute operation instruction.
根据本申请的第五方面,提出了一种服务器,所述服务器包括:According to a fifth aspect of the present application, a server is provided, the server comprising:
处理器;用于存储所述处理器可执行指令的存储器;网络接口;a processor; a memory for storing the processor executable instructions; a network interface;
其中,所述网络接口,用于接收来自移动设备的组请求消息,所述组请求消息中携带有目标物联网设备所在的分组的组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值;The network interface is configured to receive a group request message from a mobile device, where the group request message carries a group ID of a packet where the target Internet of Things device is located, a group attribute name corresponding to the group ID, and the group The group attribute corresponding to the ID takes a value;
所述处理器,用于根据所述组ID查询分组管理表,以根据所述分组管理表确定所述组ID对应的目标物联网设备在所述组属性名和所述组属性取值对应的条件下需要操作的功能属性;The processor is configured to query, according to the group ID, a packet management table, to determine, according to the group management table, a condition that the target object network device corresponding to the group ID corresponds to the group attribute name and the group attribute value The functional attributes that need to be operated;
根据所述目标物联网设备和所述目标物联网设备需要操作的功能属性生成用于控制所述目标物联网设备的功能属性操作指令;Generating a function attribute operation instruction for controlling the target object network device according to a function attribute of the target object network device and the target object network device to operate;
所述网络接口,还用于向所述目标物联网设备发送所述功能属性操作指令,以供所述目标物联网设备执行所述功能属性操作指令。The network interface is further configured to send the function attribute operation instruction to the target object network device, so that the target object network device executes the function attribute operation instruction.
根据本申请的第六方面,提出了一种移动设备,所述移动设备包括:According to a sixth aspect of the present application, a mobile device is provided, the mobile device comprising:
处理器;用于存储所述处理器可执行指令的存储器;网络接口以及显示屏;a processor; a memory for storing the processor executable instructions; a network interface and a display;
所述网络接口,用于向服务器发送组请求消息,所述组请求消息中携带有目标物联网设备所在的分组的组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值,以供所述服务器根据所述组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值生成用于控制所述目标物联网设备的功能属性操作指令;以及,接收所述服务器根据所述组请求消息返回的组操作结果,所述组操作结果由所述目标物联网设备; The network interface is configured to send a group request message to the server, where the group request message carries a group ID of a group where the target Internet of Things device is located, a group attribute name corresponding to the group ID, and a group corresponding to the group ID The attribute value is used by the server to generate a function attribute operation instruction for controlling the target object network device according to the group ID, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID. And receiving a result of the group operation returned by the server according to the group request message, the group operation result being by the target Internet of Things device;
所述显示屏,用于显示所述目标物联网设备执行所述功能属性操作指令的结果。The display screen is configured to display a result of the target Internet of Things device executing the function attribute operation instruction.
由以上技术方案可见,本申请可以使服务器根据目标物联网设备和目标物联网设备需要操作的功能属性生成用于控制目标物联网设备的功能属性操作指令,通过功能属性操作指令控制目标物联网设备,从而实现了以组为单位与目标物联网设备进行交互,提高了用户与物联网设备之间的交互效率,优化了用户与物联网设备之间的交互流程,为用户提供了更加智能化的物联网服务。It can be seen from the above technical solution that the application can enable the server to generate a function attribute operation instruction for controlling the target object network device according to the function attribute of the target object network device and the target object network device, and control the target object network device through the function attribute operation instruction. Thus, the interaction with the target IoT device is realized in groups, the interaction efficiency between the user and the IoT device is improved, the interaction process between the user and the IoT device is optimized, and the user is provided with more intelligent Internet of Things services.
附图说明DRAWINGS
图1A示出了根据本发明示例性实施例一的控制物联网设备的方法的流程示意图;1A is a flow chart showing a method of controlling an Internet of Things device according to an exemplary embodiment of the present invention;
图1B示出了图1A所示实施例所适用的场景图;FIG. 1B shows a scene view to which the embodiment shown in FIG. 1A is applied;
图2示出了根据本发明示例性实施例二的控制物联网设备的方法的流程示意图;2 is a flow chart showing a method of controlling an Internet of Things device according to an exemplary embodiment 2 of the present invention;
图3示出了根据本发明示例性实施例三的控制物联网设备的方法的流程示意图;FIG. 3 is a flow chart showing a method of controlling an Internet of Things device according to an exemplary embodiment 3 of the present invention; FIG.
图4示出了根据本发明示例性实施例四的控制物联网设备的方法的流程示意图;4 is a flow chart showing a method of controlling an Internet of Things device according to an exemplary embodiment 4 of the present invention;
图5示出了根据本发明示例性实施例五的控制物联网设备的方法的流程示意图;FIG. 5 is a flow chart showing a method of controlling an Internet of Things device according to an exemplary embodiment 5 of the present invention; FIG.
图6示出了根据本发明示例性实施例六的控制物联网设备的方法的流程示意图;6 is a flow chart showing a method of controlling an Internet of Things device according to an exemplary embodiment 6 of the present invention;
图7示出了根据本发明示例性实施例七的控制物联网设备的方法的流程示意图;7 is a flow chart showing a method of controlling an Internet of Things device according to an exemplary embodiment 7 of the present invention;
图8示出了根据本发明示例性实施例九的控制物联网设备的方法的信令图;FIG. 8 is a signaling diagram of a method of controlling an Internet of Things device according to an exemplary embodiment 9 of the present invention; FIG.
图9示出了根据本发明的一示例性实施例的服务器的结构示意图; FIG. 9 is a block diagram showing the structure of a server according to an exemplary embodiment of the present invention; FIG.
图10示出了根据本发明的一示例性实施例的移动设备的结构示意图;FIG. 10 is a block diagram showing the structure of a mobile device according to an exemplary embodiment of the present invention; FIG.
图11示出了根据本发明示例性实施例一的控制物联网设备的装置的结构示意图;FIG. 11 is a block diagram showing the structure of an apparatus for controlling an Internet of Things device according to an exemplary embodiment of the present invention; FIG.
图12示出了根据本发明示例性实施例二的控制物联网设备的装置的结构示意图;FIG. 12 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment of the present invention; FIG.
图13示出了根据本发明示例性实施例三的控制物联网设备的装置的结构示意图;FIG. 13 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 3 of the present invention; FIG.
图14示出了根据本发明示例性实施例四的控制物联网设备的装置的结构示意图;FIG. 14 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 4 of the present invention; FIG.
图15示出了根据本发明示例性实施例五的控制物联网设备的装置的结构示意图;15 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 5 of the present invention;
图16示出了根据本发明示例性实施例六的控制物联网设备的装置的结构示意图;16 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 6 of the present invention;
图17示出了根据本发明示例性实施例七的控制物联网设备的装置的结构示意图。FIG. 17 is a block diagram showing the structure of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 7 of the present invention.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with aspects of the present application as detailed in the appended claims.
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present application is for the purpose of describing particular embodiments, and is not intended to be limiting. The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种 信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this application to describe various Information, but this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information may also be referred to as the second information without departing from the scope of the present application. Similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "when" or "in response to a determination."
为对本申请进行进一步说明,提供下列实施例:In order to further illustrate this application, the following examples are provided:
图1A示出了根据本发明示例性实施例一的控制物联网设备的方法的流程示意图,图1B示出了图1A所示实施例所适用的场景图;本实施例可以应用在服务器上,如图1A所示,包括如下步骤:1A is a schematic flowchart of a method for controlling an Internet of Things device according to an exemplary embodiment of the present invention, and FIG. 1B is a view showing a scenario applicable to the embodiment shown in FIG. 1A; the embodiment can be applied to a server. As shown in FIG. 1A, the following steps are included:
步骤101,接收来自移动设备的组请求消息,组请求消息中携带有目标物联网设备所在的分组的组ID、组ID对应的组属性名以及组ID对应的组属性取值。Step 101: Receive a group request message from a mobile device, where the group request message carries a group ID of a packet in which the target Internet of Things device is located, a group attribute name corresponding to the group ID, and a group attribute value corresponding to the group ID.
在一实施例中,用户可以通过操作移动设备上的应用程序或者浏览器上的网页页面来生成组请求消息,从而可以使服务器在接收到组请求消息后,根据组请求消息中的组ID(组ID例如为ABC)来生成与组ID相对应的功能属性操作指令。在一实施例中,组ID表示对物联网设备的分组ID,用于标识一个分组,需要保证在服务器上的唯一性。在一实施例中,组属性名表示该分组对外提供的、供用户操作的功能,可根据组ID对应的分组所实现的功能来设置,例如,对于开关类的分组,组属性名可以包括“离家设置”、“进家设置”,对于空调类的分组,组属性名可以包括“用户最佳室温设置”。在一实施例中,组属性取值可以为分组的属性的取值范围,例如,对于开关类的分组,组属性取值可以包括“1”和“0”,对于空调类的分组,组属性取值可以为用户最合适的室温“27”摄氏度。In an embodiment, the user can generate a group request message by operating an application on the mobile device or a webpage page on the browser, so that the server can make the group ID in the group request message after receiving the group request message ( The group ID is, for example, ABC) to generate a function attribute operation instruction corresponding to the group ID. In an embodiment, the group ID represents the packet ID of the IoT device for identifying a packet, and the uniqueness on the server needs to be guaranteed. In an embodiment, the group attribute name indicates a function provided by the group for the user to operate, and may be set according to a function implemented by the group corresponding to the group ID. For example, for the grouping of the switch class, the group attribute name may include “ "Home setting", "Home setting", for the grouping of air conditioners, the group attribute name may include "user optimal room temperature setting". In an embodiment, the value of the group attribute may be a value range of the attribute of the group. For example, for the grouping of the switch class, the value of the group attribute may include “1” and “0”. For the grouping of the air conditioner class, the group attribute The value can be the most suitable room temperature "27" degrees Celsius for the user.
步骤102,根据组ID查询分组管理表,以根据分组管理表确定组ID对应的目标物联网设备在组属性名和组属性取值对应的条件下需要操作的功能属性。Step 102: Query the group management table according to the group ID to determine, according to the group management table, a function attribute that needs to be operated under the condition that the target object network device corresponding to the group ID corresponds to the group attribute name and the group attribute value.
在一实施例中,服务器可以为移动设备提供用户配置界面,用户通过该用户配置界面确定其需要控制的物联网设备的分组,以及每一个分组中所包含的成员设备,通过移动设备将每一分组所包含的分组设备以及该分组每一设备对应的逻辑配置描述信息发送至服务器,服务器根据每一分组中的分组设备以及各个分组设备对应的分组逻辑配置描述信息,对用户需要控制的物 联网设备进行分组管理,并生成各分组对应的分组管理表。In an embodiment, the server may provide a user configuration interface for the mobile device, by which the user determines the grouping of the Internet of Things device that needs to be controlled, and the member devices included in each group, each of which is The packet device included in the packet and the logical configuration description information corresponding to each device of the packet are sent to the server, and the server configures the description information according to the packet device in each packet and the packet logical configuration corresponding to each packet device, and the object that needs to be controlled by the user The networked device performs group management and generates a packet management table corresponding to each packet.
例如,用户离家、用户进家对应的分组操作管理表如表1所示,用户最佳室温设置对应的分组管理表如表2所示。For example, the group operation management table corresponding to the user leaving the home and the user entering the home is as shown in Table 1, and the group management table corresponding to the user's optimal room temperature setting is as shown in Table 2.
表1Table 1
Figure PCTCN2017071551-appb-000001
Figure PCTCN2017071551-appb-000001
表2Table 2
Figure PCTCN2017071551-appb-000002
Figure PCTCN2017071551-appb-000002
如上述表1和表2所示,用户通过用户配置界面确定其需要控制的物联网设备的分组包括ABC1、ABC2、ABC3,其中,ABC1分组中所包含的成员设备包括空调、加湿器、热水器、门控检测器,ABC2分组中所包含的成员设备包括空调、加湿器、门控检测器,ABC3分组中所包含的成员设备包括两部空调,可通过0xfe31和0xfe32两个设备ID来区分。在一实施例中,逻辑配置描述信息可以包括上述表1和表2中的组属性取值、描述、设备ID、设备属性名、设备属性取值等信息,表1和表2中的组ID、组属性名、设备ID、设备类型、设备属性名用来表示物联网设备所在的分组以及分组对应的功能等。As shown in Table 1 and Table 2 above, the user determines that the grouping of the Internet of Things devices that need to be controlled by the user configuration interface includes ABC1, ABC2, and ABC3, wherein the member devices included in the ABC1 packet include an air conditioner, a humidifier, and a water heater. The gate detector includes a member device included in the ABC2 packet including an air conditioner, a humidifier, and a gate detector. The member devices included in the ABC3 packet include two air conditioners, which can be distinguished by two device IDs: 0xfe31 and 0xfe32. In an embodiment, the logical configuration description information may include information such as group attribute values, descriptions, device IDs, device attribute names, and device attribute values in Tables 1 and 2, and group IDs in Table 1 and Table 2. The group attribute name, device ID, device type, and device attribute name are used to indicate the group where the IoT device is located and the function corresponding to the group.
步骤103,根据目标物联网设备和目标物联网设备需要操作的功能属性生成用于控制目标物联网设备的功能属性操作指令。Step 103: Generate a function attribute operation instruction for controlling the target object network device according to the function attribute that the target object network device and the target object network device need to operate.
在一实施例中,目标物联网设备可以为一个,也可以为两个以上,本申请对目标物联网设备的数量不做限制。在一实施例中,功能属性表示物联网设备可以对外提供的、供用户操作的功能,例如,智能空调的开关功能属性表示控制空调开启或关闭的功能,温度查询功能属性表示查询当前室内温度的功能,温度设定功能属性表示设定空调温度值的功能,等等。在一实施例中,物联网设备可将自身的所有功能属性注册到服务器,从而可以使服务器能够对物联网设备进行统一管理,例如,上述表1和表2中所示的空调0xfe31可以将开关的功能属性和温度的功能属性注册到服务器,可以使服务器对空调0xfe31的功能属性进行统一管理。In an embodiment, the target Internet of Things devices may be one or more than two. The number of target Internet of Things devices is not limited in this application. In an embodiment, the function attribute indicates a function that the IoT device can provide for the user to operate. For example, the switch function attribute of the smart air conditioner indicates that the air conditioner is turned on or off, and the temperature query function attribute indicates that the current room temperature is queried. Function, temperature setting function attribute indicates the function of setting the air temperature value, and so on. In an embodiment, the Internet of Things device can register all of its own functional attributes to the server, thereby enabling the server to uniformly manage the Internet of Things devices. For example, the air conditioner 0xfe31 shown in Tables 1 and 2 above can be switched. The functional attributes and temperature function attributes are registered to the server, which enables the server to uniformly manage the function attributes of the air conditioner 0xfe31.
步骤104,向目标物联网设备发送功能属性操作指令,以供目标物联网设备执行功能属性操作指令。Step 104: Send a function attribute operation instruction to the target object network device, so that the target object network device executes the function attribute operation instruction.
作为一个示例性场景,空调131、加湿器132、门控检测器133位于表1所示的组ID为ABC2的分组中,对应的组属性名为“进家设置”,组属性取值为“1”,当服务器12通过执行上述步骤101-步骤104之后,空调131、加湿器132、门控检测器133可以根据功能属性操作指令对指定的功能属性值进行设置或查询,例如,空调131通过查询,将开关设置为“1”,温度设置为“25”,加湿器132将开关设置为“1”,门控检测器将开关设置为“0”,从而实现对组ID为“ABC2”的分组中的物联网设备进行控制。 As an exemplary scenario, the air conditioner 131, the humidifier 132, and the gate detector 133 are located in the group ID ABC2 group shown in Table 1, and the corresponding group attribute name is "home setting", and the group attribute value is " 1", after the server 12 performs the above steps 101-step 104, the air conditioner 131, the humidifier 132, and the gating detector 133 can set or query the specified function attribute value according to the function attribute operation instruction, for example, the air conditioner 131 passes For the query, set the switch to "1", the temperature is set to "25", the humidifier 132 sets the switch to "1", and the gate detector sets the switch to "0", thereby realizing the group ID "ABC2". IoT devices in the group are controlled.
由上述描述可知,本发明实施例通过上述步骤101-步骤104,可以使服务器根据目标物联网设备和目标物联网设备需要操作的功能属性生成用于控制目标物联网设备的功能属性操作指令,通过功能属性操作指令控制目标物联网设备,实现了以组为单位与目标物联网设备进行交互,提高了用户与物联网设备之间的交互效率,优化了用户与物联网设备之间的交互流程,为用户提供了更加智能化的物联网服务。It can be seen from the foregoing description that, by using the foregoing steps 101-104, the server can enable the server to generate a function attribute operation instruction for controlling the target object network device according to the function attribute of the target object network device and the target object network device. The function attribute operation instruction controls the target IoT device, realizes interaction with the target IoT device in groups, improves the interaction efficiency between the user and the IoT device, and optimizes the interaction process between the user and the IoT device. Provide users with more intelligent IoT services.
图2示出了根据本发明示例性实施例二的控制物联网设备的方法的流程示意图;本实施例以目标物联网设备执行功能属性操作指令后,服务器如何将指令执行结果转发给移动设备为例并结合图1B进行示例性说明,如图2所示,包括如下步骤:2 is a schematic flowchart of a method for controlling an Internet of Things device according to an exemplary embodiment 2 of the present invention. After the target IoT device executes a function attribute operation instruction, how does the server forward the instruction execution result to the mobile device? An example is illustrated in conjunction with FIG. 1B. As shown in FIG. 2, the following steps are included:
步骤201,接收目标物联网设备执行功能属性操作指令后返回的指令执行结果。Step 201: Receive an instruction execution result returned by the target IoT device after executing the function attribute operation instruction.
在一实施例中,移动设备与服务器之间可以通过使用HTTP来进行数据传输,指令执行结果可以为HTTP回复消息,本申请对指令执行结果的具体表现形式不做限制,只要服务器能够通过与移动设备之间的通信协议接收到指令执行结果即可。在一实施例中,指令执行结果既可以为执行成功,也可以为执行异常。In an embodiment, the data transmission may be performed between the mobile device and the server by using HTTP. The execution result of the instruction may be an HTTP reply message. The specific expression of the execution result of the instruction is not limited, as long as the server can pass and move. The communication protocol between the devices can receive the result of the instruction execution. In an embodiment, the instruction execution result may be either an execution success or an execution exception.
步骤202,确定指令执行结果的数量,并确定指令执行结果的数量是否为两个以上,如果指令执行结果的数量为两个以上,执行步骤203,如果指令执行结果的数量为一个,可将指令执行结果直接转发给移动设备。Step 202: Determine the number of execution results of the instruction, and determine whether the number of execution results of the instruction is two or more. If the number of execution results of the instruction is two or more, step 203 is performed, and if the number of execution results of the instruction is one, the instruction may be executed. The execution results are forwarded directly to the mobile device.
在一实施例中,由于同一个分组中会包含两个以上的目标物联网设备,因此两个以上的目标物联网设备会对应两个以上的指令执行结果。In an embodiment, since more than two target IoT devices are included in the same packet, more than two target IoT devices may perform more than two instruction execution results.
步骤203,如果指令执行结果的数量为两个以上,确定两条以上的指令执行结果中是否存在异常结果,如果两条以上的指令执行结果中存在异常结果,执行步骤204,如果两条以上的指令执行结果中均不存在异常结果,可直接将两条以上的操作指令进行聚合,得到组操作结果。Step 203: If the number of execution results of the instruction is two or more, it is determined whether there is an abnormal result in the execution result of the two or more instructions. If there is an abnormal result in the execution result of the two or more instructions, step 204 is performed, if two or more There is no abnormal result in the execution result of the instruction, and two or more operation instructions can be directly aggregated to obtain the result of the group operation.
在一实施例中,服务器接收到两条以上的指令执行结果后,如果两条以上的指令执行结果中均不存在异常结果,服务器对两条以上的HTTP回复消息聚合成一条新的HTTP回复消息,该新的HTTP回复消息中的负荷(payload) 内容为“Succeed”。In an embodiment, after the server receives more than two instruction execution results, if there is no abnormal result in the execution results of more than two instructions, the server aggregates two or more HTTP reply messages into a new HTTP reply message. , the payload in the new HTTP reply message (payload) The content is "Succeed".
步骤204,如果两条以上的指令执行结果中存在异常结果,从分组管理表中确定异常结果对应的设备ID、设备ID对应的设备类型、设备ID对应的设备属性名。Step 204: If there is an abnormal result in the execution result of the two or more instructions, the device ID corresponding to the abnormal result, the device type corresponding to the device ID, and the device attribute name corresponding to the device ID are determined from the packet management table.
步骤205,对两条以上的指令执行结果进行聚合,并将设备ID、设备类型、设备属性名、设备ID对应的错误信息添加到聚合得到的组操作结果中。Step 205: Aggregate the execution results of the two or more instructions, and add the error information corresponding to the device ID, the device type, the device attribute name, and the device ID to the group operation result obtained by the aggregation.
在一实施例中,如果设备类型为智能空调,错误信息例如为智能空调处于关闭状态、请求命令格式有误、智能空调设置的温度值超出范围,等等,本申请对错误信息的具体内容不做限制。设备ID、设备类型、设备属性名、设备ID的相关描述可以参见上述实施例,在此不再详述。In an embodiment, if the device type is a smart air conditioner, the error information is, for example, the smart air conditioner is in a closed state, the request command format is incorrect, the temperature value set by the smart air conditioner is out of range, and the like, and the specific content of the error information is not in the present application. Make restrictions. For a description of the device ID, the device type, the device attribute name, and the device ID, refer to the foregoing embodiment, and details are not described herein.
步骤206,将组操作结果返回给移动设备,以供移动设备向用户显示目标物联网设备执行功能属性操作指令的组操作结果。Step 206: Return the group operation result to the mobile device, so that the mobile device displays to the user the group operation result of the target IoT device performing the function attribute operation instruction.
如图1B所示,以移动设备11与服务器12之间通过使用HTTP来进行数据传输为例进行示例性说明,智能空调131(设备ID为0xfe31)、智能加湿器132(设备ID为0xfe33)、门控检测器133(设备ID为0xfe45)在执行功能属性操作指令后,通过HTTP回复消息的形式向服务器12返回指令执行结果,服务器12可以接收到三条HTTP回复消息,服务器12依次分析每条HTTP回复消息中的负荷(payload),如果该三条HTTP回复消息中的负荷均表示执行成功“Succeed”,则服务器12将该三条HTTP回复消息聚合成为一条新的HTTP回复消息,该新的HTTP回复消息中的负荷(payload)内容为“Succeed”,并返回给移动设备11。如果服务器12检测到智能空调131回复的HTTP回复消息中的负荷(payload)内容为出现错误或异常“Exception:XXX”,则服务器12将该三条HTTP回复消息聚合成为一条新的HTTP回复消息,该新的HTTP回复消息中的负荷(payload)内容为“Device ID 0xfe31:Exception:XXX;Device ID 0xfe33:Exception:XXX;Device ID 0xfe45:Succeed”,并将该条新的HTTP回复消息返回给移动设备11,移动设备11显示目标物联网设备执行功能属性操作指令的组操作结果,从而可以使用户能够清楚的智能空调131、智能加湿器132、门控检测器133各自在执行功能属性操作指令后的状态。As shown in FIG. 1B, the data transmission between the mobile device 11 and the server 12 by using HTTP is exemplified as an example, the smart air conditioner 131 (device ID is 0xfe31), the intelligent humidifier 132 (device ID is 0xfe33), The gate detector 133 (device ID is 0xfe45) returns the instruction execution result to the server 12 in the form of an HTTP reply message after executing the function attribute operation instruction, the server 12 can receive three HTTP reply messages, and the server 12 analyzes each HTTP in turn. Replying to the payload in the message. If the load in the three HTTP reply messages indicates that the execution succeeds "Succeed", the server 12 aggregates the three HTTP reply messages into a new HTTP reply message, the new HTTP reply message. The content of the payload is "Succeed" and is returned to the mobile device 11. If the server 12 detects that the payload content in the HTTP reply message replied by the smart air conditioner 131 is an error or an exception "Exception: XXX", the server 12 aggregates the three HTTP reply messages into a new HTTP reply message. The payload content of the new HTTP reply message is "Device ID 0xfe31: Exception: XXX; Device ID 0xfe33: Exception: XXX; Device ID 0xfe45: Succeed", and the new HTTP reply message is returned to the mobile device. 11. The mobile device 11 displays the result of the group operation of the target IoT device executing the function attribute operation instruction, so that the smart air conditioner 131, the intelligent humidifier 132, and the door detector 133 can be made clear by the user after executing the function attribute operation instruction. status.
本实施例中,通过将指令执行结果进行聚合,将组操作结果转发给移动 设备,可以大大提高移动设备与两个以上的物联网设备之间的交互效率。In this embodiment, the group operation result is forwarded to the mobile by aggregating the instruction execution result. Devices can greatly improve the efficiency of interaction between mobile devices and more than two IoT devices.
图3示出了根据本发明示例性实施例三的控制物联网设备的方法的流程示意图;本实施例以物联网设备向服务器注册功能属性为例并结合图1B进行示例性说明,如图3所示,包括如下步骤:FIG. 3 is a schematic flowchart diagram of a method for controlling an Internet of Things device according to an exemplary embodiment 3 of the present invention; this embodiment takes an example of registering a function attribute of an IoT device to a server and exemplarily illustrated in FIG. 1B, as shown in FIG. 3 . As shown, the following steps are included:
步骤301,接收来自物联网设备发送的用于注册的设备功能属性描述信息。Step 301: Receive device function attribute description information sent by the IoT device for registration.
步骤302,根据设备功能描述信息生成物联网设备对应的设备ID及注册结果,将设备功能描述信息存储至数据库。Step 302: Generate a device ID and a registration result corresponding to the Internet of Things device according to the device function description information, and store the device function description information into the database.
步骤303,将注册结果返回给物联网设备,注册结果中包含有设备ID。In step 303, the registration result is returned to the Internet of Things device, and the registration result includes the device ID.
在一实施例中,物联网设备的设备功能属性描述信息的格式如表3所示。In an embodiment, the format of the device function attribute description information of the Internet of Things device is as shown in Table 3.
表3table 3
Figure PCTCN2017071551-appb-000003
Figure PCTCN2017071551-appb-000003
在上述表4中,物联网设备的功能属性的各个字段描述如下:In Table 4 above, the various fields of the functional attributes of the IoT device are described as follows:
·地址:设备地址,用于服务器寻址物联网设备,上述表3以IP地址为例进行示例性说明。Address: Device address, used for server addressing IoT devices. Table 3 above takes an IP address as an example for illustration.
·名称:物联网设备的名称,可以由用户自定义设置。· Name: The name of the IoT device, which can be customized by the user.
·类型:物联网设备的类型,可以根据物联网设备的功能分类表示物联网设备的类型。Type: The type of IoT device that can represent the type of IoT device based on the functional classification of IoT devices.
·属性名:物联网设备的功能属性名,一个功能属性表示物联网设备可以对外提供的、供用户操作的功能,例如,智能空调的开关功能属性表示控制智能空调开启或关闭的功能,智能空调的温度设定功能属性代表设定空调温度值的功能,等等。如果物联网设备的功能属性名有多个,可以向服务器全部注册。 Attribute name: The name of the function attribute of the IoT device. A function attribute indicates the function that the IoT device can provide for the user to operate. For example, the switch function attribute of the smart air conditioner indicates the function of controlling the opening or closing of the smart air conditioner. The temperature setting function attribute represents the function of setting the air temperature value, and so on. If there are multiple functional attribute names for IoT devices, you can register them all with the server.
·属性取值:物联网设备的功能属性的取值范围,例如,开关属性,属性取值为0或1。Attribute value: The value range of the function attribute of the IoT device. For example, the switch attribute has a value of 0 or 1.
·属性取值名称:与上述属性取值对应,表示物联网设备功能的取值的意义,例如,开关属性,当属性取值为1时,表示打开操作。Attribute value name: Corresponds to the value of the above attribute, indicating the meaning of the value of the IoT device function. For example, the switch attribute, when the attribute value is 1, indicates the open operation.
·描述:对于功能属性取值的具体描述,供显示给用户。· Description: A detailed description of the value of the function attribute for display to the user.
本申请中的设备功能属性描述信息可以采用的方式包括但不限于以下:json、xml,可根据具体情况而定,本申请对具体实现方式不做限制。The manner in which the device function attribute description information in the present application can be used includes, but is not limited to, the following: json, xml, which may be determined according to specific circumstances, and the present application does not limit the specific implementation manner.
本实施例中,通过在注册结果中包含有设备ID并将物联网设备的功能属性信息可以同步至服务器,可以确保后续物联网设备发往服务器的组请求消息中均携带设备ID,方便服务器基于设备功能属性对物联网设备进行分组管理,实现用户以组为单位与物联网设备进行交互。In this embodiment, by including the device ID in the registration result and synchronizing the function attribute information of the IoT device to the server, it can be ensured that the device ID is carried in the group request message sent by the IoT device to the server, so that the server is based on Device function attributes Group management of IoT devices, enabling users to interact with IoT devices in groups.
图4示出了根据本发明示例性实施例四的控制物联网设备的方法的流程示意图;本实施例以如何实现物联网设备的分组管理为例并结合图1B进行示例性说明,如图4所示,包括如下步骤:FIG. 4 is a schematic flowchart diagram of a method for controlling an Internet of Things device according to an exemplary embodiment 4 of the present invention; this embodiment takes an example of how to implement group management of an Internet of Things device and is exemplified in FIG. 1B, as shown in FIG. 4 . As shown, the following steps are included:
步骤401,接收来自移动设备的分组设备及关于分组设备的逻辑配置描述信息。Step 401: Receive a packet device from the mobile device and logical configuration description information about the packet device.
在一实施例中,服务器可以为移动设备提供一个用户配置界面,该用户配置界面可以为应用程序的用户界面,也可以为网页界面。通过该用户配置界面,可以使用户根据其对物联网设备的需求以及物联网设备的功能属性,对物联网设备进行分组管理以及提供物联网设备对应的分组操作逻辑,并通过移动设备将分组设备及关于分组设备的逻辑配置描述信息发送给服务器。In an embodiment, the server may provide a user configuration interface for the mobile device, and the user configuration interface may be a user interface of the application or a web interface. Through the user configuration interface, the user can perform group management on the IoT device according to the requirements of the IoT device and the functional attributes of the IoT device, and provide grouping operation logic corresponding to the IoT device, and group the device through the mobile device. And the logical configuration description information about the packet device is sent to the server.
步骤402,根据逻辑配置描述信息生成分组设备对应的分组管理表。Step 402: Generate a group management table corresponding to the grouping device according to the logical configuration description information.
在一实施例中,服务器可以根据用户的配置输入,对物联网设备进行分组管理,生成分组管理表,分组管理表如表4所示。 In an embodiment, the server may perform group management on the IoT device according to the configuration input of the user, and generate a group management table, as shown in Table 4.
表4Table 4
Figure PCTCN2017071551-appb-000004
Figure PCTCN2017071551-appb-000004
上述表4中的分组管理表的各个字段的解释如下:The explanation of each field of the group management table in Table 4 above is as follows:
·组ID:分组ID,用于标识分组,需要确保在服务器上的唯一性。Group ID: The group ID, which is used to identify the group, and needs to be unique on the server.
·组属性名:分组属性名,一个组属性表示该分组可以对外提供的、供用户操作的功能。· Group attribute name: group attribute name, a group attribute indicates the function that the group can provide externally for the user to operate.
·组属性取值:组属性的取值范围。· Group attribute value: The range of values of the group attribute.
·描述:对于组属性取值的具体描述,描述该组属性取值代表的含义。· Description: For the specific description of the value of the group attribute, describe the meaning of the value represented by the group attribute.
·设备ID:与组属性取值对应的设备标识,表示针对组属性取值需要进行操作的设备。设备ID需要确保在服务器上的唯一性。设备ID的长度可根据实际实现来确定。· Device ID: The device ID corresponding to the value of the group attribute, indicating the device that needs to be operated for the value of the group attribute. The device ID needs to be unique on the server. The length of the device ID can be determined based on actual implementation.
·设备类型:按照设备功能分类标识设备的类型。• Device Type: The type of device is identified by device function classification.
·设备属性名:设备功能属性名,表示针对任意一个组属性取值,需要进行操作的设备功能属性。• Device attribute name: The device function attribute name indicates the device function attribute that needs to be operated for any group attribute value.
·设备属性取值:表示针对任意一个组属性取值,需要进行操作的设备功能属性的取值参数。· Device attribute value: indicates the value parameter of the device function attribute that needs to be operated for any group attribute.
步骤403,将对物联网设备的分组配置结果返回给移动设备。Step 403: Return the result of the grouping configuration of the Internet of Things device to the mobile device.
本实施例中,根据逻辑配置描述信息生成分组设备对应的分组管理表,可实现基于分组管理表对物联网设备进行分组管理;此外,通过服务器上维护的分组管理表,可以使用户根据其需求通过移动设备设置分组管理和控制逻辑,从而方便用户通过服务器定制物联网服务。 In this embodiment, the group management table corresponding to the grouping device is generated according to the logical configuration description information, and the group management of the object network device based on the group management table can be implemented. In addition, the group management table maintained on the server can enable the user according to the requirement. Set up group management and control logic through mobile devices to make it easy for users to customize IoT services through the server.
图5示出了根据本发明示例性实施例五的控制物联网设备的方法的流程示意图;本实施例以如何同步物联网设备的状态为例进行示例性说明,如图5所示,包括如下步骤:FIG. 5 is a schematic flowchart diagram of a method for controlling an Internet of Things device according to an exemplary embodiment 5 of the present invention; this embodiment is exemplified by how to synchronize the state of the Internet of Things device, as shown in FIG. 5, including the following step:
步骤501,确定物联网设备的设备功能属性状态中发生变化的设备功能属性状态。Step 501: Determine a device function attribute status that changes in a device function attribute state of the Internet of Things device.
步骤502,根据发生变化的设备功能属性更新物联网设备对应的分组管理表。Step 502: Update the group management table corresponding to the Internet of Things device according to the changed device function attribute.
步骤503,将发生变化的设备功能属性状态同步给移动设备。Step 503: Synchronize the changed device function attribute status to the mobile device.
例如,在上述图1A实施例中的表2所示的用户最佳室温设置的分组管理表中,当设备ID为0xfe32的空调的开关状态变更为关闭状态后,设备ID为0xfe32的空调处于关闭状态的信息会被同步更新至服务器12。由此,服务器将设备ID为0xfe32的空调的相关信息从表2中删除,表2所示的分组管理表更新后的分组管理表如下述表5。For example, in the group management table of the user optimal room temperature setting shown in Table 2 in the above-described embodiment of FIG. 1A, when the switch state of the air conditioner having the device ID of 0xfe32 is changed to the off state, the air conditioner having the device ID of 0xfe32 is turned off. The status information is updated to the server 12 in synchronization. Thereby, the server deletes the information on the air conditioner whose device ID is 0xfe32 from Table 2, and the packet management table after the group management table update shown in Table 2 is as shown in Table 5 below.
表5table 5
Figure PCTCN2017071551-appb-000005
Figure PCTCN2017071551-appb-000005
本实施例中,根据发生变化的设备功能属性更新物联网设备对应的分组管理表,可以对物联网设备进行更加智能、精确的分组管理,提高用户使用物联网服务的体验。In this embodiment, the group management table corresponding to the Internet of Things device is updated according to the changed device function attribute, so that the IoT device can be more intelligent and accurate group management, and the user experience of using the Internet of Things service is improved.
图6示出了根据本发明示例性实施例七的控制物联网设备的方法的流程 示意图;本实施例可以应用在移动设备上,如图6所示,包括如下步骤:FIG. 6 shows a flow of a method of controlling an Internet of Things device according to an exemplary embodiment 7 of the present invention. The embodiment can be applied to a mobile device, as shown in FIG. 6, and includes the following steps:
步骤601,向服务器发送组请求消息,组请求消息中携带有目标物联网设备所在的分组的组ID、组ID对应的组属性名以及组ID对应的组属性取值,以供服务器根据组ID、组ID对应的组属性名以及组ID对应的组属性取值生成用于控制目标物联网设备的功能属性操作指令。Step 601: Send a group request message to the server, where the group request message carries the group ID of the group where the target IoT device is located, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID, so that the server can use the group ID according to the group ID. The group attribute name corresponding to the group ID and the group attribute value corresponding to the group ID generate a function attribute operation instruction for controlling the target object network device.
在一实施例中,可以通过移动设备上的应用程序或者浏览器上的网页页面来生成组请求消息,从而可以使服务器在接收到组请求消息后,根据组请求消息中的组ID(组ID例如为ABC)来生成与组ID相对应的功能属性操作指令。In an embodiment, the group request message may be generated by an application on the mobile device or a webpage page on the browser, so that the server may, after receiving the group request message, according to the group ID (group ID) in the group request message. For example, ABC) to generate a function attribute operation instruction corresponding to the group ID.
步骤602,接收服务器根据组请求消息返回的组操作结果,组操作结果由目标物联网设备。Step 602: The group operation result returned by the server according to the group request message, and the group operation result is performed by the target Internet of Things device.
步骤603,显示目标物联网设备执行功能属性操作指令的组操作结果。Step 603: Display a group operation result of the target IoT device executing the function attribute operation instruction.
本实施例的场景描述可以参见上述图1A所示实施例中关于图1B的描述,在此不再详述。For the description of the scenario in this embodiment, refer to the description of FIG. 1B in the embodiment shown in FIG. 1A, which is not described in detail herein.
由上述描述可知,本发明实施例通过上述步骤601-步骤603,可以用户通过移动设备实现以组为单位与目标物联网设备进行交互,提高了移动设备与物联网设备之间的交互效率,优化了移动设备与物联网设备之间的交互流程,为用户提供了更加智能化的物联网服务。It can be seen from the foregoing description that, in the foregoing steps 601 to 603, the user can interact with the target Internet of Things device in groups by using the mobile device, thereby improving the interaction efficiency between the mobile device and the Internet of Things device, and optimizing. The interaction process between mobile devices and IoT devices provides users with more intelligent IoT services.
图7示出了根据本发明示例性实施例八的控制物联网设备的方法的流程示意图;本实施例以如何确定目标物联网设备的逻辑配置描述信息以及如何同步目标物联网的状态为例并结合图1B进行示例性说明,如图7所示,包括如下步骤:FIG. 7 is a schematic flowchart diagram of a method for controlling an Internet of Things device according to an exemplary embodiment 8 of the present invention; this embodiment takes an example of how to determine logical configuration description information of a target Internet of Things device and how to synchronize the state of the target Internet of Things. An exemplary illustration is made in conjunction with FIG. 1B, as shown in FIG. 7, including the following steps:
步骤701,确定目标物联网设备所在的分组及关于分组的逻辑配置描述信息。Step 701: Determine a packet where the target Internet of Things device is located and logical configuration description information about the packet.
步骤702,将逻辑配置描述信息发送给服务器,以供服务器根据逻辑配置描述信息生成分组对应的分组管理表。Step 702: Send logical configuration description information to the server, so that the server generates a packet management table corresponding to the packet according to the logical configuration description information.
步骤701和步骤702的描述可以参见上述图4所示实施例的相关描述,在此不再详述。For the description of the steps 701 and 702, reference may be made to the related description of the embodiment shown in FIG. 4 above, and details are not described herein again.
步骤703,向服务器发送组请求消息,组请求消息中携带有目标物联网 设备所在的分组的组ID、组ID对应的组属性名以及组ID对应的组属性取值,以供服务器根据组ID、组ID对应的组属性名以及组ID对应的组属性取值生成用于控制目标物联网设备的功能属性操作指令。 Step 703, sending a group request message to the server, where the group request message carries the target Internet of Things The group ID of the group in which the device is located, the group attribute name corresponding to the group ID, and the group attribute corresponding to the group ID are used for the server to generate values based on the group ID, the group attribute name corresponding to the group ID, and the group attribute corresponding to the group ID. The function attribute operation instruction for controlling the target IoT device.
步骤704,接收服务器根据组请求消息返回的组操作结果,组操作结果由目标物联网设备。Step 704: The group operation result returned by the server according to the group request message, and the group operation result is performed by the target Internet of Things device.
步骤705,显示目标物联网设备执行功能属性操作指令的组操作结果。Step 705: Display a group operation result of the target IoT device executing the function attribute operation instruction.
步骤703-步骤705的相关描述可以参见上述图6所示实施例的描述,在此不再详述。For a description of the steps 703 to 705, reference may be made to the description of the embodiment shown in FIG. 6 above, and details are not described herein again.
步骤706,确定组操作结果中是否存在异常结果。Step 706: Determine whether there is an abnormal result in the group operation result.
步骤707,如果组操作结果中存在异常结果,从组操作结果中解析出现异常结果的目标物联网的设备ID、设备ID对应的设备类型、设备ID对应的设备属性名。Step 707: If there is an abnormal result in the group operation result, the device ID of the target Internet of Things, the device type corresponding to the device ID, and the device attribute name corresponding to the device ID of the abnormal result are parsed from the group operation result.
在步骤706和步骤707中,例如,服务器12将该三条HTTP回复消息聚合成为一条新的HTTP回复消息,该新的HTTP回复消息中的负荷(payload)内容为“Device ID 0xfe31:Exception:XXX;Device ID 0xfe33:Exception:XXX;Device ID 0xfe45:Succeed”,并将该条新的HTTP回复消息返回给移动设备11,移动设备11在接收到该条新的HTTP回复消息后,通过解析该条新的HTTP回复消息中的设备ID以及“Exception”,从而可以识别出出现异常结果的物联网设备。In step 706 and step 707, for example, the server 12 aggregates the three HTTP reply messages into a new HTTP reply message, and the payload content in the new HTTP reply message is "Device ID 0xfe31: Exception: XXX; Device ID 0xfe33: Exception: XXX; Device ID 0xfe45: Succeed", and returns the new HTTP reply message to the mobile device 11, after the mobile device 11 receives the new HTTP reply message, by parsing the new The device ID in the HTTP reply message and "Exception", so that IoT devices with abnormal results can be identified.
本实施例中,通过生成逻辑配置描述信息,从而可以使服务器根据逻辑配置描述信息生成分组设备对应的分组管理表,实现基于分组管理表对物联网设备进行分组管理;此外,通过服务器上维护的分组管理表,可以使用户根据其需求通过移动设备设置分组管理和控制逻辑,从而方便用户通过服务器定制物联网服务。In this embodiment, by generating logical configuration description information, the server may be configured to generate a group management table corresponding to the grouping device according to the logical configuration description information, to implement group management of the object network device based on the group management table; and further, The group management table allows the user to set the group management and control logic through the mobile device according to their needs, thereby facilitating the user to customize the Internet of Things service through the server.
在上述图6或图7所示实施例的基础上,方法还可包括:Based on the foregoing embodiment shown in FIG. 6 or FIG. 7, the method may further include:
接收来自服务器的关于发生变化的设备功能属性状态;Receiving a status of a device function attribute from the server regarding the change;
根据发生变化的设备功能属性状态更新对应的目标物联网设备的状态。Updates the status of the corresponding target IoT device based on the changed device function attribute status.
根据发生变化的设备功能属性更新物联网设备对应的分组管理表,可以对物联网设备进行更加智能、精确的分组管理,提高用户使用物联网服务的 体验。Update the group management table corresponding to the IoT device according to the changed device function attribute, which can perform more intelligent and accurate group management on the IoT device and improve the user's use of the Internet of Things service. Experience.
图8示出了根据本发明示例性实施例六的控制物联网设备的方法的信令图;本实施例中的目标物联网设备1、目标物联网设备2、…、目标物联网设备N均已经通过上述图3所示实施例在服务器上注册成功,移动设备已通过上述图4所示实施例实现分组管理,其中,N为正整数,表示目标物联网设备的数量,如图8所示,包括如下步骤:8 is a signaling diagram of a method of controlling an Internet of Things device according to an exemplary embodiment 6 of the present invention; a target Internet of Things device 1, a target Internet of Things device 2, ..., a target Internet of Things device N in this embodiment are both It has been successfully registered on the server by the embodiment shown in FIG. 3 above, and the mobile device has implemented group management by the embodiment shown in FIG. 4 above, where N is a positive integer, indicating the number of target Internet of Things devices, as shown in FIG. , including the following steps:
步骤801,移动设备向服务器发送组请求消息,组请求消息中携带有分组的组ID、组属性名、组属性取值。Step 801: The mobile device sends a group request message to the server, where the group request message carries the group ID, the group attribute name, and the group attribute value of the group.
步骤802,服务器接收到组请求消息后,从组请求消息中解析出组ID、组属性名、组属性取值。Step 802: After receiving the group request message, the server parses the group ID, the group attribute name, and the group attribute value from the group request message.
步骤803,根据组ID、组属性名、组属性取值查询分组管理表,确定目标物联网设备及需要目标物联网设备的功能属性,创建与物联网设备相对应的功能属性操作指令。Step 803: Query the group management table according to the group ID, the group attribute name, and the group attribute value, determine the target Internet of Things device and the function attribute of the target object network device, and create a function attribute operation instruction corresponding to the object network device.
步骤804,将功能属性操作指令发送给目标物联网设备1、目标物联网设备2、…、目标物联网设备N。Step 804, the function attribute operation instruction is sent to the target Internet of Things device 1, the target Internet of Things device 2, ..., the target Internet of Things device N.
步骤805,目标物联网设备1、目标物联网设备2、…、目标物联网设备N接收到功能属性操作指令后,执行功能属性操作指令,例如,对功能属性操作指令涉及到的功能属性值进行设置或查询。Step 805, after the target Internet of Things device 1, the target Internet of Things device 2, ..., the target Internet of Things device N receives the function attribute operation instruction, executes the function attribute operation instruction, for example, performs the function attribute value related to the function attribute operation instruction. Set or query.
步骤806,目标物联网设备1、目标物联网设备2、…、目标物联网设备N将执行功能属性操作指令的指令执行结果返回给服务器。Step 806, the target Internet of Things device 1, the target Internet of Things device 2, ..., the target Internet of Things device N returns an instruction execution result of executing the function attribute operation instruction to the server.
步骤807,服务器接收到目标物联网设备1、目标物联网设备2、…、目标物联网设备N的执行结果后,对目标物联网设备1、目标物联网设备2、…、目标物联网设备N的多个指令执行结果进行聚合,得到组操作结果。Step 807, after the server receives the execution result of the target Internet of Things device 1, the target Internet of Things device 2, ..., the target Internet of Things device N, the target Internet of Things device 1, the target Internet of Things device 2, ..., the target Internet of Things device N The multiple instruction execution results are aggregated to obtain the group operation result.
如果指令执行结果均表示执行成功,生成组操作成功的组操作结果;如果指令执行结果中有错误或异常结果返回,将对应的设备ID、名称、类型、错误信息等添加入组操作结果中。If the execution result of the instruction indicates that the execution is successful, the result of the group operation that the group operation succeeds is generated; if there is an error in the execution result of the instruction or the abnormal result returns, the corresponding device ID, name, type, error information, and the like are added to the group operation result.
步骤808,服务器将组操作结果返回给移动设备。In step 808, the server returns the result of the group operation to the mobile device.
步骤809中,移动设备向用户显示组操作结果。In step 809, the mobile device displays the group operation result to the user.
通过上述实施例,通过以分组为单位与物联网设备进行交互,可以使用 户通过一次操作,发送一条组请求消息,即可使服务器对分组内的物联网设备进行操作控制,减少了用户与物联网设备之间的交互次数,使得用户与物联网设备之间的交互效率得到提高,提升了用户使用体验。Through the above embodiment, by interacting with the Internet of Things device in units of groups, it is possible to use By sending a group request message in one operation, the user can make the server operate and control the IoT device in the group, reduce the number of interactions between the user and the IoT device, and make the interaction efficiency between the user and the IoT device. Improved and improved user experience.
对应于上述的控制物联网设备的方法,本申请还提出了图9所示的根据本申请的一示例性实施例的服务器的示意结构图。请参考图9,在硬件层面,该服务器包括处理器、内部总线、网络接口、内存以及非易失性存储器,当然还可能包括其他业务所需要的硬件。处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成控制物联网设备的装置。当然,除了软件实现方式之外,本申请并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。Corresponding to the above method of controlling the Internet of Things device, the present application also proposes a schematic structural diagram of the server according to an exemplary embodiment of the present application shown in FIG. 9. Referring to FIG. 9, at the hardware level, the server includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may of course include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into memory and then runs to form a device that controls the IoT device at a logical level. Of course, in addition to the software implementation, the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and may be Hardware or logic device.
其中,网络接口,用于接收来自移动设备的组请求消息,组请求消息中携带有目标物联网设备所在的分组的组ID、组ID对应的组属性名以及组ID对应的组属性取值;The network interface is configured to receive a group request message from the mobile device, where the group request message carries the group ID of the group where the target IoT device is located, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID.
处理器,用于根据组ID查询分组管理表,以根据分组管理表确定组ID对应的目标物联网设备在组属性名和组属性取值对应的条件下需要操作的功能属性;a processor, configured to query a group management table according to the group ID, to determine, according to the group management table, a function attribute that needs to be operated under the condition that the target object network device corresponding to the group ID corresponds to the group attribute name and the group attribute value;
根据目标物联网设备和目标物联网设备需要操作的功能属性生成用于控制目标物联网设备的功能属性操作指令;Generating functional attribute operation instructions for controlling the target IoT device according to functional attributes that the target IoT device and the target IoT device need to operate;
网络接口,还用于向目标物联网设备发送功能属性操作指令,以供目标物联网设备执行功能属性操作指令。The network interface is further configured to send a function attribute operation instruction to the target object network device for the target object network device to execute the function attribute operation instruction.
对应于上述的控制物联网设备的方法,本申请还提出了图10所示的根据本申请的一示例性实施例的电子设备的示意结构图。请参考图10,在硬件层面,该电子设备包括处理器、内部总线、网络接口、显示屏、内存以及非易失性存储器,当然还可能包括其他业务所需要的硬件。处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成控制物联网设备的装置。当然,除了软件实现方式之外,本申请并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。 Corresponding to the above method of controlling an Internet of Things device, the present application also proposes a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application shown in FIG. Referring to FIG. 10, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a display screen, a memory, and a non-volatile memory, and may of course include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into memory and then runs to form a device that controls the IoT device at a logical level. Of course, in addition to the software implementation, the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and may be Hardware or logic device.
其中,网络接口,用于向服务器发送组请求消息,组请求消息中携带有目标物联网设备所在的分组的组ID、组ID对应的组属性名以及组ID对应的组属性取值,以供服务器根据组ID、组ID对应的组属性名以及组ID对应的组属性取值生成用于控制目标物联网设备的功能属性操作指令;以及,接收服务器根据组请求消息返回的组操作结果,组操作结果由目标物联网设备;The network interface is configured to send a group request message to the server, where the group request message carries the group ID of the group where the target IoT device is located, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID, for The server generates a function attribute operation instruction for controlling the target object network device according to the group ID, the group attribute name corresponding to the group ID, and the group attribute corresponding to the group ID; and the group operation result returned by the receiving server according to the group request message, the group The result of the operation is determined by the target IoT device;
显示屏,用于显示目标物联网设备执行功能属性操作指令的结果。A display screen that displays the results of the target IoT device's execution of the function attribute operation instructions.
图11示出了根据本发明示例性实施例一的控制物联网设备的装置的结构示意图;如图11所示,该控制物联网设备的装置可以包括:第一接收模块111、第一确定模块112、第一生成模块113、第一发送模块114。其中:FIG. 11 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment of the present invention. As shown in FIG. 11, the apparatus for controlling an Internet of Things device may include: a first receiving module 111, and a first determining module. 112. The first generation module 113 and the first sending module 114. among them:
第一接收模块111,用于接收来自移动设备的组请求消息,组请求消息中携带有目标物联网设备所在的分组的组ID、组ID对应的组属性名以及组ID对应的组属性取值;The first receiving module 111 is configured to receive a group request message from the mobile device, where the group request message carries the group ID of the group where the target IoT device is located, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID. ;
第一确定模块112,用于根据第一接收模块111接收到的组请求消息中的组ID查询分组管理表,以根据分组管理表确定组ID对应的目标物联网设备在第一接收模块111接收到的组请求消息中的组属性名和第一接收模块111接收到的组请求消息中的组属性取值对应的条件下需要操作的功能属性;The first determining module 112 is configured to query the group management table according to the group ID in the group request message received by the first receiving module 111, to determine, according to the group management table, that the target object network device corresponding to the group ID is received by the first receiving module 111. a function attribute that needs to be operated under the condition that the group attribute name in the group request message and the group attribute value in the group request message received by the first receiving module 111;
第一生成模块113,用于根据目标物联网设备和第一确定模块112确定的目标物联网设备需要操作的功能属性生成用于控制目标物联网设备的功能属性操作指令;The first generating module 113 is configured to generate a function attribute operation instruction for controlling the target object network device according to the function attribute that the target object network device and the first object determining device 112 determine that the target object network device needs to operate;
第一发送模块114,用于向目标物联网设备发送第一生成模块113生成的功能属性操作指令,以供目标物联网设备执行功能属性操作指令。The first sending module 114 is configured to send, to the target Internet of Things device, a function attribute operation instruction generated by the first generation module 113, for the target object network device to execute the function attribute operation instruction.
图12示出了根据本发明示例性实施例二的控制物联网设备的装置的结构示意图;在上述图11所示实施例的基础上,如图12所示,装置还可包括:FIG. 12 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment of the present invention. On the basis of the embodiment shown in FIG. 11 , as shown in FIG. 12 , the apparatus may further include:
第二接收模块115,用于接收目标物联网设备执行第一发送模块114发送的功能属性操作指令后返回的指令执行结果;The second receiving module 115 is configured to receive an instruction execution result returned by the target IoT device after executing the function attribute operation instruction sent by the first sending module 114;
第二确定模块116,用于确定第二接收模块115接收到的指令执行结果的数量;a second determining module 116, configured to determine a quantity of instruction execution results received by the second receiving module 115;
结果聚合模块117,用于如果第二确定模块116确定指令执行结果的数量为两个以上,对两条以上的指令执行结果进行聚合,得到组操作结果; The result aggregation module 117 is configured to, if the second determining module 116 determines that the number of execution results of the instruction is two or more, aggregate two or more instruction execution results to obtain a group operation result;
第二发送模块118,用于将结果聚合模块117得到的组操作结果返回给移动设备,以供移动设备向用户显示目标物联网设备执行功能属性操作指令的结果。The second sending module 118 is configured to return the group operation result obtained by the result aggregation module 117 to the mobile device, so that the mobile device displays to the user the result of executing the function attribute operation instruction by the target object network device.
在一实施例中,装置还可包括:In an embodiment, the apparatus may further include:
第三确定模块119,用于如果第二确定模块116确定指令执行结果的数量为两个以上,确定两条以上的指令执行结果中是否存在异常结果;a third determining module 119, configured to determine whether an abnormal result exists in two or more instruction execution results if the second determining module 116 determines that the number of instruction execution results is two or more;
第四确定模块120,用于如果第三确定模块119确定两条以上的指令执行结果中存在异常结果,从分组管理表中确定异常结果对应的设备ID、设备ID对应的设备类型、设备ID对应的设备属性名;The fourth determining module 120 is configured to: if the third determining module 119 determines that there is an abnormal result in the execution result of the two or more instructions, determine, from the group management table, a device ID corresponding to the abnormal result, a device type corresponding to the device ID, and a device ID corresponding to the device ID Device attribute name;
添加模块121,用于将第四确定模块120确定的设备ID、设备类型、设备属性名、设备ID对应的错误信息添加到结果聚合模块117得到的组操作结果中。The adding module 121 is configured to add the device ID, the device type, the device attribute name, and the error information corresponding to the device ID determined by the fourth determining module 120 to the group operation result obtained by the result aggregation module 117.
图13示出了根据本发明示例性实施例三的控制物联网设备的装置的结构示意图;在上述图11或图12所示实施例的基础上,如图13所示,装置还可包括:FIG. 13 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 3 of the present invention. On the basis of the embodiment shown in FIG. 11 or FIG. 12, as shown in FIG. 13, the apparatus may further include:
第三接收模块122,用于接收来自物联网设备发送的用于注册的设备功能属性描述信息;a third receiving module 122, configured to receive device function attribute description information sent by the IoT device for registration;
处理模块123,用于根据第三接收模块接收到的设备功能属性描述信息生成物联网设备对应的设备ID以及注册结果,将设备功能属性描述信息存储至数据库;The processing module 123 is configured to generate, according to the device function attribute description information received by the third receiving module, a device ID corresponding to the IoT device and a registration result, and store the device function attribute description information into a database;
第三发送模块124,用于将处理模块123生成的注册结果返回给物联网设备,注册结果中包含有设备ID。The third sending module 124 is configured to return the registration result generated by the processing module 123 to the Internet of Things device, where the registration result includes the device ID.
图14示出了根据本发明示例性实施例四的控制物联网设备的装置的结构示意图;在上述图11-图13任一实施例的基础上,如图14所示,装置还可包括:FIG. 14 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 4 of the present invention. On the basis of any of the foregoing embodiments of FIG. 11 to FIG. 13 , as shown in FIG. 14 , the apparatus may further include:
第四接收模块125,用于接收来自移动设备的分组设备及关于分组设备的逻辑配置描述信息;a fourth receiving module 125, configured to receive a packet device from the mobile device and logical configuration description information about the packet device;
第二生成模块126,用于根据第四接收模块125接收到的逻辑配置描述信息生成分组设备对应的分组管理表,以供第一确定模块122根据第二生成 模块96生成的分组管理表确定组ID对应的目标物联网设备在第一接收模块121接收到的组请求消息中的组属性名和第一接收模块121接收到的组请求消息中的组属性取值对应的条件下需要操作的功能属性;The second generation module 126 is configured to generate, according to the logical configuration description information received by the fourth receiving module 125, a group management table corresponding to the grouping device, for the first determining module 122 to generate according to the second The group management table generated by the module 96 determines the group attribute name in the group request message received by the target object network device corresponding to the group ID and the group attribute value in the group request message received by the first receiving module 121. The function attribute that needs to be operated under the corresponding conditions;
第四发送模块127,用于将对物联网设备的分组配置结果返回给移动设备。The fourth sending module 127 is configured to return a packet configuration result of the Internet of Things device to the mobile device.
图15示出了根据本发明示例性实施例五的控制物联网设备的装置的结构示意图;如图15所示,在上述图11-图14任一实施例的基础上,装置还可包括:FIG. 15 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 5 of the present invention; as shown in FIG. 15, the apparatus may further include:
第五确定模块128,用于确定目标物联网设备的设备功能属性状态中发生变化的设备功能属性状态;The fifth determining module 128 is configured to determine a device function attribute state that changes in a device function attribute state of the target IoT device;
第一更新模块129,用于根据第五确定模块1212确定的发生变化的设备功能属性更新分组管理表,以供第一确定模块112根据第一更新模块129更新后的分组管理表确定组ID对应的目标物联网设备在第一接收模块111接收到的组请求消息中的组属性名和第一接收模块111接收到的组请求消息中的组属性取值对应的条件下需要操作的功能属性;The first update module 129 is configured to update the group management table according to the changed device function attribute determined by the fifth determining module 1212, so that the first determining module 112 determines the group ID corresponding according to the updated group management table by the first update module 129. The functional attribute of the target IoT device that needs to be operated under the condition that the group attribute name in the group request message received by the first receiving module 111 and the group attribute value in the group request message received by the first receiving module 111 correspond to;
同步模块110,用于将第五确定模块128确定的发生变化的设备功能属性状态同步给移动设备。The synchronization module 110 is configured to synchronize the changed device function attribute status determined by the fifth determining module 128 to the mobile device.
图16示出了根据本发明示例性实施例六的控制物联网设备的装置的结构示意图,如图16所示,控制物联网设备的装置还可包括:第五发送模块161、第五接收模块162、显示模块163。16 is a schematic structural diagram of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 6 of the present invention. As shown in FIG. 16, the apparatus for controlling an Internet of Things device may further include: a fifth sending module 161 and a fifth receiving module. 162. Display module 163.
第五发送模块161,用于向服务器发送组请求消息,组请求消息中携带有目标物联网设备所在的分组的组ID、组ID对应的组属性名以及组ID对应的组属性取值,以供服务器根据组ID、组ID对应的组属性名以及组ID对应的组属性取值生成用于控制目标物联网设备的功能属性操作指令;The fifth sending module 161 is configured to send a group request message to the server, where the group request message carries the group ID of the group where the target IoT device is located, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID, The server generates a function attribute operation instruction for controlling the target IoT device according to the group ID, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID;
第五接收模块162,用于接收服务器根据第五发送模块161发送的组请求消息返回的组操作结果,组操作结果由目标物联网设备;The fifth receiving module 162 is configured to receive a group operation result returned by the server according to the group request message sent by the fifth sending module 161, where the group operation result is performed by the target Internet of Things device;
显示模块163,用于显示第五接收模块162接收到的目标物联网设备执行功能属性操作指令的组操作结果。The display module 163 is configured to display a group operation result of the target IoT device executing the function attribute operation instruction received by the fifth receiving module 162.
图17示出了根据本发明示例性实施例七的控制物联网设备的装置的结 构示意;如图17所示,在上述图16实施例的基础上,装置还可包括:17 shows a junction of an apparatus for controlling an Internet of Things device according to an exemplary embodiment 7 of the present invention. As shown in FIG. 17, on the basis of the above embodiment of FIG. 16, the apparatus may further include:
第五确定模块164,用于确定目标物联网设备所在的分组及关于分组的逻辑配置描述信息;a fifth determining module 164, configured to determine a packet where the target Internet of Things device is located and logical configuration description information about the packet;
第六发送模块165,用于将第五确定模块164确定的逻辑配置描述信息发送给服务器,以供服务器根据逻辑配置描述信息生成分组对应的分组管理表。The sixth sending module 165 is configured to send the logical configuration description information determined by the fifth determining module 164 to the server, so that the server generates a packet management table corresponding to the packet according to the logical configuration description information.
在一实施例中,装置还可包括:In an embodiment, the apparatus may further include:
第六确定模块166,用于确定第五接收模块162接收到的组操作结果中是否存在异常结果;The sixth determining module 166 is configured to determine whether an abnormal result exists in the group operation result received by the fifth receiving module 162.
解析模块167,用于如果第六确定模块166确定组操作结果中存在异常结果,从组操作结果中解析出现异常结果的目标物联网的设备ID、设备ID对应的设备类型、设备ID对应的设备属性名。The parsing module 167 is configured to: if the sixth determining module 166 determines that there is an abnormal result in the group operation result, parse the device ID of the target Internet of Things, the device type corresponding to the device ID, and the device ID corresponding to the abnormality result from the group operation result. The name of the property.
在一实施例中,装置还可包括:In an embodiment, the apparatus may further include:
第六接收模块168,用于接收来自服务器的关于发生变化的设备功能属性状态;a sixth receiving module 168, configured to receive, from a server, a status of a device function attribute of the change;
第二更新模块169,用于根据第六接收模块168接收到的发生变化的设备功能属性状态更新对应的目标物联网设备的状态。The second update module 169 is configured to update the state of the corresponding target Internet of Things device according to the changed device function attribute status received by the sixth receiving module 168.
上述实施例可见,通过以分组为单位与物联网设备进行交互,可以使用户通过一次操作,发送一条组请求消息,即可使服务器对分组内的物联网设备进行操作控制,减少了用户与物联网设备之间的交互次数,使得用户与物联网设备之间的交互效率得到提高,提升了用户使用体验。The above embodiment can be seen that by interacting with the Internet of Things device in units of packets, the user can send a group request message in one operation, so that the server can perform operation control on the IoT device in the group, thereby reducing user and object. The number of interactions between networked devices increases the efficiency of interaction between users and IoT devices, improving the user experience.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。Other embodiments of the present application will be readily apparent to those skilled in the <RTIgt; The application is intended to cover any variations, uses, or adaptations of the application, which are in accordance with the general principles of the application and include common general knowledge or common technical means in the art that are not disclosed herein. . The specification and examples are to be regarded as illustrative only,
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方 法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It is also to be understood that the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, Other elements not explicitly listed, or included for this process, The elements inherent in the law, goods, or equipment. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device including the element.
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。 The above is only the preferred embodiment of the present application, and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc., which are made within the spirit and principles of the present application, should be included in the present application. Within the scope of protection.

Claims (22)

  1. 一种控制物联网设备的方法,其特征在于,所述方法包括:A method of controlling an Internet of Things device, the method comprising:
    接收来自移动设备的组请求消息,所述组请求消息中携带有目标物联网设备所在的分组的组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值;Receiving a group request message from a mobile device, where the group request message carries a group ID of a packet in which the target Internet of Things device is located, a group attribute name corresponding to the group ID, and a group attribute value corresponding to the group ID;
    根据所述组ID查询分组管理表,以根据所述分组管理表确定所述组ID对应的目标物联网设备在所述组属性名和所述组属性取值对应的条件下需要操作的功能属性;Querying, according to the group ID, a group management table, to determine, according to the group management table, a function attribute that needs to be operated under a condition that the target object network device corresponding to the group ID corresponds to the group attribute name and the group attribute value;
    根据所述目标物联网设备和所述目标物联网设备需要操作的功能属性生成用于控制所述目标物联网设备的功能属性操作指令;Generating a function attribute operation instruction for controlling the target object network device according to a function attribute of the target object network device and the target object network device to operate;
    向所述目标物联网设备发送所述功能属性操作指令,以供所述目标物联网设备执行所述功能属性操作指令。Transmitting the function attribute operation instruction to the target object network device for the target object network device to execute the function attribute operation instruction.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    接收所述目标物联网设备执行所述功能属性操作指令后返回的指令执行结果;Receiving an instruction execution result returned by the target object network device after executing the function attribute operation instruction;
    确定所述指令执行结果的数量;Determining the number of execution results of the instructions;
    如果所述指令执行结果的数量为两个以上,对所述两条以上的指令执行结果进行聚合,得到组操作结果;If the number of execution results of the instruction is two or more, the execution results of the two or more instructions are aggregated to obtain a group operation result;
    将所述组操作结果返回给所述移动设备,以供所述移动设备向用户显示所述目标物联网设备执行所述功能属性操作指令的所述组操作结果。Returning the group operation result to the mobile device for the mobile device to display to the user the result of the group operation of the target object network device executing the function attribute operation instruction.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:
    确定所述两条以上的指令执行结果中是否存在异常结果;Determining whether there is an abnormal result in the execution result of the two or more instructions;
    如果所述两条以上的指令执行结果中存在异常结果,从所述分组管理表中确定所述异常结果对应的设备ID、所述设备ID对应的设备类型、所述设备ID对应的设备属性名;If there is an abnormal result in the execution result of the two or more instructions, the device ID corresponding to the abnormal result, the device type corresponding to the device ID, and the device attribute name corresponding to the device ID are determined from the group management table. ;
    将所述设备ID、所述设备类型、所述设备属性名、所述设备ID对应的错误信息添加到所述组操作结果中。The device ID, the device type, the device attribute name, and error information corresponding to the device ID are added to the group operation result.
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括: The method of claim 1 further comprising:
    接收来自所述物联网设备发送的用于注册的设备功能属性描述信息;Receiving device function attribute description information sent by the IoT device for registration;
    根据所述设备功能属性描述信息生成所述物联网设备对应的设备ID及注册结果,将所述设备功能属性描述信息存储至数据库;Generating, according to the device function attribute description information, a device ID and a registration result corresponding to the object network device, and storing the device function attribute description information in a database;
    将所述注册结果返回给所述物联网设备,所述注册结果中包含有所述设备ID。Returning the registration result to the IoT device, the registration result includes the device ID.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    接收来自所述移动设备的关于分组的逻辑配置描述信息;Receiving logical configuration description information about the packet from the mobile device;
    根据所述逻辑配置描述信息生成所述分组对应的所述分组管理表;Generating, according to the logical configuration description information, the packet management table corresponding to the packet;
    将对所述物联网设备的分组配置结果返回给所述移动设备。A packet configuration result for the IoT device is returned to the mobile device.
  6. 根据权利要求1-5任一所述的方法,其特征在于,所述方法还包括:The method of any of claims 1-5, wherein the method further comprises:
    确定所述目标物联网设备的设备功能属性状态中发生变化的设备功能属性状态;Determining a device function attribute status that changes in a device function attribute status of the target IoT device;
    根据所述发生变化的设备功能属性更新所述分组管理表;Updating the group management table according to the changed device function attribute;
    将所述发生变化的设备功能属性状态同步给所述移动设备。Synchronizing the changed device function attribute status to the mobile device.
  7. 一种控制物联网设备的方法,其特征在于,所述方法包括:A method of controlling an Internet of Things device, the method comprising:
    向服务器发送组请求消息,所述组请求消息中携带有目标物联网设备所在的分组的组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值,以供所述服务器根据所述组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值生成用于控制所述目标物联网设备的功能属性操作指令;Sending a group request message to the server, where the group request message carries the group ID of the group where the target IoT device is located, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID, for the The server generates a function attribute operation instruction for controlling the target object network device according to the group ID, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID;
    接收所述服务器根据所述组请求消息返回的组操作结果,所述组操作结果由所述目标物联网设备;Receiving a group operation result returned by the server according to the group request message, the group operation result being by the target Internet of Things device;
    显示所述目标物联网设备执行所述功能属性操作指令的所述组操作结果。Displaying the group operation result of the target IoT device executing the function attribute operation instruction.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method of claim 7, wherein the method further comprises:
    确定目标物联网设备所在的分组及关于所述分组的逻辑配置描述信息;Determining a packet in which the target Internet of Things device is located and logical configuration description information about the packet;
    将所述逻辑配置描述信息发送给服务器,以供所述服务器根据所述逻辑配置描述信息生成所述分组对应的所述分组管理表。Sending the logical configuration description information to the server, so that the server generates the packet management table corresponding to the packet according to the logical configuration description information.
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括: The method of claim 8 further comprising:
    确定所述组操作结果中是否存在异常结果;Determining whether there is an abnormal result in the group operation result;
    如果所述组操作结果中存在异常结果,从所述组操作结果中解析出现异常结果的目标物联网的设备ID、所述设备ID对应的设备类型、所述设备ID对应的设备属性名。If there is an abnormal result in the group operation result, the device ID of the target Internet of Things having the abnormal result, the device type corresponding to the device ID, and the device attribute name corresponding to the device ID are parsed from the group operation result.
  10. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method of claim 7, wherein the method further comprises:
    接收来自所述服务器的关于发生变化的设备功能属性状态;Receiving a status of a device function attribute from the server regarding a change;
    根据所述发生变化的设备功能属性状态更新对应的目标物联网设备的状态。Updating the status of the corresponding target Internet of Things device according to the changed device function attribute status.
  11. 一种控制物联网设备的装置,其特征在于,所述装置包括:An apparatus for controlling an Internet of Things device, the apparatus comprising:
    第一接收模块,用于接收来自移动设备的组请求消息,所述组请求消息中携带有目标物联网设备所在的分组的组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值;a first receiving module, configured to receive a group request message from a mobile device, where the group request message carries a group ID of a packet where the target Internet of Things device is located, a group attribute name corresponding to the group ID, and the group ID corresponding to the Group attribute value;
    第一确定模块,用于根据所述第一接收模块接收到的所述组请求消息中的所述组ID查询分组管理表,以根据所述分组管理表确定所述组ID对应的目标物联网设备在所述第一接收模块接收到的所述组请求消息中的所述组属性名和所述第一接收模块接收到的所述组请求消息中的所述组属性取值对应的条件下需要操作的功能属性;a first determining module, configured to query a group management table according to the group ID in the group request message received by the first receiving module, to determine, according to the group management table, a target Internet of things corresponding to the group ID The device needs to be performed under the condition that the group attribute name in the group request message received by the first receiving module and the group attribute value in the group request message received by the first receiving module Functional attributes of the operation;
    第一生成模块,用于根据所述目标物联网设备和所述第一确定模块确定的所述目标物联网设备需要操作的功能属性生成用于控制所述目标物联网设备的功能属性操作指令;a first generation module, configured to generate a function attribute operation instruction for controlling the target object network device according to a function attribute that the target object network device and the first object determining device determine that the target object network device needs to operate;
    第一发送模块,用于向所述目标物联网设备发送所述第一生成模块生成的所述功能属性操作指令,以供所述目标物联网设备执行所述功能属性操作指令。And a first sending module, configured to send, to the target Internet of Things device, the function attribute operation instruction generated by the first generation module, for the target object network device to execute the function attribute operation instruction.
  12. 根据权利要求11所述的装置,其特征在于,所述装置还包括:The device according to claim 11, wherein the device further comprises:
    第二接收模块,用于接收所述目标物联网设备执行所述第一发送模块发送的所述功能属性操作指令后返回的指令执行结果;a second receiving module, configured to receive an instruction execution result returned by the target IoT device after executing the function attribute operation instruction sent by the first sending module;
    第二确定模块,用于确定所述第二接收模块接收到的所述指令执行结果的数量; a second determining module, configured to determine a quantity of the instruction execution result received by the second receiving module;
    结果聚合模块,用于如果所述第二确定模块确定所述指令执行结果的数量为两个以上,对所述两条以上的指令执行结果进行聚合,得到组操作结果;a result aggregation module, configured to: if the second determining module determines that the number of execution results of the instruction is two or more, aggregate the execution results of the two or more instructions to obtain a group operation result;
    第二发送模块,用于将所述结果聚合模块得到的所述组操作结果返回给所述移动设备,以供所述移动设备向用户显示所述目标物联网设备执行所述功能属性操作指令的所述组操作结果。a second sending module, configured to return the group operation result obtained by the result aggregation module to the mobile device, where the mobile device displays to the user that the target object network device performs the function attribute operation instruction The result of the group operation.
  13. 根据权利要求12所述的装置,其特征在于,所述装置还包括:The device of claim 12, wherein the device further comprises:
    第三确定模块,用于确定所述两条以上的指令执行结果中是否存在异常结果;a third determining module, configured to determine whether an abnormal result exists in the execution result of the two or more instructions;
    第四确定模块,用于如果所述第三确定模块确定所述两条以上的指令执行结果中存在异常结果,从所述分组管理表中确定所述异常结果对应的设备ID、所述设备ID对应的设备类型、所述设备ID对应的设备属性名;a fourth determining module, configured to determine, from the group management table, a device ID corresponding to the abnormal result, the device ID, if the third determining module determines that an abnormal result exists in the execution result of the two or more instructions The corresponding device type and the device attribute name corresponding to the device ID;
    添加模块,用于将所述第四确定模块确定的所述设备ID、所述设备类型、所述设备属性名、所述设备ID对应的错误信息添加到所述组操作结果中。And an adding module, configured to add, to the group operation result, the device ID, the device type, the device attribute name, and the error information corresponding to the device ID determined by the fourth determining module.
  14. 根据权利要求11所述的装置,其特征在于,所述装置还包括:The device according to claim 11, wherein the device further comprises:
    第三接收模块,用于接收来自所述物联网设备发送的用于注册的设备功能属性描述信息;a third receiving module, configured to receive device function attribute description information sent by the IoT device for registration;
    处理模块,用于根据所述第三接收模块接收到的所述设备功能属性描述信息生成所述物联网设备对应的设备ID以及注册结果,将所述设备功能属性描述信息存储至数据库;a processing module, configured to generate, according to the device function attribute description information received by the third receiving module, a device ID corresponding to the object network device and a registration result, and store the device function attribute description information into a database;
    第三发送模块,用于将所述处理模块生成的所述注册结果返回给所述物联网设备,所述注册结果中包含有所述设备ID。And a third sending module, configured to return the registration result generated by the processing module to the IoT device, where the registration result includes the device ID.
  15. 根据权利要求11所述的装置,其特征在于,所述装置还包括:The device according to claim 11, wherein the device further comprises:
    第四接收模块,用于接收来自所述移动设备关于分组的逻辑配置描述信息;a fourth receiving module, configured to receive logical configuration description information about the packet from the mobile device;
    第二生成模块,用于根据所述第四接收模块接收到的所述逻辑配置描述信息生成所述分组对应的所述分组管理表;a second generation module, configured to generate, according to the logical configuration description information received by the fourth receiving module, the group management table corresponding to the packet;
    第四发送模块,用于将对所述物联网设备的分组配置结果返回给所述移动设备。 And a fourth sending module, configured to return a packet configuration result of the IoT device to the mobile device.
  16. 根据权利要求11-15任一所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 11-15, wherein the device further comprises:
    第五确定模块,用于确定所述目标物联网设备的设备功能属性状态中发生变化的设备功能属性状态;a fifth determining module, configured to determine a device function attribute state that changes in a device function attribute state of the target IoT device;
    第一更新模块,用于根据所述第五确定模块确定的所述发生变化的设备功能属性更新所述分组管理表;a first update module, configured to update the group management table according to the changed device function attribute determined by the fifth determining module;
    同步模块,用于将所述第五确定模块确定的所述发生变化的设备功能属性状态同步给所述移动设备。And a synchronization module, configured to synchronize, to the mobile device, the changed device function attribute status determined by the fifth determining module.
  17. 一种控制物联网设备的装置,其特征在于,所述装置包括:An apparatus for controlling an Internet of Things device, the apparatus comprising:
    第五发送模块,用于向服务器发送组请求消息,所述组请求消息中携带有目标物联网设备所在的分组的组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值,以供所述服务器根据所述组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值生成用于控制所述目标物联网设备的功能属性操作指令;a fifth sending module, configured to send a group request message to the server, where the group request message carries a group ID of a group where the target Internet of Things device is located, a group attribute name corresponding to the group ID, and a group corresponding to the group ID The attribute value is used by the server to generate a function attribute operation instruction for controlling the target object network device according to the group ID, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID. ;
    第五接收模块,用于接收所述服务器根据所述第五发送模块发送的所述组请求消息返回的组操作结果,所述组操作结果由所述目标物联网设备;a fifth receiving module, configured to receive a group operation result returned by the server according to the group request message sent by the fifth sending module, where the group operation result is performed by the target Internet of Things device;
    显示模块,用于显示所述第五接收模块接收到的所述目标物联网设备执行所述功能属性操作指令的组操作结果。And a display module, configured to display a group operation result that the target object network device received by the fifth receiving module executes the function attribute operation instruction.
  18. 根据权利要求17所述的装置,其特征在于,所述装置还包括:The device according to claim 17, wherein the device further comprises:
    第五确定模块,用于确定目标物联网设备所在的分组及关于所述分组的逻辑配置描述信息;a fifth determining module, configured to determine a packet where the target Internet of Things device is located and logical configuration description information about the packet;
    第六发送模块,用于将所述第五确定模块确定的所述逻辑配置描述信息发送给服务器,以供所述服务器根据所述逻辑配置描述信息生成所述分组对应的所述分组管理表。The sixth sending module is configured to send the logical configuration description information that is determined by the fifth determining module to the server, so that the server generates the packet management table corresponding to the packet according to the logical configuration description information.
  19. 根据权利要求18所述的装置,其特征在于,所述装置还包括:The device of claim 18, wherein the device further comprises:
    第六确定模块,用于确定所述第五接收模块接收到的所述组操作结果中是否存在异常结果;a sixth determining module, configured to determine whether an abnormal result exists in the group operation result received by the fifth receiving module;
    解析模块,用于如果所述第六确定模块确定所述组操作结果中存在异常 结果,从所述组操作结果中解析出现异常结果的目标物联网的设备ID、所述设备ID对应的设备类型、所述设备ID对应的设备属性名。a parsing module, configured to: if the sixth determining module determines that there is an abnormality in the group operation result As a result, the device ID of the target Internet of Things with the abnormal result, the device type corresponding to the device ID, and the device attribute name corresponding to the device ID are parsed from the group operation result.
  20. 根据权利要求17所述的装置,其特征在于,所述装置还包括:The device according to claim 17, wherein the device further comprises:
    第六接收模块,用于接收来自所述服务器的关于发生变化的设备功能属性状态;a sixth receiving module, configured to receive, from the server, a status of a device function attribute of the change;
    第二更新模块,用于根据所述第六接收模块接收到的所述发生变化的设备功能属性状态更新对应的目标物联网设备的状态。And a second update module, configured to update a state of the corresponding target Internet of Things device according to the changed device function attribute status received by the sixth receiving module.
  21. 一种服务器,其特征在于,所述服务器包括:A server, wherein the server comprises:
    处理器;用于存储所述处理器可执行指令的存储器;网络接口;a processor; a memory for storing the processor executable instructions; a network interface;
    其中,所述网络接口,用于接收来自移动设备的组请求消息,所述组请求消息中携带有目标物联网设备所在的分组的组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值;The network interface is configured to receive a group request message from a mobile device, where the group request message carries a group ID of a packet where the target Internet of Things device is located, a group attribute name corresponding to the group ID, and the group The group attribute corresponding to the ID takes a value;
    所述处理器,用于根据所述组ID查询分组管理表,以根据所述分组管理表确定所述组ID对应的目标物联网设备在所述组属性名和所述组属性取值对应的条件下需要操作的功能属性;The processor is configured to query, according to the group ID, a packet management table, to determine, according to the group management table, a condition that the target object network device corresponding to the group ID corresponds to the group attribute name and the group attribute value The functional attributes that need to be operated;
    根据所述目标物联网设备和所述目标物联网设备需要操作的功能属性生成用于控制所述目标物联网设备的功能属性操作指令;Generating a function attribute operation instruction for controlling the target object network device according to a function attribute of the target object network device and the target object network device to operate;
    所述网络接口,还用于向所述目标物联网设备发送所述功能属性操作指令,以供所述目标物联网设备执行所述功能属性操作指令。The network interface is further configured to send the function attribute operation instruction to the target object network device, so that the target object network device executes the function attribute operation instruction.
  22. 一种移动设备,其特征在于,所述移动设备包括:A mobile device, characterized in that the mobile device comprises:
    处理器;用于存储所述处理器可执行指令的存储器;网络接口以及显示屏;a processor; a memory for storing the processor executable instructions; a network interface and a display;
    所述网络接口,用于向服务器发送组请求消息,所述组请求消息中携带有目标物联网设备所在的分组的组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值,以供所述服务器根据所述组ID、所述组ID对应的组属性名以及所述组ID对应的组属性取值生成用于控制所述目标物联网设备的功能属性操作指令;以及,接收所述服务器根据所述组请求消息返回的组操作结果,所述组操作结果由所述目标物联网设备;The network interface is configured to send a group request message to the server, where the group request message carries a group ID of a group where the target Internet of Things device is located, a group attribute name corresponding to the group ID, and a group corresponding to the group ID The attribute value is used by the server to generate a function attribute operation instruction for controlling the target object network device according to the group ID, the group attribute name corresponding to the group ID, and the group attribute value corresponding to the group ID. And receiving a result of the group operation returned by the server according to the group request message, the group operation result being by the target Internet of Things device;
    所述显示屏,用于显示所述目标物联网设备执行所述功能属性操作指令的结果。 The display screen is configured to display a result of the target Internet of Things device executing the function attribute operation instruction.
PCT/CN2017/071551 2016-01-28 2017-01-18 Method and apparatus for controlling internet of things device, and server and mobile device WO2017129014A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610061584.2 2016-01-28
CN201610061584.2A CN107018165A (en) 2016-01-28 2016-01-28 The method and device of control internet of things equipment, server, mobile device

Publications (1)

Publication Number Publication Date
WO2017129014A1 true WO2017129014A1 (en) 2017-08-03

Family

ID=59397378

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/071551 WO2017129014A1 (en) 2016-01-28 2017-01-18 Method and apparatus for controlling internet of things device, and server and mobile device

Country Status (3)

Country Link
CN (1) CN107018165A (en)
TW (1) TW201732627A (en)
WO (1) WO2017129014A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979263A (en) * 2022-03-28 2022-08-30 慧之安信息技术股份有限公司 High-concurrency gateway SIP proxy method and device based on Gin framework
CN115514792A (en) * 2022-11-23 2022-12-23 中汽数据(天津)有限公司 Automobile test equipment interaction method based on industrial Internet identification system

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112217831B (en) * 2017-09-18 2023-04-25 创新先进技术有限公司 Information interaction method, device and equipment for Internet of things equipment
CN110460378B (en) * 2018-05-08 2021-07-30 大唐移动通信设备有限公司 Data transmission method, baseband unit and base station
CN110233874B (en) * 2019-05-08 2022-02-18 百度在线网络技术(北京)有限公司 Information transmission method and device for Internet of things equipment
CN110166262B (en) * 2019-05-16 2021-08-13 深圳数联天下智能科技有限公司 Group management method, device, system, computer device and readable storage medium
CN110266829A (en) * 2019-06-21 2019-09-20 北京赛思美科技术有限公司 A kind of secure extensible Internet of Things mark generates and resolution system
CN110716974A (en) * 2019-09-29 2020-01-21 宜通世纪物联网研究院(广州)有限公司 Dynamic interaction method, system and storage medium for Internet of things equipment and platform
CN110703708B (en) * 2019-10-12 2021-02-05 杭州行至云起科技有限公司 Management method and system for hierarchical intelligent equipment group
CN111417096B (en) * 2019-12-31 2021-10-22 咻享智能(深圳)有限公司 Wireless Internet of things node management method and related device
CN111176130B (en) * 2020-01-07 2022-05-24 华为技术有限公司 Equipment control method, equipment control method and equipment control system
CN111556161B (en) * 2020-05-12 2023-05-16 青岛海信医疗设备股份有限公司 Terminal control method for advertisement and communication server
TWI808328B (en) 2020-06-19 2023-07-11 新唐科技股份有限公司 System on chip and control method
CN113572640B (en) * 2021-07-20 2024-03-01 杭州海康威视系统技术有限公司 Equipment instruction issuing control method, system and device
CN115733878B (en) * 2021-08-30 2024-08-23 青岛海尔科技有限公司 Method and device for setting equipment groups, storage medium and electronic device
CN114257624B (en) * 2021-12-24 2023-03-21 北京深盾科技股份有限公司 Configuration method, device and equipment of Internet of things equipment and storage medium
CN115174297B (en) * 2022-05-30 2024-09-24 青岛海尔科技有限公司 Method and device for updating attribute information, storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104898449A (en) * 2015-06-04 2015-09-09 泰凌微电子(上海)有限公司 Smart home system and control method thereof
CN104994530A (en) * 2015-07-09 2015-10-21 乐鑫信息科技(上海)有限公司 Group gang control system and method based on group MAC (Media Access Control) address for plurality of pieces of Wi-Fi Internet of things equipment
CN105068430A (en) * 2015-06-30 2015-11-18 青岛海尔智能家电科技有限公司 Method and device for group operation of household electrical appliances
CN105075185A (en) * 2013-02-25 2015-11-18 高通股份有限公司 Establishing groups of internet of things (IOT) devices and enabling communication among the groups of IOT devices
US20150372754A1 (en) * 2014-06-24 2015-12-24 Samsung Electronics Co., Ltd. Method and apparatus for pairing electronic device and lighting device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238486B (en) * 2010-04-28 2015-09-16 中兴通讯股份有限公司 The management method of internet-of-things terminal group and platform of internet of things equipment
CN103297468B (en) * 2012-02-29 2017-12-01 华为技术有限公司 Operating method, cluster server for group's resource
US9900172B2 (en) * 2013-04-25 2018-02-20 Qualcomm Incorporated Coordinated resource sharing in machine-to-machine communication using a network-based group management and floor control mechanism

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105075185A (en) * 2013-02-25 2015-11-18 高通股份有限公司 Establishing groups of internet of things (IOT) devices and enabling communication among the groups of IOT devices
US20150372754A1 (en) * 2014-06-24 2015-12-24 Samsung Electronics Co., Ltd. Method and apparatus for pairing electronic device and lighting device
CN104898449A (en) * 2015-06-04 2015-09-09 泰凌微电子(上海)有限公司 Smart home system and control method thereof
CN105068430A (en) * 2015-06-30 2015-11-18 青岛海尔智能家电科技有限公司 Method and device for group operation of household electrical appliances
CN104994530A (en) * 2015-07-09 2015-10-21 乐鑫信息科技(上海)有限公司 Group gang control system and method based on group MAC (Media Access Control) address for plurality of pieces of Wi-Fi Internet of things equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979263A (en) * 2022-03-28 2022-08-30 慧之安信息技术股份有限公司 High-concurrency gateway SIP proxy method and device based on Gin framework
CN114979263B (en) * 2022-03-28 2023-09-15 慧之安信息技术股份有限公司 High concurrency gateway SIP proxy method and device based on Gin framework
CN115514792A (en) * 2022-11-23 2022-12-23 中汽数据(天津)有限公司 Automobile test equipment interaction method based on industrial Internet identification system

Also Published As

Publication number Publication date
CN107018165A (en) 2017-08-04
TW201732627A (en) 2017-09-16

Similar Documents

Publication Publication Date Title
WO2017129014A1 (en) Method and apparatus for controlling internet of things device, and server and mobile device
US10084745B2 (en) Data management profile for a fabric network
WO2018108082A1 (en) Linked control method for internet-of-things gateway and internet-of-things gateway
US11184227B2 (en) Method and apparatus for updating configuration object
US10575153B2 (en) Enhanced operations between service layer and management layer in an M2M system by allowing the execution of a plurality of commands on a plurality of devices
US9313280B2 (en) Fabric network
US9426113B2 (en) System and method for managing devices over a content centric network
US20160248871A1 (en) Message bus service directory
WO2022262465A1 (en) Opc ua-based centralized user configuration method and system for time sensitive network
US20150134727A1 (en) Cloud-based data server providing home appliance management service and method thereof
US20180084085A1 (en) Cross platform device virtualization for an iot system
TW201826869A (en) Method, system and device for connecting devices
AU2013379634B2 (en) Operation trigger method and device for machine-to-machine communications
WO2018177121A1 (en) Sensing device linkage method, apparatus and system
CN103019180B (en) Interconnecting and controlling method and system among electronic equipment
WO2020112793A2 (en) Framework for dynamic brokerage and management of topics and data at the service layer
WO2013063950A1 (en) Inspection method and system of multimode communication device
EP3570567B1 (en) Method and device for operating instance resources
WO2018133550A1 (en) Household appliance function adaptation method and apparatus, and intelligent terminal and function adaptation system
WO2024183449A1 (en) Building protocol data processing method, apparatus, and system
US11665241B1 (en) Systems and methods for dynamic federated API generation
WO2014180251A1 (en) Smart home home gateway implementation method and device
US20180227368A1 (en) Method for operating a device, control device thereof, and proxy device
Ishaq et al. Group communication in constrained environments using CoAP-based entities
WO2019184914A1 (en) Smart household facility management method and device and smart household system

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17743629

Country of ref document: EP

Kind code of ref document: A1